[AUTO]: updating luabinding automatically

This commit is contained in:
CocosRobot 2014-07-21 03:57:41 +00:00
parent 45fa2363e8
commit 30b00dadd8
4 changed files with 1031 additions and 1031 deletions

View File

@ -66,6 +66,11 @@
-- @field [parent=#cc] LabelAtlas#LabelAtlas LabelAtlas preloaded module -- @field [parent=#cc] LabelAtlas#LabelAtlas LabelAtlas preloaded module
--------------------------------------------------------
-- the cc Scene
-- @field [parent=#cc] Scene#Scene Scene preloaded module
-------------------------------------------------------- --------------------------------------------------------
-- the cc Director -- the cc Director
-- @field [parent=#cc] Director#Director Director preloaded module -- @field [parent=#cc] Director#Director Director preloaded module
@ -771,11 +776,6 @@
-- @field [parent=#cc] LayerMultiplex#LayerMultiplex LayerMultiplex preloaded module -- @field [parent=#cc] LayerMultiplex#LayerMultiplex LayerMultiplex preloaded module
--------------------------------------------------------
-- the cc Scene
-- @field [parent=#cc] Scene#Scene Scene preloaded module
-------------------------------------------------------- --------------------------------------------------------
-- the cc TransitionEaseScene -- the cc TransitionEaseScene
-- @field [parent=#cc] TransitionEaseScene#TransitionEaseScene TransitionEaseScene preloaded module -- @field [parent=#cc] TransitionEaseScene#TransitionEaseScene TransitionEaseScene preloaded module

View File

@ -1,16 +1,6 @@
-------------------------------- --------------------------------
-- @module cc -- @module cc
--------------------------------------------------------
-- the cc PhysicsWorld
-- @field [parent=#cc] PhysicsWorld#PhysicsWorld PhysicsWorld preloaded module
--------------------------------------------------------
-- the cc PhysicsDebugDraw
-- @field [parent=#cc] PhysicsDebugDraw#PhysicsDebugDraw PhysicsDebugDraw preloaded module
-------------------------------------------------------- --------------------------------------------------------
-- the cc PhysicsShape -- the cc PhysicsShape
-- @field [parent=#cc] PhysicsShape#PhysicsShape PhysicsShape preloaded module -- @field [parent=#cc] PhysicsShape#PhysicsShape PhysicsShape preloaded module
@ -56,6 +46,16 @@
-- @field [parent=#cc] PhysicsBody#PhysicsBody PhysicsBody preloaded module -- @field [parent=#cc] PhysicsBody#PhysicsBody PhysicsBody preloaded module
--------------------------------------------------------
-- the cc PhysicsWorld
-- @field [parent=#cc] PhysicsWorld#PhysicsWorld PhysicsWorld preloaded module
--------------------------------------------------------
-- the cc PhysicsDebugDraw
-- @field [parent=#cc] PhysicsDebugDraw#PhysicsDebugDraw PhysicsDebugDraw preloaded module
-------------------------------------------------------- --------------------------------------------------------
-- the cc PhysicsContact -- the cc PhysicsContact
-- @field [parent=#cc] PhysicsContact#PhysicsContact PhysicsContact preloaded module -- @field [parent=#cc] PhysicsContact#PhysicsContact PhysicsContact preloaded module

View File

@ -11598,6 +11598,168 @@ int lua_register_cocos2dx_LabelAtlas(lua_State* tolua_S)
return 1; return 1;
} }
int lua_cocos2dx_Scene_getPhysicsWorld(lua_State* tolua_S)
{
int argc = 0;
cocos2d::Scene* cobj = nullptr;
bool ok = true;
#if COCOS2D_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if COCOS2D_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"cc.Scene",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (cocos2d::Scene*)tolua_tousertype(tolua_S,1,0);
#if COCOS2D_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Scene_getPhysicsWorld'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
return 0;
cocos2d::PhysicsWorld* ret = cobj->getPhysicsWorld();
object_to_luaval<cocos2d::PhysicsWorld>(tolua_S, "cc.PhysicsWorld",(cocos2d::PhysicsWorld*)ret);
return 1;
}
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getPhysicsWorld",argc, 0);
return 0;
#if COCOS2D_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Scene_getPhysicsWorld'.",&tolua_err);
#endif
return 0;
}
int lua_cocos2dx_Scene_createWithSize(lua_State* tolua_S)
{
int argc = 0;
bool ok = true;
#if COCOS2D_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if COCOS2D_DEBUG >= 1
if (!tolua_isusertable(tolua_S,1,"cc.Scene",0,&tolua_err)) goto tolua_lerror;
#endif
argc = lua_gettop(tolua_S) - 1;
if (argc == 1)
{
cocos2d::Size arg0;
ok &= luaval_to_size(tolua_S, 2, &arg0);
if(!ok)
return 0;
cocos2d::Scene* ret = cocos2d::Scene::createWithSize(arg0);
object_to_luaval<cocos2d::Scene>(tolua_S, "cc.Scene",(cocos2d::Scene*)ret);
return 1;
}
CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "createWithSize",argc, 1);
return 0;
#if COCOS2D_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Scene_createWithSize'.",&tolua_err);
#endif
return 0;
}
int lua_cocos2dx_Scene_create(lua_State* tolua_S)
{
int argc = 0;
bool ok = true;
#if COCOS2D_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if COCOS2D_DEBUG >= 1
if (!tolua_isusertable(tolua_S,1,"cc.Scene",0,&tolua_err)) goto tolua_lerror;
#endif
argc = lua_gettop(tolua_S) - 1;
if (argc == 0)
{
if(!ok)
return 0;
cocos2d::Scene* ret = cocos2d::Scene::create();
object_to_luaval<cocos2d::Scene>(tolua_S, "cc.Scene",(cocos2d::Scene*)ret);
return 1;
}
CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "create",argc, 0);
return 0;
#if COCOS2D_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Scene_create'.",&tolua_err);
#endif
return 0;
}
int lua_cocos2dx_Scene_createWithPhysics(lua_State* tolua_S)
{
int argc = 0;
bool ok = true;
#if COCOS2D_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if COCOS2D_DEBUG >= 1
if (!tolua_isusertable(tolua_S,1,"cc.Scene",0,&tolua_err)) goto tolua_lerror;
#endif
argc = lua_gettop(tolua_S) - 1;
if (argc == 0)
{
if(!ok)
return 0;
cocos2d::Scene* ret = cocos2d::Scene::createWithPhysics();
object_to_luaval<cocos2d::Scene>(tolua_S, "cc.Scene",(cocos2d::Scene*)ret);
return 1;
}
CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "createWithPhysics",argc, 0);
return 0;
#if COCOS2D_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Scene_createWithPhysics'.",&tolua_err);
#endif
return 0;
}
static int lua_cocos2dx_Scene_finalize(lua_State* tolua_S)
{
printf("luabindings: finalizing LUA object (Scene)");
return 0;
}
int lua_register_cocos2dx_Scene(lua_State* tolua_S)
{
tolua_usertype(tolua_S,"cc.Scene");
tolua_cclass(tolua_S,"Scene","cc.Scene","cc.Node",nullptr);
tolua_beginmodule(tolua_S,"Scene");
tolua_function(tolua_S,"getPhysicsWorld",lua_cocos2dx_Scene_getPhysicsWorld);
tolua_function(tolua_S,"createWithSize", lua_cocos2dx_Scene_createWithSize);
tolua_function(tolua_S,"create", lua_cocos2dx_Scene_create);
tolua_function(tolua_S,"createWithPhysics", lua_cocos2dx_Scene_createWithPhysics);
tolua_endmodule(tolua_S);
std::string typeName = typeid(cocos2d::Scene).name();
g_luaType[typeName] = "cc.Scene";
g_typeCast["Scene"] = "cc.Scene";
return 1;
}
int lua_cocos2dx_Director_pause(lua_State* tolua_S) int lua_cocos2dx_Director_pause(lua_State* tolua_S)
{ {
int argc = 0; int argc = 0;
@ -36291,168 +36453,6 @@ int lua_register_cocos2dx_LayerMultiplex(lua_State* tolua_S)
return 1; return 1;
} }
int lua_cocos2dx_Scene_getPhysicsWorld(lua_State* tolua_S)
{
int argc = 0;
cocos2d::Scene* cobj = nullptr;
bool ok = true;
#if COCOS2D_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if COCOS2D_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"cc.Scene",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (cocos2d::Scene*)tolua_tousertype(tolua_S,1,0);
#if COCOS2D_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Scene_getPhysicsWorld'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
return 0;
cocos2d::PhysicsWorld* ret = cobj->getPhysicsWorld();
object_to_luaval<cocos2d::PhysicsWorld>(tolua_S, "cc.PhysicsWorld",(cocos2d::PhysicsWorld*)ret);
return 1;
}
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getPhysicsWorld",argc, 0);
return 0;
#if COCOS2D_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Scene_getPhysicsWorld'.",&tolua_err);
#endif
return 0;
}
int lua_cocos2dx_Scene_createWithSize(lua_State* tolua_S)
{
int argc = 0;
bool ok = true;
#if COCOS2D_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if COCOS2D_DEBUG >= 1
if (!tolua_isusertable(tolua_S,1,"cc.Scene",0,&tolua_err)) goto tolua_lerror;
#endif
argc = lua_gettop(tolua_S) - 1;
if (argc == 1)
{
cocos2d::Size arg0;
ok &= luaval_to_size(tolua_S, 2, &arg0);
if(!ok)
return 0;
cocos2d::Scene* ret = cocos2d::Scene::createWithSize(arg0);
object_to_luaval<cocos2d::Scene>(tolua_S, "cc.Scene",(cocos2d::Scene*)ret);
return 1;
}
CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "createWithSize",argc, 1);
return 0;
#if COCOS2D_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Scene_createWithSize'.",&tolua_err);
#endif
return 0;
}
int lua_cocos2dx_Scene_create(lua_State* tolua_S)
{
int argc = 0;
bool ok = true;
#if COCOS2D_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if COCOS2D_DEBUG >= 1
if (!tolua_isusertable(tolua_S,1,"cc.Scene",0,&tolua_err)) goto tolua_lerror;
#endif
argc = lua_gettop(tolua_S) - 1;
if (argc == 0)
{
if(!ok)
return 0;
cocos2d::Scene* ret = cocos2d::Scene::create();
object_to_luaval<cocos2d::Scene>(tolua_S, "cc.Scene",(cocos2d::Scene*)ret);
return 1;
}
CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "create",argc, 0);
return 0;
#if COCOS2D_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Scene_create'.",&tolua_err);
#endif
return 0;
}
int lua_cocos2dx_Scene_createWithPhysics(lua_State* tolua_S)
{
int argc = 0;
bool ok = true;
#if COCOS2D_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if COCOS2D_DEBUG >= 1
if (!tolua_isusertable(tolua_S,1,"cc.Scene",0,&tolua_err)) goto tolua_lerror;
#endif
argc = lua_gettop(tolua_S) - 1;
if (argc == 0)
{
if(!ok)
return 0;
cocos2d::Scene* ret = cocos2d::Scene::createWithPhysics();
object_to_luaval<cocos2d::Scene>(tolua_S, "cc.Scene",(cocos2d::Scene*)ret);
return 1;
}
CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "createWithPhysics",argc, 0);
return 0;
#if COCOS2D_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Scene_createWithPhysics'.",&tolua_err);
#endif
return 0;
}
static int lua_cocos2dx_Scene_finalize(lua_State* tolua_S)
{
printf("luabindings: finalizing LUA object (Scene)");
return 0;
}
int lua_register_cocos2dx_Scene(lua_State* tolua_S)
{
tolua_usertype(tolua_S,"cc.Scene");
tolua_cclass(tolua_S,"Scene","cc.Scene","cc.Node",nullptr);
tolua_beginmodule(tolua_S,"Scene");
tolua_function(tolua_S,"getPhysicsWorld",lua_cocos2dx_Scene_getPhysicsWorld);
tolua_function(tolua_S,"createWithSize", lua_cocos2dx_Scene_createWithSize);
tolua_function(tolua_S,"create", lua_cocos2dx_Scene_create);
tolua_function(tolua_S,"createWithPhysics", lua_cocos2dx_Scene_createWithPhysics);
tolua_endmodule(tolua_S);
std::string typeName = typeid(cocos2d::Scene).name();
g_luaType[typeName] = "cc.Scene";
g_typeCast["Scene"] = "cc.Scene";
return 1;
}
int lua_cocos2dx_TransitionEaseScene_easeActionWithAction(lua_State* tolua_S) int lua_cocos2dx_TransitionEaseScene_easeActionWithAction(lua_State* tolua_S)
{ {
int argc = 0; int argc = 0;

File diff suppressed because it is too large Load Diff