1
0

Exported cFloater to the Lua API.

This commit is contained in:
STRWarrior 2014-01-19 00:04:46 +01:00
parent 7153bc0578
commit 24df625fbd
2 changed files with 8 additions and 3 deletions

View File

@ -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"

View File

@ -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;
} ;
} ; // tolua_export