summaryrefslogtreecommitdiffstats
path: root/src/Generating/Prefab.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-04-21 10:31:07 +0200
committermadmaxoft <github@xoft.cz>2014-04-21 10:31:30 +0200
commite3ec857264a89b9d715c9fe3780f2bd29b701f42 (patch)
tree4ff04c881ad979a7e318a6d8f79512ff9673c9b4 /src/Generating/Prefab.h
parentAdded enchantment combining into cEnchantments. (diff)
downloadcuberite-e3ec857264a89b9d715c9fe3780f2bd29b701f42.tar
cuberite-e3ec857264a89b9d715c9fe3780f2bd29b701f42.tar.gz
cuberite-e3ec857264a89b9d715c9fe3780f2bd29b701f42.tar.bz2
cuberite-e3ec857264a89b9d715c9fe3780f2bd29b701f42.tar.lz
cuberite-e3ec857264a89b9d715c9fe3780f2bd29b701f42.tar.xz
cuberite-e3ec857264a89b9d715c9fe3780f2bd29b701f42.tar.zst
cuberite-e3ec857264a89b9d715c9fe3780f2bd29b701f42.zip
Diffstat (limited to '')
-rw-r--r--src/Generating/Prefab.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Generating/Prefab.h b/src/Generating/Prefab.h
index dbf882e21..37db2ff16 100644
--- a/src/Generating/Prefab.h
+++ b/src/Generating/Prefab.h
@@ -38,6 +38,10 @@ public:
int m_SizeY;
int m_SizeZ;
+ /** The hitbox used for collision-checking between prefabs. Relative to the bounds. */
+ int m_HitboxMinX, m_HitboxMinY, m_HitboxMinZ;
+ int m_HitboxMaxX, m_HitboxMaxY, m_HitboxMaxZ;
+
/** The mapping between characters in m_Image and the blocktype / blockmeta.
Format: "Char: BlockType: BlockMeta \n Char: BlockType : BlockMeta \n ..." */
const char * m_CharMap;
@@ -114,7 +118,7 @@ protected:
/** The size of the prefab */
Vector3i m_Size;
- /** The hitbox of the prefab. In first version is the same as the m_BlockArea dimensions */
+ /** The hitbox used for collision-checking between prefabs. */
cCuboid m_HitBox;
/** The connectors through which the piece connects to other pieces */