Exported cFloater to the Lua API.
This commit is contained in:
parent
7153bc0578
commit
24df625fbd
@ -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"
|
||||
|
@ -7,6 +7,7 @@
|
||||
|
||||
|
||||
|
||||
// tolua_begin
|
||||
class cFloater :
|
||||
public cEntity
|
||||
{
|
||||
@ -14,14 +15,17 @@ class cFloater :
|
||||
|
||||
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
|
Loading…
Reference in New Issue
Block a user