summaryrefslogtreecommitdiffstats
path: root/src/Generating/Prefab.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-03-28 16:36:33 +0100
committermadmaxoft <github@xoft.cz>2014-03-28 16:36:33 +0100
commit910e770a18520a96a5823b24b4b6a41068499414 (patch)
tree58dd8d84bd8c7d5209be85b373b7cf9c3ecbbb93 /src/Generating/Prefab.h
parentDebuggers: Deactivated the chunk generator callback. (diff)
downloadcuberite-910e770a18520a96a5823b24b4b6a41068499414.tar
cuberite-910e770a18520a96a5823b24b4b6a41068499414.tar.gz
cuberite-910e770a18520a96a5823b24b4b6a41068499414.tar.bz2
cuberite-910e770a18520a96a5823b24b4b6a41068499414.tar.lz
cuberite-910e770a18520a96a5823b24b4b6a41068499414.tar.xz
cuberite-910e770a18520a96a5823b24b4b6a41068499414.tar.zst
cuberite-910e770a18520a96a5823b24b4b6a41068499414.zip
Diffstat (limited to '')
-rw-r--r--src/Generating/Prefab.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/Generating/Prefab.h b/src/Generating/Prefab.h
index ec95c909b..d6ab5658f 100644
--- a/src/Generating/Prefab.h
+++ b/src/Generating/Prefab.h
@@ -22,6 +22,13 @@ declared in this file as well; the Gallery server exports areas in this format.
+// fwd:
+class cChunkDesc;
+
+
+
+
+
class cPrefab :
public cPiece
{
@@ -51,8 +58,9 @@ protected:
typedef int CharMap[256];
- /** The cBlockArea that contains the block definitions for the prefab */
- cBlockArea m_BlockArea;
+ /** The cBlockArea that contains the block definitions for the prefab.
+ The index identifies the number of CCW rotations applied (0 = no rotation, 1 = 1 CCW rotation, ...). */
+ cBlockArea m_BlockArea[4];
/** The size of the prefab */
Vector3i m_Size;
@@ -79,7 +87,7 @@ protected:
/** Parses the CharMap in the definition into a CharMap binary data used for translating the definition into BlockArea. */
void ParseCharMap(CharMap & a_CharMapOut, const char * a_CharMapDef);
- /** Parses the Image in the definition into m_BlockArea's block types and metas, using the specified CharMap. */
+ /** Parses the Image in the definition into m_BlockArea[0]'s block types and metas, using the specified CharMap. */
void ParseBlockImage(const CharMap & a_CharMap, const char * a_BlockImage);
/** Parses the connectors definition text into m_Connectors member. */