mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Schematics: Remove referenced schematics from Decorations on clear
This commit is contained in:
parent
f0a1379e5a
commit
406d9ba87b
6 changed files with 67 additions and 38 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue