summaryrefslogtreecommitdiffstats
path: root/src/Generating/Prefab.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Generating/Prefab.h')
-rw-r--r--src/Generating/Prefab.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/Generating/Prefab.h b/src/Generating/Prefab.h
index c80de21b2..0b254c03b 100644
--- a/src/Generating/Prefab.h
+++ b/src/Generating/Prefab.h
@@ -16,7 +16,13 @@ declared in this file as well; the Gallery server exports areas in this format.
#include "PieceGenerator.h"
#include "../BlockArea.h"
-#include "ChunkDesc.h"
+
+
+
+
+
+// fwd:
+class cChunkDesc;
@@ -51,8 +57,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 +86,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. */