]> git.lizzy.rs Git - minetest.git/blobdiff - src/mg_schematic.h
Plantlike visual scale: Send sqrt(visual_scale) to old clients
[minetest.git] / src / mg_schematic.h
index 5c732648edaadd561bf3451af186e08c243ac21f..1d46e6ac4fc7dfa78ead419b91efb215a5fc160c 100644 (file)
@@ -29,7 +29,7 @@ class Mapgen;
 class MMVManip;
 class PseudoRandom;
 class NodeResolver;
-class IGameDef;
+class Server;
 
 /*
        Minetest Schematic File Format
@@ -106,8 +106,9 @@ class Schematic : public ObjDef, public NodeResolver {
        bool serializeToLua(std::ostream *os, const std::vector<std::string> &names,
                bool use_comments, u32 indent_spaces);
 
-       void blitToVManip(v3s16 p, MMVManip *vm, Rotation rot, bool force_place);
-       void placeStructure(Map *map, v3s16 p, u32 flags, Rotation rot, bool force_place);
+       void blitToVManip(MMVManip *vm, v3s16 p, Rotation rot, bool force_place);
+       bool placeOnVManip(MMVManip *vm, v3s16 p, u32 flags, Rotation rot, bool force_place);
+       void placeOnMap(Map *map, v3s16 p, u32 flags, Rotation rot, bool force_place);
 
        void applyProbabilities(v3s16 p0,
                std::vector<std::pair<v3s16, u8> > *plist,
@@ -122,7 +123,7 @@ class Schematic : public ObjDef, public NodeResolver {
 
 class SchematicManager : public ObjDefManager {
 public:
-       SchematicManager(IGameDef *gamedef);
+       SchematicManager(Server *server);
        virtual ~SchematicManager() {}
 
        virtual void clear();
@@ -138,7 +139,7 @@ class SchematicManager : public ObjDefManager {
        }
 
 private:
-       IGameDef *m_gamedef;
+       Server *m_server;
 };
 
 void generate_nodelist_and_update_ids(MapNode *nodes, size_t nodecount,