summaryrefslogtreecommitdiffstats
path: root/src/Generating/PieceGenerator.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-05-17 21:54:04 +0200
committermadmaxoft <github@xoft.cz>2014-05-17 21:54:04 +0200
commit7004043c6164c6b22346f94489cb823f9495738f (patch)
tree6aada4d3af59dbcb414b256b4d712cf9f203bf8a /src/Generating/PieceGenerator.cpp
parentUpdated PlainsVillage prefabs to the latest Gallery contents. (diff)
downloadcuberite-7004043c6164c6b22346f94489cb823f9495738f.tar
cuberite-7004043c6164c6b22346f94489cb823f9495738f.tar.gz
cuberite-7004043c6164c6b22346f94489cb823f9495738f.tar.bz2
cuberite-7004043c6164c6b22346f94489cb823f9495738f.tar.lz
cuberite-7004043c6164c6b22346f94489cb823f9495738f.tar.xz
cuberite-7004043c6164c6b22346f94489cb823f9495738f.tar.zst
cuberite-7004043c6164c6b22346f94489cb823f9495738f.zip
Diffstat (limited to 'src/Generating/PieceGenerator.cpp')
-rw-r--r--src/Generating/PieceGenerator.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Generating/PieceGenerator.cpp b/src/Generating/PieceGenerator.cpp
index ce19c1c95..c12559d3f 100644
--- a/src/Generating/PieceGenerator.cpp
+++ b/src/Generating/PieceGenerator.cpp
@@ -297,6 +297,17 @@ cPlacedPiece::cPlacedPiece(const cPlacedPiece * a_Parent, const cPiece & a_Piece
+cPiece::cConnector cPlacedPiece::GetRotatedConnector(size_t a_Index) const
+{
+ cPiece::cConnectors Connectors = m_Piece->GetConnectors();
+ ASSERT(Connectors.size() >= a_Index);
+ return m_Piece->RotateMoveConnector(Connectors[a_Index], m_NumCCWRotations, m_Coords.x, m_Coords.y, m_Coords.z);
+}
+
+
+
+
+
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// cPieceGenerator: