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:
parent
3ea5ed4ffe
commit
b67f37f27e
16 changed files with 278 additions and 364 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue