summaryrefslogtreecommitdiffstats
path: root/src/Generating/Prefab.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-03-29 22:56:16 +0100
committermadmaxoft <github@xoft.cz>2014-03-29 22:56:48 +0100
commitd64d9145d1d84caaf21a906d5924c3855988fa33 (patch)
tree33fe44a5935cd5c12702c714fd670c7009602e0f /src/Generating/Prefab.h
parentMerge pull request #842 from mc-server/ProjectileHooks (diff)
downloadcuberite-d64d9145d1d84caaf21a906d5924c3855988fa33.tar
cuberite-d64d9145d1d84caaf21a906d5924c3855988fa33.tar.gz
cuberite-d64d9145d1d84caaf21a906d5924c3855988fa33.tar.bz2
cuberite-d64d9145d1d84caaf21a906d5924c3855988fa33.tar.lz
cuberite-d64d9145d1d84caaf21a906d5924c3855988fa33.tar.xz
cuberite-d64d9145d1d84caaf21a906d5924c3855988fa33.tar.zst
cuberite-d64d9145d1d84caaf21a906d5924c3855988fa33.zip
Diffstat (limited to '')
-rw-r--r--src/Generating/Prefab.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/Generating/Prefab.h b/src/Generating/Prefab.h
index 0b254c03b..04c4f09da 100644
--- a/src/Generating/Prefab.h
+++ b/src/Generating/Prefab.h
@@ -53,8 +53,15 @@ public:
bool HasConnectorType(int a_ConnectorType) const;
protected:
+ /** Packs complete definition of a single block, for per-letter assignment. */
+ struct sBlockTypeDef
+ {
+ BLOCKTYPE m_BlockType;
+ NIBBLETYPE m_BlockMeta;
+ };
+
/** Maps letters in the sDef::m_Image onto a number, BlockType * 16 | BlockMeta */
- typedef int CharMap[256];
+ typedef sBlockTypeDef CharMap[256];
/** The cBlockArea that contains the block definitions for the prefab.