static int tolua_DecalScript_ADDDECALSPRITEMESSAGE_SIZEOF00(lua_State* tolua_S)
{
    tolua_Error tolua_err;
    if (
        !tolua_isusertype(tolua_S,1,"ADDDECALSPRITEMESSAGE",0,&tolua_err) ||
        !tolua_isnoobj(tolua_S,2,&tolua_err)
    )
        goto tolua_lerror;
    else
    {
        ADDDECALSPRITEMESSAGE* self = (ADDDECALSPRITEMESSAGE*)  tolua_tousertype(tolua_S,1,0);
        if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SIZEOF'",NULL);
        {
            CLuaDWORD tolua_ret = (  CLuaDWORD)  sizeof(ADDDECALSPRITEMESSAGE);
            {
#ifdef __cplusplus
                void* tolua_obj = new CLuaDWORD(tolua_ret);
                tolua_pushusertype_and_takeownership(tolua_S,tolua_obj,"CLuaDWORD");
#else
                void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CLuaDWORD));
                tolua_pushusertype_and_takeownership(tolua_S,tolua_obj,"CLuaDWORD");
#endif
            }
        }
    }
    return 1;
tolua_lerror:
    tolua_error(tolua_S,"#ferror in function 'SIZEOF'.",&tolua_err);
    return 0;
}
static int tolua_AIObjectScript_COMMANDSEQUENCEPARAMS_SIZEOF00(lua_State* tolua_S)
{
 tolua_Error tolua_err;
 if (
 !tolua_isusertype(tolua_S,1,"COMMANDSEQUENCEPARAMS",0,&tolua_err) ||
 !tolua_isnoobj(tolua_S,2,&tolua_err)
 )
 goto tolua_lerror;
 else
 {
  COMMANDSEQUENCEPARAMS* self = (COMMANDSEQUENCEPARAMS*)  tolua_tousertype(tolua_S,1,0);
 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SIZEOF'",NULL);
 {
   CLuaDWORD tolua_ret = (  CLuaDWORD)  sizeof(COMMANDSEQUENCEPARAMS);
 {
#ifdef __cplusplus
 void* tolua_obj = new CLuaDWORD(tolua_ret);
 tolua_pushusertype_and_takeownership(tolua_S,tolua_obj,"CLuaDWORD");
#else
 void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CLuaDWORD));
 tolua_pushusertype_and_takeownership(tolua_S,tolua_obj,"CLuaDWORD");
#endif
 }
 }
 }
 return 1;
tolua_lerror:
 tolua_error(tolua_S,"#ferror in function 'SIZEOF'.",&tolua_err);
 return 0;
}
Beispiel #3
0
static int tolua_HeroControl_PH_HeroControl_getColor00(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
 tolua_Error tolua_err;
 if (
     !tolua_isusertype(tolua_S,1,"PH::HeroControl",0,&tolua_err) ||
     !tolua_isnoobj(tolua_S,2,&tolua_err)
 )
  goto tolua_lerror;
 else
#endif
 {
  PH::HeroControl* self = (PH::HeroControl*)  tolua_tousertype(tolua_S,1,0);
#ifndef TOLUA_RELEASE
  if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getColor'", NULL);
#endif
  {
   PH::GemUtils::GemColor tolua_ret = (PH::GemUtils::GemColor)  self->getColor();
   {
#ifdef __cplusplus
    void* tolua_obj = Mtolua_new((PH::GemUtils::GemColor)(tolua_ret));
     tolua_pushusertype(tolua_S,tolua_obj,"PH::GemUtils::GemColor");
    tolua_register_gc(tolua_S,lua_gettop(tolua_S));
#else
    void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(PH::GemUtils::GemColor));
     tolua_pushusertype(tolua_S,tolua_obj,"PH::GemUtils::GemColor");
    tolua_register_gc(tolua_S,lua_gettop(tolua_S));
#endif
   }
  }
 }
 return 1;
#ifndef TOLUA_RELEASE
 tolua_lerror:
 tolua_error(tolua_S,"#ferror in function 'getColor'.",&tolua_err);
 return 0;
#endif
}
Beispiel #4
0
static int tolua_maudio_maudio_Sound_getVelocity00(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
 tolua_Error tolua_err;
 if (
 !tolua_isusertype(tolua_S,1,"const maudio::Sound",0,&tolua_err) ||
 !tolua_isnoobj(tolua_S,2,&tolua_err)
 )
 goto tolua_lerror;
 else
#endif
 {
  const maudio::Sound* self = (const maudio::Sound*)  tolua_tousertype(tolua_S,1,0);
#ifndef TOLUA_RELEASE
 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getVelocity'",NULL);
#endif
 {
  osg::Vec3 tolua_ret = (osg::Vec3)  self->getVelocity();
 {
#ifdef __cplusplus
 void* tolua_obj = new osg::Vec3(tolua_ret);
 tolua_pushusertype_and_takeownership(tolua_S,tolua_obj,"osg::Vec3");
#else
 void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(osg::Vec3));
 tolua_pushusertype_and_takeownership(tolua_S,tolua_obj,"osg::Vec3");
#endif
 }
 }
 }
 return 1;
#ifndef TOLUA_RELEASE
 tolua_lerror:
 tolua_error(tolua_S,"#ferror in function 'getVelocity'.",&tolua_err);
 return 0;
#endif
}
Beispiel #5
0
/* method: getDataRootDirectory of class  Global */
static int tolua_LuaAPI_Global_getDataRootDirectory00(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
 tolua_Error tolua_err;
 if (
 !tolua_isusertype(tolua_S,1,"Global",0,&tolua_err) || 
 !tolua_isnoobj(tolua_S,2,&tolua_err)
 )
 goto tolua_lerror;
 else
#endif
 {
  Global* self = (Global*)  tolua_tousertype(tolua_S,1,0);
#ifndef TOLUA_RELEASE
 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getDataRootDirectory'",NULL);
#endif
 {
  tstring tolua_ret =  self->getDataRootDirectory();
 {
#ifdef __cplusplus
 void* tolua_obj = new tstring(tolua_ret);
 tolua_pushusertype(tolua_S,tolua_clone(tolua_S,tolua_obj,tolua_collect_tstring),"tstring");
#else
 void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(tstring));
 tolua_pushusertype(tolua_S,tolua_clone(tolua_S,tolua_obj,NULL),"tstring");
#endif
 }
 }
 }
 return 1;
#ifndef TOLUA_RELEASE
 tolua_lerror:
 tolua_error(tolua_S,"#ferror in function 'getDataRootDirectory'.",&tolua_err);
 return 0;
#endif
}