summaryrefslogtreecommitdiff
path: root/src/mg_schematic.h
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2015-04-17 00:52:48 -0400
committerkwolekr <kwolekr@minetest.net>2015-04-17 00:53:05 -0400
commit406d9ba87b9f6e57b86c6282bf157e3341aa195c (patch)
treede88e4136a31c3e350a0257301b134555706ae82 /src/mg_schematic.h
parentf0a1379e5a9ebc954e95d07c1ad5d71587adc6bc (diff)
downloadminetest-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.h8
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,