1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-09-15 18:57:08 +00:00

Redefine NodeResolver interface and replace with callback mechanism

This commit is contained in:
kwolekr 2014-12-17 03:20:17 -05:00
parent 3ea5ed4ffe
commit b67f37f27e
16 changed files with 278 additions and 364 deletions

View file

@ -33,7 +33,7 @@ enum BiomeType
BIOME_TYPE_FLAT
};
class Biome : public GenElement {
class Biome : public GenElement, public NodeResolver {
public:
u32 flags;
@ -51,6 +51,8 @@ public:
s16 height_max;
float heat_point;
float humidity_point;
virtual void resolveNodeNames(NodeResolveInfo *nri);
};
class BiomeManager : public GenElementManager {