diff options
author | Niels Breuker <niels.breuker@hotmail.nl> | 2023-03-30 17:18:18 +0200 |
---|---|---|
committer | Niels Breuker <niels.breuker@hotmail.nl> | 2023-03-30 17:18:18 +0200 |
commit | 4af1f3ac35f6a7fe7ac2bfe625bad9abaf2e868d (patch) | |
tree | 7bd7ef103724e6bed9c2cb79dadb50e88c901a89 /src/Generating/PrefabPiecePool.h | |
parent | Added small embedded devices to README (diff) | |
download | cuberite-4af1f3ac35f6a7fe7ac2bfe625bad9abaf2e868d.tar cuberite-4af1f3ac35f6a7fe7ac2bfe625bad9abaf2e868d.tar.gz cuberite-4af1f3ac35f6a7fe7ac2bfe625bad9abaf2e868d.tar.bz2 cuberite-4af1f3ac35f6a7fe7ac2bfe625bad9abaf2e868d.tar.lz cuberite-4af1f3ac35f6a7fe7ac2bfe625bad9abaf2e868d.tar.xz cuberite-4af1f3ac35f6a7fe7ac2bfe625bad9abaf2e868d.tar.zst cuberite-4af1f3ac35f6a7fe7ac2bfe625bad9abaf2e868d.zip |
Diffstat (limited to 'src/Generating/PrefabPiecePool.h')
-rw-r--r-- | src/Generating/PrefabPiecePool.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Generating/PrefabPiecePool.h b/src/Generating/PrefabPiecePool.h index 708b9be57..36aaf8bae 100644 --- a/src/Generating/PrefabPiecePool.h +++ b/src/Generating/PrefabPiecePool.h @@ -112,6 +112,7 @@ public: // cPiecePool overrides: virtual cPieces GetPiecesWithConnector(int a_ConnectorType) override; + virtual cPieces GetClosurePiecesWithConnector(int a_ConnectorType) override; virtual cPieces GetStartingPieces(void) override; virtual int GetPieceWeight(const cPlacedPiece & a_PlacedPiece, const cPiece::cConnector & a_ExistingConnector, const cPiece & a_NewPiece) override; virtual int GetStartingPieceWeight(const cPiece & a_NewPiece) override; @@ -132,6 +133,9 @@ protected: This list is not shared and the pieces need deallocation. */ cPieces m_StartingPieces; + /** The pieces that can be used when no other piece will be placed. */ + cPieces m_ClosurePieces; + /** The map that has all pieces by their connector types The pieces are copies out of m_AllPieces and shouldn't be ever delete-d. */ cPiecesMap m_PiecesByConnector; |