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/PieceGeneratorBFSTree.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 '')
-rw-r--r-- | src/Generating/PieceGeneratorBFSTree.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Generating/PieceGeneratorBFSTree.h b/src/Generating/PieceGeneratorBFSTree.h index 33d2e5350..c7d85c44a 100644 --- a/src/Generating/PieceGeneratorBFSTree.h +++ b/src/Generating/PieceGeneratorBFSTree.h @@ -73,9 +73,13 @@ protected: const cPlacedPiece & a_ParentPiece, // The existing piece to a new piece should be placed const cPiece::cConnector & a_Connector, // The existing connector (world-coords) to which a new piece should be placed cPlacedPieces & a_OutPieces, // Already placed pieces, to be checked for intersections - cFreeConnectors & a_OutConnectors // List of free connectors to which the new connectors will be placed + cFreeConnectors & a_OutConnectors, // List of free connectors to which the new connectors will be placed + bool a_OnlyClosurePieces = false ); + /** Searches through the provided list for pieces that will fit the parent piece */ + void FindPieceForConnector(cPieces & AvailablePieces, const cPlacedPiece & a_ParentPiece, const cPiece::cConnector & a_Connector, int WantedConnectorType, Vector3i & ConnPos, cPlacedPieces & a_OutPieces, cPieceGeneratorBFSTree::cConnections & Connections, int & WeightTotal); + /** Checks if the specified piece would fit with the already-placed pieces, using the specified connector and number of CCW rotations. a_ExistingConnector is in world-coords and is already rotated properly |