mapgen: drop mapgen id from child mapgens.
[oweals/minetest.git] / src / mapgen / mg_schematic.h
index 069b594f10e02018ba2c31f76100c63f3dda5c99..371b37557eb2e0fefe7613768eb3875c0b8768b7 100644 (file)
@@ -1,7 +1,7 @@
 /*
 Minetest
-Copyright (C) 2014-2016 kwolekr, Ryan Kwolek <kwolekr@minetest.net>
-Copyright (C) 2015-2017 paramat
+Copyright (C) 2014-2018 kwolekr, Ryan Kwolek <kwolekr@minetest.net>
+Copyright (C) 2015-2018 paramat
 
 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU Lesser General Public License as published by
@@ -97,9 +97,10 @@ public:
 
        virtual void resolveNodeNames();
 
-       bool loadSchematicFromFile(const std::string &filename, INodeDefManager *ndef,
-               StringMap *replace_names=NULL);
-       bool saveSchematicToFile(const std::string &filename, INodeDefManager *ndef);
+       bool loadSchematicFromFile(const std::string &filename,
+               const NodeDefManager *ndef, StringMap *replace_names = NULL);
+       bool saveSchematicToFile(const std::string &filename,
+               const NodeDefManager *ndef);
        bool getSchematicFromMap(Map *map, v3s16 p1, v3s16 p2);
 
        bool deserializeFromMts(std::istream *is, std::vector<std::string> *names);
@@ -144,4 +145,4 @@ private:
 };
 
 void generate_nodelist_and_update_ids(MapNode *nodes, size_t nodecount,
-       std::vector<std::string> *usednodes, INodeDefManager *ndef);
+       std::vector<std::string> *usednodes, const NodeDefManager *ndef);