Exported the cTNTEntity
This commit is contained in:
parent
3bf65e986b
commit
78aca16d58
@ -36,6 +36,7 @@ $cfile "../Entities/Pawn.h"
|
|||||||
$cfile "../Entities/Player.h"
|
$cfile "../Entities/Player.h"
|
||||||
$cfile "../Entities/Pickup.h"
|
$cfile "../Entities/Pickup.h"
|
||||||
$cfile "../Entities/ProjectileEntity.h"
|
$cfile "../Entities/ProjectileEntity.h"
|
||||||
|
$cfile "../Entities/TNTEntity.h"
|
||||||
$cfile "../Server.h"
|
$cfile "../Server.h"
|
||||||
$cfile "../World.h"
|
$cfile "../World.h"
|
||||||
$cfile "../Inventory.h"
|
$cfile "../Inventory.h"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
** Lua binding: AllToLua
|
** Lua binding: AllToLua
|
||||||
** Generated automatically by tolua++-1.0.92 on 12/11/13 12:34:21.
|
** Generated automatically by tolua++-1.0.92 on 12/14/13 16:22:45.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __cplusplus
|
#ifndef __cplusplus
|
||||||
@ -34,6 +34,7 @@ TOLUA_API int tolua_AllToLua_open (lua_State* tolua_S);
|
|||||||
#include "../Entities/Player.h"
|
#include "../Entities/Player.h"
|
||||||
#include "../Entities/Pickup.h"
|
#include "../Entities/Pickup.h"
|
||||||
#include "../Entities/ProjectileEntity.h"
|
#include "../Entities/ProjectileEntity.h"
|
||||||
|
#include "../Entities/TNTEntity.h"
|
||||||
#include "../Server.h"
|
#include "../Server.h"
|
||||||
#include "../World.h"
|
#include "../World.h"
|
||||||
#include "../Inventory.h"
|
#include "../Inventory.h"
|
||||||
@ -218,7 +219,7 @@ static void tolua_reg_types (lua_State* tolua_S)
|
|||||||
tolua_usertype(tolua_S,"cItemGrid");
|
tolua_usertype(tolua_S,"cItemGrid");
|
||||||
tolua_usertype(tolua_S,"cHTTPServer::cCallbacks");
|
tolua_usertype(tolua_S,"cHTTPServer::cCallbacks");
|
||||||
tolua_usertype(tolua_S,"cLuaWindow");
|
tolua_usertype(tolua_S,"cLuaWindow");
|
||||||
tolua_usertype(tolua_S,"cServer");
|
tolua_usertype(tolua_S,"cInventory");
|
||||||
tolua_usertype(tolua_S,"cHopperEntity");
|
tolua_usertype(tolua_S,"cHopperEntity");
|
||||||
tolua_usertype(tolua_S,"std::vector<AString>");
|
tolua_usertype(tolua_S,"std::vector<AString>");
|
||||||
tolua_usertype(tolua_S,"cBlockEntityWithItems");
|
tolua_usertype(tolua_S,"cBlockEntityWithItems");
|
||||||
@ -226,15 +227,16 @@ static void tolua_reg_types (lua_State* tolua_S)
|
|||||||
tolua_usertype(tolua_S,"cCraftingGrid");
|
tolua_usertype(tolua_S,"cCraftingGrid");
|
||||||
tolua_usertype(tolua_S,"cBlockArea");
|
tolua_usertype(tolua_S,"cBlockArea");
|
||||||
tolua_usertype(tolua_S,"cGroup");
|
tolua_usertype(tolua_S,"cGroup");
|
||||||
tolua_usertype(tolua_S,"cItem");
|
|
||||||
tolua_usertype(tolua_S,"cTracer");
|
tolua_usertype(tolua_S,"cTracer");
|
||||||
|
tolua_usertype(tolua_S,"cItem");
|
||||||
|
tolua_usertype(tolua_S,"cBoundingBox");
|
||||||
tolua_usertype(tolua_S,"cArrowEntity");
|
tolua_usertype(tolua_S,"cArrowEntity");
|
||||||
tolua_usertype(tolua_S,"cDropSpenserEntity");
|
tolua_usertype(tolua_S,"cDropSpenserEntity");
|
||||||
tolua_usertype(tolua_S,"cBoundingBox");
|
|
||||||
tolua_usertype(tolua_S,"cCuboid");
|
tolua_usertype(tolua_S,"cCuboid");
|
||||||
tolua_usertype(tolua_S,"Vector3i");
|
tolua_usertype(tolua_S,"Vector3i");
|
||||||
tolua_usertype(tolua_S,"cNoteEntity");
|
|
||||||
tolua_usertype(tolua_S,"Vector3d");
|
tolua_usertype(tolua_S,"Vector3d");
|
||||||
|
tolua_usertype(tolua_S,"cNoteEntity");
|
||||||
|
tolua_usertype(tolua_S,"cServer");
|
||||||
tolua_usertype(tolua_S,"cBlockEntity");
|
tolua_usertype(tolua_S,"cBlockEntity");
|
||||||
tolua_usertype(tolua_S,"cCriticalSection");
|
tolua_usertype(tolua_S,"cCriticalSection");
|
||||||
tolua_usertype(tolua_S,"HTTPTemplateRequest");
|
tolua_usertype(tolua_S,"HTTPTemplateRequest");
|
||||||
@ -254,8 +256,8 @@ static void tolua_reg_types (lua_State* tolua_S)
|
|||||||
tolua_usertype(tolua_S,"cDropperEntity");
|
tolua_usertype(tolua_S,"cDropperEntity");
|
||||||
tolua_usertype(tolua_S,"cProjectileEntity");
|
tolua_usertype(tolua_S,"cProjectileEntity");
|
||||||
tolua_usertype(tolua_S,"cItemGrid::cListener");
|
tolua_usertype(tolua_S,"cItemGrid::cListener");
|
||||||
tolua_usertype(tolua_S,"cInventory");
|
|
||||||
tolua_usertype(tolua_S,"cPlayer");
|
tolua_usertype(tolua_S,"cPlayer");
|
||||||
|
tolua_usertype(tolua_S,"cTNTEntity");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* method: new of class cIniFile */
|
/* method: new of class cIniFile */
|
||||||
@ -11518,6 +11520,70 @@ static int tolua_AllToLua_cArrowEntity_SetIsCritical00(lua_State* tolua_S)
|
|||||||
}
|
}
|
||||||
#endif //#ifndef TOLUA_DISABLE
|
#endif //#ifndef TOLUA_DISABLE
|
||||||
|
|
||||||
|
/* method: GetCounterTime of class cTNTEntity */
|
||||||
|
#ifndef TOLUA_DISABLE_tolua_AllToLua_cTNTEntity_GetCounterTime00
|
||||||
|
static int tolua_AllToLua_cTNTEntity_GetCounterTime00(lua_State* tolua_S)
|
||||||
|
{
|
||||||
|
#ifndef TOLUA_RELEASE
|
||||||
|
tolua_Error tolua_err;
|
||||||
|
if (
|
||||||
|
!tolua_isusertype(tolua_S,1,"const cTNTEntity",0,&tolua_err) ||
|
||||||
|
!tolua_isnoobj(tolua_S,2,&tolua_err)
|
||||||
|
)
|
||||||
|
goto tolua_lerror;
|
||||||
|
else
|
||||||
|
#endif
|
||||||
|
{
|
||||||
|
const cTNTEntity* self = (const cTNTEntity*) tolua_tousertype(tolua_S,1,0);
|
||||||
|
#ifndef TOLUA_RELEASE
|
||||||
|
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetCounterTime'", NULL);
|
||||||
|
#endif
|
||||||
|
{
|
||||||
|
double tolua_ret = (double) self->GetCounterTime();
|
||||||
|
tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return 1;
|
||||||
|
#ifndef TOLUA_RELEASE
|
||||||
|
tolua_lerror:
|
||||||
|
tolua_error(tolua_S,"#ferror in function 'GetCounterTime'.",&tolua_err);
|
||||||
|
return 0;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
#endif //#ifndef TOLUA_DISABLE
|
||||||
|
|
||||||
|
/* method: GetMaxFuseTime of class cTNTEntity */
|
||||||
|
#ifndef TOLUA_DISABLE_tolua_AllToLua_cTNTEntity_GetMaxFuseTime00
|
||||||
|
static int tolua_AllToLua_cTNTEntity_GetMaxFuseTime00(lua_State* tolua_S)
|
||||||
|
{
|
||||||
|
#ifndef TOLUA_RELEASE
|
||||||
|
tolua_Error tolua_err;
|
||||||
|
if (
|
||||||
|
!tolua_isusertype(tolua_S,1,"const cTNTEntity",0,&tolua_err) ||
|
||||||
|
!tolua_isnoobj(tolua_S,2,&tolua_err)
|
||||||
|
)
|
||||||
|
goto tolua_lerror;
|
||||||
|
else
|
||||||
|
#endif
|
||||||
|
{
|
||||||
|
const cTNTEntity* self = (const cTNTEntity*) tolua_tousertype(tolua_S,1,0);
|
||||||
|
#ifndef TOLUA_RELEASE
|
||||||
|
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMaxFuseTime'", NULL);
|
||||||
|
#endif
|
||||||
|
{
|
||||||
|
double tolua_ret = (double) self->GetMaxFuseTime();
|
||||||
|
tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return 1;
|
||||||
|
#ifndef TOLUA_RELEASE
|
||||||
|
tolua_lerror:
|
||||||
|
tolua_error(tolua_S,"#ferror in function 'GetMaxFuseTime'.",&tolua_err);
|
||||||
|
return 0;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
#endif //#ifndef TOLUA_DISABLE
|
||||||
|
|
||||||
/* method: GetDescription of class cServer */
|
/* method: GetDescription of class cServer */
|
||||||
#ifndef TOLUA_DISABLE_tolua_AllToLua_cServer_GetDescription00
|
#ifndef TOLUA_DISABLE_tolua_AllToLua_cServer_GetDescription00
|
||||||
static int tolua_AllToLua_cServer_GetDescription00(lua_State* tolua_S)
|
static int tolua_AllToLua_cServer_GetDescription00(lua_State* tolua_S)
|
||||||
@ -30993,6 +31059,11 @@ TOLUA_API int tolua_AllToLua_open (lua_State* tolua_S)
|
|||||||
tolua_cclass(tolua_S,"cFireChargeEntity","cFireChargeEntity","cProjectileEntity",NULL);
|
tolua_cclass(tolua_S,"cFireChargeEntity","cFireChargeEntity","cProjectileEntity",NULL);
|
||||||
tolua_beginmodule(tolua_S,"cFireChargeEntity");
|
tolua_beginmodule(tolua_S,"cFireChargeEntity");
|
||||||
tolua_endmodule(tolua_S);
|
tolua_endmodule(tolua_S);
|
||||||
|
tolua_cclass(tolua_S,"cTNTEntity","cTNTEntity","cEntity",NULL);
|
||||||
|
tolua_beginmodule(tolua_S,"cTNTEntity");
|
||||||
|
tolua_function(tolua_S,"GetCounterTime",tolua_AllToLua_cTNTEntity_GetCounterTime00);
|
||||||
|
tolua_function(tolua_S,"GetMaxFuseTime",tolua_AllToLua_cTNTEntity_GetMaxFuseTime00);
|
||||||
|
tolua_endmodule(tolua_S);
|
||||||
tolua_cclass(tolua_S,"cServer","cServer","",NULL);
|
tolua_cclass(tolua_S,"cServer","cServer","",NULL);
|
||||||
tolua_beginmodule(tolua_S,"cServer");
|
tolua_beginmodule(tolua_S,"cServer");
|
||||||
tolua_function(tolua_S,"GetDescription",tolua_AllToLua_cServer_GetDescription00);
|
tolua_function(tolua_S,"GetDescription",tolua_AllToLua_cServer_GetDescription00);
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
** Lua binding: AllToLua
|
** Lua binding: AllToLua
|
||||||
** Generated automatically by tolua++-1.0.92 on 12/11/13 12:34:22.
|
** Generated automatically by tolua++-1.0.92 on 12/14/13 16:22:46.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Exported function */
|
/* Exported function */
|
||||||
|
@ -6,13 +6,14 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// tolua_begin
|
||||||
class cTNTEntity :
|
class cTNTEntity :
|
||||||
public cEntity
|
public cEntity
|
||||||
{
|
{
|
||||||
typedef cEntity super;
|
typedef cEntity super;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
// tolua_end
|
||||||
CLASS_PROTODEF(cTNTEntity);
|
CLASS_PROTODEF(cTNTEntity);
|
||||||
|
|
||||||
cTNTEntity(double a_X, double a_Y, double a_Z, double a_FuseTimeInSec);
|
cTNTEntity(double a_X, double a_Y, double a_Z, double a_FuseTimeInSec);
|
||||||
@ -22,10 +23,13 @@ public:
|
|||||||
virtual void SpawnOn(cClientHandle & a_ClientHandle) override;
|
virtual void SpawnOn(cClientHandle & a_ClientHandle) override;
|
||||||
virtual void Tick(float a_Dt, cChunk & a_Chunk) override;
|
virtual void Tick(float a_Dt, cChunk & a_Chunk) override;
|
||||||
|
|
||||||
|
double GetCounterTime(void) const { return m_Counter; } // tolua_export
|
||||||
|
double GetMaxFuseTime(void) const { return m_MaxFuseTime; } // tolua_export
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
double m_Counter; ///< How much time has elapsed since the object was created, in seconds
|
double m_Counter; ///< How much time has elapsed since the object was created, in seconds
|
||||||
double m_MaxFuseTime; ///< How long the fuse is, in seconds
|
double m_MaxFuseTime; ///< How long the fuse is, in seconds
|
||||||
};
|
}; // tolua_export
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user