diff options
author | kwolekr <kwolekr@minetest.net> | 2015-04-17 00:52:48 -0400 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2015-04-17 00:53:05 -0400 |
commit | 406d9ba87b9f6e57b86c6282bf157e3341aa195c (patch) | |
tree | de88e4136a31c3e350a0257301b134555706ae82 /src/mg_schematic.h | |
parent | f0a1379e5a9ebc954e95d07c1ad5d71587adc6bc (diff) | |
download | minetest-406d9ba87b9f6e57b86c6282bf157e3341aa195c.tar.gz minetest-406d9ba87b9f6e57b86c6282bf157e3341aa195c.tar.bz2 minetest-406d9ba87b9f6e57b86c6282bf157e3341aa195c.zip |
Schematics: Remove referenced schematics from Decorations on clear
Diffstat (limited to 'src/mg_schematic.h')
-rw-r--r-- | src/mg_schematic.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mg_schematic.h b/src/mg_schematic.h index 63cea21f6..296e7b104 100644 --- a/src/mg_schematic.h +++ b/src/mg_schematic.h @@ -29,6 +29,7 @@ class Mapgen; class MMVManip; class PseudoRandom; class NodeResolver; +class IGameDef; /* Minetest Schematic File Format @@ -121,7 +122,9 @@ public: class SchematicManager : public ObjDefManager { public: SchematicManager(IGameDef *gamedef); - ~SchematicManager() {} + virtual ~SchematicManager() {} + + virtual void clear(); const char *getObjectTitle() const { @@ -132,6 +135,9 @@ public: { return new Schematic; } + +private: + IGameDef *m_gamedef; }; void build_nnlist_and_update_ids(MapNode *nodes, u32 nodecount, |