diff options
author | madmaxoft <github@xoft.cz> | 2014-05-29 09:14:47 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-05-29 09:14:47 +0200 |
commit | b56033d5416306eb71bef9659fee92b368d4436e (patch) | |
tree | 7647fc9b8a29dc5ec0bc7258c68e4a59d113b205 /src/Generating/PrefabPiecePool.h | |
parent | Fixed a crash in message formatter. (diff) | |
parent | Cmake system name not System name (diff) | |
download | cuberite-b56033d5416306eb71bef9659fee92b368d4436e.tar cuberite-b56033d5416306eb71bef9659fee92b368d4436e.tar.gz cuberite-b56033d5416306eb71bef9659fee92b368d4436e.tar.bz2 cuberite-b56033d5416306eb71bef9659fee92b368d4436e.tar.lz cuberite-b56033d5416306eb71bef9659fee92b368d4436e.tar.xz cuberite-b56033d5416306eb71bef9659fee92b368d4436e.tar.zst cuberite-b56033d5416306eb71bef9659fee92b368d4436e.zip |
Diffstat (limited to 'src/Generating/PrefabPiecePool.h')
-rw-r--r-- | src/Generating/PrefabPiecePool.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Generating/PrefabPiecePool.h b/src/Generating/PrefabPiecePool.h index 695ab4ea5..b9c1f0483 100644 --- a/src/Generating/PrefabPiecePool.h +++ b/src/Generating/PrefabPiecePool.h @@ -34,6 +34,12 @@ public: const cPrefab::sDef * a_StartingPieceDefs, size_t a_NumStartingPieceDefs ); + /** Destroys the pool, freeing all pieces. */ + ~cPrefabPiecePool(); + + /** Removes and frees all pieces from this pool. */ + void Clear(void); + /** Adds pieces from the specified definitions into m_AllPieces. Also adds the pieces into the m_PiecesByConnector map. May be called multiple times with different PieceDefs, will add all such pieces. */ @@ -44,7 +50,6 @@ public: May be called multiple times with different PieceDefs, will add all such pieces. */ void AddStartingPieceDefs(const cPrefab::sDef * a_StartingPieceDefs, size_t a_NumStartingPieceDefs); - protected: /** The type used to map a connector type to the list of pieces with that connector */ |