Added cPickup:IsCollected() to the Lua API.
This commit is contained in:
parent
e80c5eac40
commit
25e2f721ad
@ -1,6 +1,6 @@
|
||||
/*
|
||||
** Lua binding: AllToLua
|
||||
** Generated automatically by tolua++-1.0.92 on 08/19/13 11:43:38.
|
||||
** Generated automatically by tolua++-1.0.92 on 08/19/13 11:57:26.
|
||||
*/
|
||||
|
||||
#ifndef __cplusplus
|
||||
@ -18075,6 +18075,38 @@ static int tolua_AllToLua_cPickup_GetAge00(lua_State* tolua_S)
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* method: IsCollected of class cPickup */
|
||||
#ifndef TOLUA_DISABLE_tolua_AllToLua_cPickup_IsCollected00
|
||||
static int tolua_AllToLua_cPickup_IsCollected00(lua_State* tolua_S)
|
||||
{
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_Error tolua_err;
|
||||
if (
|
||||
!tolua_isusertype(tolua_S,1,"const cPickup",0,&tolua_err) ||
|
||||
!tolua_isnoobj(tolua_S,2,&tolua_err)
|
||||
)
|
||||
goto tolua_lerror;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
const cPickup* self = (const cPickup*) tolua_tousertype(tolua_S,1,0);
|
||||
#ifndef TOLUA_RELEASE
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsCollected'", NULL);
|
||||
#endif
|
||||
{
|
||||
bool tolua_ret = (bool) self->IsCollected();
|
||||
tolua_pushboolean(tolua_S,(bool)tolua_ret);
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'IsCollected'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* get function: m_PrimaryServerVersion of class cRoot */
|
||||
#ifndef TOLUA_DISABLE_tolua_get_cRoot_m_PrimaryServerVersion
|
||||
static int tolua_get_cRoot_m_PrimaryServerVersion(lua_State* tolua_S)
|
||||
@ -28432,6 +28464,7 @@ TOLUA_API int tolua_AllToLua_open (lua_State* tolua_S)
|
||||
tolua_function(tolua_S,"GetItem",tolua_AllToLua_cPickup_GetItem00);
|
||||
tolua_function(tolua_S,"CollectedBy",tolua_AllToLua_cPickup_CollectedBy00);
|
||||
tolua_function(tolua_S,"GetAge",tolua_AllToLua_cPickup_GetAge00);
|
||||
tolua_function(tolua_S,"IsCollected",tolua_AllToLua_cPickup_IsCollected00);
|
||||
tolua_endmodule(tolua_S);
|
||||
tolua_cclass(tolua_S,"cRoot","cRoot","",NULL);
|
||||
tolua_beginmodule(tolua_S,"cRoot");
|
||||
|
@ -1,6 +1,6 @@
|
||||
/*
|
||||
** Lua binding: AllToLua
|
||||
** Generated automatically by tolua++-1.0.92 on 08/19/13 11:43:39.
|
||||
** Generated automatically by tolua++-1.0.92 on 08/19/13 11:57:27.
|
||||
*/
|
||||
|
||||
/* Exported function */
|
||||
|
@ -40,6 +40,9 @@ public:
|
||||
/// Returns the number of ticks that this entity has existed
|
||||
int GetAge(void) const { return (int)(m_Timer / 50); } // tolua_export
|
||||
|
||||
/// Returns true if the pickup has already been collected
|
||||
bool IsCollected(void) const { return m_bCollected; } // tolua_export
|
||||
|
||||
private:
|
||||
Vector3d m_ResultingSpeed; //Can be used to modify the resulting speed for the current tick ;)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user