aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api/l_mapgen.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/script/lua_api/l_mapgen.h')
-rw-r--r--src/script/lua_api/l_mapgen.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/script/lua_api/l_mapgen.h b/src/script/lua_api/l_mapgen.h
index dfed8475f..2ad436e77 100644
--- a/src/script/lua_api/l_mapgen.h
+++ b/src/script/lua_api/l_mapgen.h
@@ -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[];