diff options
author | STRWarrior <niels.breuker@hotmail.nl> | 2014-01-19 00:04:46 +0100 |
---|---|---|
committer | STRWarrior <niels.breuker@hotmail.nl> | 2014-01-19 00:04:46 +0100 |
commit | 24df625fbd86184b7a9404aab92a40ecfeaf455f (patch) | |
tree | 0ba188c5adae7e9e1e8f479a770ed9997581e7c4 /src | |
parent | Fixed compiler error. (diff) | |
download | cuberite-24df625fbd86184b7a9404aab92a40ecfeaf455f.tar cuberite-24df625fbd86184b7a9404aab92a40ecfeaf455f.tar.gz cuberite-24df625fbd86184b7a9404aab92a40ecfeaf455f.tar.bz2 cuberite-24df625fbd86184b7a9404aab92a40ecfeaf455f.tar.lz cuberite-24df625fbd86184b7a9404aab92a40ecfeaf455f.tar.xz cuberite-24df625fbd86184b7a9404aab92a40ecfeaf455f.tar.zst cuberite-24df625fbd86184b7a9404aab92a40ecfeaf455f.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Bindings/AllToLua.pkg | 1 | ||||
-rw-r--r-- | src/Entities/Floater.h | 10 |
2 files changed, 8 insertions, 3 deletions
diff --git a/src/Bindings/AllToLua.pkg b/src/Bindings/AllToLua.pkg index 2d0300ebf..f65aed9bb 100644 --- a/src/Bindings/AllToLua.pkg +++ b/src/Bindings/AllToLua.pkg @@ -31,6 +31,7 @@ $cfile "../Defines.h" $cfile "../ChatColor.h" $cfile "../ClientHandle.h" $cfile "../Entities/Entity.h" +$cfile "../Entities/Floater.h" $cfile "../Entities/Pawn.h" $cfile "../Entities/Player.h" $cfile "../Entities/Pickup.h" diff --git a/src/Entities/Floater.h b/src/Entities/Floater.h index 4bbe3f352..162b74e75 100644 --- a/src/Entities/Floater.h +++ b/src/Entities/Floater.h @@ -7,21 +7,25 @@ +// tolua_begin class cFloater : public cEntity { typedef cFloater super; public: - + + //tolua_end cFloater(double a_X, double a_Y, double a_Z, Vector3d a_Speed, int a_PlayerID, int a_CountDownTime); virtual void SpawnOn(cClientHandle & a_Client) override; virtual void Tick(float a_Dt, cChunk & a_Chunk) override; - + + // tolua_begin bool CanPickup(void) const { return m_CanPickupItem; } int GetOwnerID(void) const { return m_PlayerID; } int GetAttachedMobID(void) const { return m_AttachedMobID; } + // tolua_end protected: // Position @@ -37,4 +41,4 @@ protected: // Entity IDs int m_PlayerID; int m_AttachedMobID; -} ;
\ No newline at end of file +} ; // tolua_export
\ No newline at end of file |