summaryrefslogtreecommitdiffstats
path: root/src/BlockInfo.h
diff options
context:
space:
mode:
authorGargaj <gargaj@conspiracy.hu>2015-11-10 14:02:07 +0100
committerGargaj <gargaj@conspiracy.hu>2015-12-13 15:16:15 +0100
commit66e65898838e3d5d40dfb225fd6c34f0f354b2e3 (patch)
tree159a72d2f877d4672d1a633853584c5b5e723f21 /src/BlockInfo.h
parentMerge pull request #2743 from SafwatHalaby/wart (diff)
downloadcuberite-66e65898838e3d5d40dfb225fd6c34f0f354b2e3.tar
cuberite-66e65898838e3d5d40dfb225fd6c34f0f354b2e3.tar.gz
cuberite-66e65898838e3d5d40dfb225fd6c34f0f354b2e3.tar.bz2
cuberite-66e65898838e3d5d40dfb225fd6c34f0f354b2e3.tar.lz
cuberite-66e65898838e3d5d40dfb225fd6c34f0f354b2e3.tar.xz
cuberite-66e65898838e3d5d40dfb225fd6c34f0f354b2e3.tar.zst
cuberite-66e65898838e3d5d40dfb225fd6c34f0f354b2e3.zip
Diffstat (limited to 'src/BlockInfo.h')
-rw-r--r--src/BlockInfo.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/BlockInfo.h b/src/BlockInfo.h
index 4709f2357..9f562e531 100644
--- a/src/BlockInfo.h
+++ b/src/BlockInfo.h
@@ -61,6 +61,9 @@ public:
/** Can a finisher change it? */
bool m_CanBeTerraformed;
+ /** Block height */
+ float m_BlockHeight;
+
/** Sound when placing this block */
AString m_PlaceSound;
@@ -80,6 +83,7 @@ public:
inline static bool IsSolid (BLOCKTYPE a_Type) { return Get(a_Type).m_IsSolid; }
inline static bool FullyOccupiesVoxel (BLOCKTYPE a_Type) { return Get(a_Type).m_FullyOccupiesVoxel; }
inline static bool CanBeTerraformed (BLOCKTYPE a_Type) { return Get(a_Type).m_CanBeTerraformed; }
+ inline static float GetBlockHeight (BLOCKTYPE a_Type) { return Get(a_Type).m_BlockHeight; }
inline static AString GetPlaceSound (BLOCKTYPE a_Type) { return Get(a_Type).m_PlaceSound; }
// tolua_end
@@ -101,6 +105,7 @@ protected:
, m_IsSolid(true)
, m_FullyOccupiesVoxel(false)
, m_CanBeTerraformed(false)
+ , m_BlockHeight(1.0)
, m_PlaceSound("")
, m_Handler(nullptr)
{}