mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-27 17:28:41 +00:00
GenElementManager: Pass opaque handles to Lua and rename to ObjDefManager
Add core.clear_registered_schematics() and refactor schematics somewhat
This commit is contained in:
parent
6a48844eba
commit
ed10005d38
16 changed files with 363 additions and 203 deletions
|
@ -33,7 +33,7 @@ enum BiomeType
|
|||
BIOME_TYPE_FLAT
|
||||
};
|
||||
|
||||
class Biome : public GenElement, public NodeResolver {
|
||||
class Biome : public ObjDef, public NodeResolver {
|
||||
public:
|
||||
u32 flags;
|
||||
|
||||
|
@ -56,14 +56,18 @@ public:
|
|||
virtual void resolveNodeNames(NodeResolveInfo *nri);
|
||||
};
|
||||
|
||||
class BiomeManager : public GenElementManager {
|
||||
class BiomeManager : public ObjDefManager {
|
||||
public:
|
||||
static const char *ELEMENT_TITLE;
|
||||
static const size_t ELEMENT_LIMIT = 0x100;
|
||||
static const char *OBJECT_TITLE;
|
||||
|
||||
BiomeManager(IGameDef *gamedef);
|
||||
~BiomeManager();
|
||||
|
||||
const char *getObjectTitle() const
|
||||
{
|
||||
return "biome";
|
||||
}
|
||||
|
||||
Biome *create(int btt)
|
||||
{
|
||||
return new Biome;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue