diff options
author | Lukas Pioch <lukas@zgow.de> | 2017-05-09 14:24:41 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2017-05-09 14:24:41 +0200 |
commit | 7c4576a02591d8ebe41656c5cefb1eb25a086a10 (patch) | |
tree | 3c5bb3dd56d492f32306a65c790576670dc3c0b2 /src/Entities/FallingBlock.h | |
parent | Fixed Lua bindings for const objects. (diff) | |
download | cuberite-7c4576a02591d8ebe41656c5cefb1eb25a086a10.tar cuberite-7c4576a02591d8ebe41656c5cefb1eb25a086a10.tar.gz cuberite-7c4576a02591d8ebe41656c5cefb1eb25a086a10.tar.bz2 cuberite-7c4576a02591d8ebe41656c5cefb1eb25a086a10.tar.lz cuberite-7c4576a02591d8ebe41656c5cefb1eb25a086a10.tar.xz cuberite-7c4576a02591d8ebe41656c5cefb1eb25a086a10.tar.zst cuberite-7c4576a02591d8ebe41656c5cefb1eb25a086a10.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Entities/FallingBlock.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/Entities/FallingBlock.h b/src/Entities/FallingBlock.h index 3e80564e5..8bdf46ca0 100644 --- a/src/Entities/FallingBlock.h +++ b/src/Entities/FallingBlock.h @@ -13,6 +13,7 @@ class cItem; +// tolua_begin class cFallingBlock : public cEntity @@ -20,14 +21,20 @@ class cFallingBlock : typedef cEntity super; public: + // tolua_end + CLASS_PROTODEF(cFallingBlock) /** Creates a new falling block. a_BlockPosition is expected in world coords */ cFallingBlock(const Vector3i & a_BlockPosition, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta); + // tolua_begin + BLOCKTYPE GetBlockType(void) const { return m_BlockType; } NIBBLETYPE GetBlockMeta(void) const { return m_BlockMeta; } + // tolua_end + // cEntity overrides: virtual void SpawnOn(cClientHandle & a_ClientHandle) override; virtual void Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) override; @@ -36,7 +43,7 @@ private: BLOCKTYPE m_BlockType; NIBBLETYPE m_BlockMeta; Vector3i m_OriginalPosition; // Position where the falling block has started, in world coords -} ; +} ; // tolua_export |