mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Add core.register_schematic() and cache schematics on use
This commit is contained in:
parent
9fc2b93d9f
commit
732d7b9a7c
3 changed files with 146 additions and 91 deletions
|
@ -26,6 +26,7 @@ class INodeDefManager;
|
|||
struct NodeResolveInfo;
|
||||
class DecoSimple;
|
||||
class DecoSchematic;
|
||||
class SchematicManager;
|
||||
|
||||
class ModApiMapgen : public ModApiBase {
|
||||
private:
|
||||
|
@ -56,12 +57,18 @@ private:
|
|||
// register_ore({lots of stuff})
|
||||
static int l_register_ore(lua_State *L);
|
||||
|
||||
// register_schematic({schematic}, replacements={})
|
||||
static int l_register_schematic(lua_State *L);
|
||||
|
||||
// clear_registered_biomes()
|
||||
static int l_clear_registered_biomes(lua_State *L);
|
||||
|
||||
// clear_registered_decorations()
|
||||
static int l_clear_registered_decorations(lua_State *L);
|
||||
|
||||
// clear_registered_schematics()
|
||||
static int l_clear_registered_schematics(lua_State *L);
|
||||
|
||||
// generate_ores(vm, p1, p2)
|
||||
static int l_generate_ores(lua_State *L);
|
||||
|
||||
|
@ -80,7 +87,7 @@ private:
|
|||
static bool regDecoSimple(lua_State *L,
|
||||
NodeResolveInfo *nri, DecoSimple *deco);
|
||||
static bool regDecoSchematic(lua_State *L,
|
||||
INodeDefManager *ndef, DecoSchematic *deco);
|
||||
SchematicManager *schemmgr, DecoSchematic *deco);
|
||||
|
||||
static struct EnumString es_BiomeTerrainType[];
|
||||
static struct EnumString es_DecorationType[];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue