mirror of https://github.com/axmolengine/axmol.git
[AUTO]: updating luabinding automatically
This commit is contained in:
parent
9fb38cb332
commit
36843196c5
|
@ -8,11 +8,6 @@
|
|||
-- @param self
|
||||
-- @return bool#bool ret (return value: bool)
|
||||
|
||||
--------------------------------
|
||||
-- @function [parent=#Image] getDataLen
|
||||
-- @param self
|
||||
-- @return long#long ret (return value: long)
|
||||
|
||||
--------------------------------
|
||||
-- @function [parent=#Image] saveToFile
|
||||
-- @param self
|
||||
|
@ -71,16 +66,6 @@
|
|||
-- @param self
|
||||
-- @return Texture2D::PixelFormat#Texture2D::PixelFormat ret (return value: cc.Texture2D::PixelFormat)
|
||||
|
||||
--------------------------------
|
||||
-- @function [parent=#Image] getData
|
||||
-- @param self
|
||||
-- @return unsigned char#unsigned char ret (return value: unsigned char)
|
||||
|
||||
--------------------------------
|
||||
-- @function [parent=#Image] getMipmaps
|
||||
-- @param self
|
||||
-- @return _MipmapInfo#_MipmapInfo ret (return value: cc._MipmapInfo)
|
||||
|
||||
--------------------------------
|
||||
-- @function [parent=#Image] Image
|
||||
-- @param self
|
||||
|
|
|
@ -32,6 +32,12 @@
|
|||
-- @function [parent=#Label] disableEffect
|
||||
-- @param self
|
||||
|
||||
--------------------------------
|
||||
-- @function [parent=#Label] setTTFConfig
|
||||
-- @param self
|
||||
-- @param #cc._ttfConfig _ttfconfig
|
||||
-- @return bool#bool ret (return value: bool)
|
||||
|
||||
--------------------------------
|
||||
-- @function [parent=#Label] getTextColor
|
||||
-- @param self
|
||||
|
|
|
@ -3,15 +3,6 @@
|
|||
-- @module ParallaxNode
|
||||
-- @extend Node
|
||||
|
||||
--------------------------------
|
||||
-- overload function: getParallaxArray()
|
||||
--
|
||||
-- overload function: getParallaxArray()
|
||||
--
|
||||
-- @function [parent=#ParallaxNode] getParallaxArray
|
||||
-- @param self
|
||||
-- @return _ccArray#_ccArray ret (retunr value: cc._ccArray)
|
||||
|
||||
--------------------------------
|
||||
-- @function [parent=#ParallaxNode] addChild
|
||||
-- @param self
|
||||
|
|
|
@ -3,20 +3,6 @@
|
|||
-- @module SkeletonAnimation
|
||||
-- @extend Skeleton
|
||||
|
||||
--------------------------------
|
||||
-- @function [parent=#SkeletonAnimation] addAnimation
|
||||
-- @param self
|
||||
-- @param #int int
|
||||
-- @param #char char
|
||||
-- @param #bool bool
|
||||
-- @param #float float
|
||||
-- @return spTrackEntry#spTrackEntry ret (return value: spTrackEntry)
|
||||
|
||||
--------------------------------
|
||||
-- @function [parent=#SkeletonAnimation] getCurrent
|
||||
-- @param self
|
||||
-- @return spTrackEntry#spTrackEntry ret (return value: spTrackEntry)
|
||||
|
||||
--------------------------------
|
||||
-- @function [parent=#SkeletonAnimation] setMix
|
||||
-- @param self
|
||||
|
@ -24,14 +10,6 @@
|
|||
-- @param #char char
|
||||
-- @param #float float
|
||||
|
||||
--------------------------------
|
||||
-- @function [parent=#SkeletonAnimation] setAnimation
|
||||
-- @param self
|
||||
-- @param #int int
|
||||
-- @param #char char
|
||||
-- @param #bool bool
|
||||
-- @return spTrackEntry#spTrackEntry ret (return value: spTrackEntry)
|
||||
|
||||
--------------------------------
|
||||
-- @function [parent=#SkeletonAnimation] clearTracks
|
||||
-- @param self
|
||||
|
|
|
@ -16,11 +16,6 @@
|
|||
-- @function [parent=#TileMapAtlas] releaseMap
|
||||
-- @param self
|
||||
|
||||
--------------------------------
|
||||
-- @function [parent=#TileMapAtlas] getTGAInfo
|
||||
-- @param self
|
||||
-- @return sImageTGA#sImageTGA ret (return value: cc.sImageTGA)
|
||||
|
||||
--------------------------------
|
||||
-- @function [parent=#TileMapAtlas] getTileAt
|
||||
-- @param self
|
||||
|
|
|
@ -30848,7 +30848,7 @@ int lua_cocos2dx_LabelTTF_getBlendFunc(lua_State* tolua_S)
|
|||
if(!ok)
|
||||
return 0;
|
||||
const cocos2d::BlendFunc& ret = cobj->getBlendFunc();
|
||||
#pragma warning NO CONVERSION FROM NATIVE FOR BlendFunc;
|
||||
blendfunc_to_luaval(tolua_S, ret);
|
||||
return 1;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getBlendFunc",argc, 0);
|
||||
|
@ -32819,6 +32819,53 @@ int lua_cocos2dx_Label_disableEffect(lua_State* tolua_S)
|
|||
|
||||
return 0;
|
||||
}
|
||||
int lua_cocos2dx_Label_setTTFConfig(lua_State* tolua_S)
|
||||
{
|
||||
int argc = 0;
|
||||
cocos2d::Label* 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.Label",0,&tolua_err)) goto tolua_lerror;
|
||||
#endif
|
||||
|
||||
cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0);
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
if (!cobj)
|
||||
{
|
||||
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_setTTFConfig'", nullptr);
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
argc = lua_gettop(tolua_S)-1;
|
||||
if (argc == 1)
|
||||
{
|
||||
cocos2d::_ttfConfig arg0;
|
||||
|
||||
ok &= luaval_to_ttfconfig(tolua_S, 2, &arg0);
|
||||
if(!ok)
|
||||
return 0;
|
||||
bool ret = cobj->setTTFConfig(arg0);
|
||||
tolua_pushboolean(tolua_S,(bool)ret);
|
||||
return 1;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setTTFConfig",argc, 1);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_setTTFConfig'.",&tolua_err);
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
int lua_cocos2dx_Label_getTextColor(lua_State* tolua_S)
|
||||
{
|
||||
int argc = 0;
|
||||
|
@ -33868,7 +33915,7 @@ int lua_cocos2dx_Label_getTTFConfig(lua_State* tolua_S)
|
|||
if(!ok)
|
||||
return 0;
|
||||
const cocos2d::_ttfConfig& ret = cobj->getTTFConfig();
|
||||
#pragma warning NO CONVERSION FROM NATIVE FOR _ttfConfig;
|
||||
ttfconfig_to_luaval(tolua_S, ret);
|
||||
return 1;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getTTFConfig",argc, 0);
|
||||
|
@ -34691,6 +34738,7 @@ int lua_register_cocos2dx_Label(lua_State* tolua_S)
|
|||
tolua_function(tolua_S,"getString",lua_cocos2dx_Label_getString);
|
||||
tolua_function(tolua_S,"getHeight",lua_cocos2dx_Label_getHeight);
|
||||
tolua_function(tolua_S,"disableEffect",lua_cocos2dx_Label_disableEffect);
|
||||
tolua_function(tolua_S,"setTTFConfig",lua_cocos2dx_Label_setTTFConfig);
|
||||
tolua_function(tolua_S,"getTextColor",lua_cocos2dx_Label_getTextColor);
|
||||
tolua_function(tolua_S,"getCommonLineHeight",lua_cocos2dx_Label_getCommonLineHeight);
|
||||
tolua_function(tolua_S,"setWidth",lua_cocos2dx_Label_setWidth);
|
||||
|
@ -34812,7 +34860,7 @@ int lua_cocos2dx_LabelBMFont_getBlendFunc(lua_State* tolua_S)
|
|||
if(!ok)
|
||||
return 0;
|
||||
const cocos2d::BlendFunc& ret = cobj->getBlendFunc();
|
||||
#pragma warning NO CONVERSION FROM NATIVE FOR BlendFunc;
|
||||
blendfunc_to_luaval(tolua_S, ret);
|
||||
return 1;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getBlendFunc",argc, 0);
|
||||
|
@ -44788,50 +44836,6 @@ int lua_cocos2dx_Image_hasPremultipliedAlpha(lua_State* tolua_S)
|
|||
|
||||
return 0;
|
||||
}
|
||||
int lua_cocos2dx_Image_getDataLen(lua_State* tolua_S)
|
||||
{
|
||||
int argc = 0;
|
||||
cocos2d::Image* 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.Image",0,&tolua_err)) goto tolua_lerror;
|
||||
#endif
|
||||
|
||||
cobj = (cocos2d::Image*)tolua_tousertype(tolua_S,1,0);
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
if (!cobj)
|
||||
{
|
||||
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Image_getDataLen'", nullptr);
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
argc = lua_gettop(tolua_S)-1;
|
||||
if (argc == 0)
|
||||
{
|
||||
if(!ok)
|
||||
return 0;
|
||||
ssize_t ret = cobj->getDataLen();
|
||||
tolua_pushnumber(tolua_S,(lua_Number)ret);
|
||||
return 1;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getDataLen",argc, 0);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Image_getDataLen'.",&tolua_err);
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
int lua_cocos2dx_Image_saveToFile(lua_State* tolua_S)
|
||||
{
|
||||
int argc = 0;
|
||||
|
@ -45336,94 +45340,6 @@ int lua_cocos2dx_Image_getRenderFormat(lua_State* tolua_S)
|
|||
|
||||
return 0;
|
||||
}
|
||||
int lua_cocos2dx_Image_getData(lua_State* tolua_S)
|
||||
{
|
||||
int argc = 0;
|
||||
cocos2d::Image* 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.Image",0,&tolua_err)) goto tolua_lerror;
|
||||
#endif
|
||||
|
||||
cobj = (cocos2d::Image*)tolua_tousertype(tolua_S,1,0);
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
if (!cobj)
|
||||
{
|
||||
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Image_getData'", nullptr);
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
argc = lua_gettop(tolua_S)-1;
|
||||
if (argc == 0)
|
||||
{
|
||||
if(!ok)
|
||||
return 0;
|
||||
unsigned char* ret = cobj->getData();
|
||||
#pragma warning NO CONVERSION FROM NATIVE FOR unsigned char*;
|
||||
return 1;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getData",argc, 0);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Image_getData'.",&tolua_err);
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
int lua_cocos2dx_Image_getMipmaps(lua_State* tolua_S)
|
||||
{
|
||||
int argc = 0;
|
||||
cocos2d::Image* 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.Image",0,&tolua_err)) goto tolua_lerror;
|
||||
#endif
|
||||
|
||||
cobj = (cocos2d::Image*)tolua_tousertype(tolua_S,1,0);
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
if (!cobj)
|
||||
{
|
||||
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Image_getMipmaps'", nullptr);
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
argc = lua_gettop(tolua_S)-1;
|
||||
if (argc == 0)
|
||||
{
|
||||
if(!ok)
|
||||
return 0;
|
||||
cocos2d::_MipmapInfo* ret = cobj->getMipmaps();
|
||||
#pragma warning NO CONVERSION FROM NATIVE FOR _MipmapInfo*;
|
||||
return 1;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getMipmaps",argc, 0);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Image_getMipmaps'.",&tolua_err);
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
int lua_cocos2dx_Image_constructor(lua_State* tolua_S)
|
||||
{
|
||||
int argc = 0;
|
||||
|
@ -45471,7 +45387,6 @@ int lua_register_cocos2dx_Image(lua_State* tolua_S)
|
|||
|
||||
tolua_beginmodule(tolua_S,"Image");
|
||||
tolua_function(tolua_S,"hasPremultipliedAlpha",lua_cocos2dx_Image_hasPremultipliedAlpha);
|
||||
tolua_function(tolua_S,"getDataLen",lua_cocos2dx_Image_getDataLen);
|
||||
tolua_function(tolua_S,"saveToFile",lua_cocos2dx_Image_saveToFile);
|
||||
tolua_function(tolua_S,"getBitPerPixel",lua_cocos2dx_Image_getBitPerPixel);
|
||||
tolua_function(tolua_S,"hasAlpha",lua_cocos2dx_Image_hasAlpha);
|
||||
|
@ -45483,8 +45398,6 @@ int lua_register_cocos2dx_Image(lua_State* tolua_S)
|
|||
tolua_function(tolua_S,"getFileType",lua_cocos2dx_Image_getFileType);
|
||||
tolua_function(tolua_S,"getNumberOfMipmaps",lua_cocos2dx_Image_getNumberOfMipmaps);
|
||||
tolua_function(tolua_S,"getRenderFormat",lua_cocos2dx_Image_getRenderFormat);
|
||||
tolua_function(tolua_S,"getData",lua_cocos2dx_Image_getData);
|
||||
tolua_function(tolua_S,"getMipmaps",lua_cocos2dx_Image_getMipmaps);
|
||||
tolua_function(tolua_S,"new",lua_cocos2dx_Image_constructor);
|
||||
tolua_endmodule(tolua_S);
|
||||
std::string typeName = typeid(cocos2d::Image).name();
|
||||
|
@ -58340,53 +58253,6 @@ int lua_register_cocos2dx_TextureCache(lua_State* tolua_S)
|
|||
return 1;
|
||||
}
|
||||
|
||||
int lua_cocos2dx_ParallaxNode_getParallaxArray(lua_State* tolua_S)
|
||||
{
|
||||
int argc = 0;
|
||||
cocos2d::ParallaxNode* 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.ParallaxNode",0,&tolua_err)) goto tolua_lerror;
|
||||
#endif
|
||||
cobj = (cocos2d::ParallaxNode*)tolua_tousertype(tolua_S,1,0);
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
if (!cobj)
|
||||
{
|
||||
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParallaxNode_getParallaxArray'", nullptr);
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
argc = lua_gettop(tolua_S)-1;
|
||||
do{
|
||||
if (argc == 0) {
|
||||
const cocos2d::_ccArray* ret = cobj->getParallaxArray();
|
||||
#pragma warning NO CONVERSION FROM NATIVE FOR _ccArray*;
|
||||
return 1;
|
||||
}
|
||||
}while(0);
|
||||
ok = true;
|
||||
do{
|
||||
if (argc == 0) {
|
||||
cocos2d::_ccArray* ret = cobj->getParallaxArray();
|
||||
#pragma warning NO CONVERSION FROM NATIVE FOR _ccArray*;
|
||||
return 1;
|
||||
}
|
||||
}while(0);
|
||||
ok = true;
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getParallaxArray",argc, 0);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParallaxNode_getParallaxArray'.",&tolua_err);
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
int lua_cocos2dx_ParallaxNode_addChild(lua_State* tolua_S)
|
||||
{
|
||||
int argc = 0;
|
||||
|
@ -58577,7 +58443,6 @@ int lua_register_cocos2dx_ParallaxNode(lua_State* tolua_S)
|
|||
tolua_cclass(tolua_S,"ParallaxNode","cc.ParallaxNode","cc.Node",nullptr);
|
||||
|
||||
tolua_beginmodule(tolua_S,"ParallaxNode");
|
||||
tolua_function(tolua_S,"getParallaxArray",lua_cocos2dx_ParallaxNode_getParallaxArray);
|
||||
tolua_function(tolua_S,"addChild",lua_cocos2dx_ParallaxNode_addChild);
|
||||
tolua_function(tolua_S,"removeAllChildrenWithCleanup",lua_cocos2dx_ParallaxNode_removeAllChildrenWithCleanup);
|
||||
tolua_function(tolua_S,"setParallaxArray",lua_cocos2dx_ParallaxNode_setParallaxArray);
|
||||
|
@ -62930,50 +62795,6 @@ int lua_cocos2dx_TileMapAtlas_releaseMap(lua_State* tolua_S)
|
|||
|
||||
return 0;
|
||||
}
|
||||
int lua_cocos2dx_TileMapAtlas_getTGAInfo(lua_State* tolua_S)
|
||||
{
|
||||
int argc = 0;
|
||||
cocos2d::TileMapAtlas* 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.TileMapAtlas",0,&tolua_err)) goto tolua_lerror;
|
||||
#endif
|
||||
|
||||
cobj = (cocos2d::TileMapAtlas*)tolua_tousertype(tolua_S,1,0);
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
if (!cobj)
|
||||
{
|
||||
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TileMapAtlas_getTGAInfo'", nullptr);
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
argc = lua_gettop(tolua_S)-1;
|
||||
if (argc == 0)
|
||||
{
|
||||
if(!ok)
|
||||
return 0;
|
||||
cocos2d::sImageTGA* ret = cobj->getTGAInfo();
|
||||
#pragma warning NO CONVERSION FROM NATIVE FOR sImageTGA*;
|
||||
return 1;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getTGAInfo",argc, 0);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TileMapAtlas_getTGAInfo'.",&tolua_err);
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
int lua_cocos2dx_TileMapAtlas_getTileAt(lua_State* tolua_S)
|
||||
{
|
||||
int argc = 0;
|
||||
|
@ -63203,7 +63024,6 @@ int lua_register_cocos2dx_TileMapAtlas(lua_State* tolua_S)
|
|||
tolua_beginmodule(tolua_S,"TileMapAtlas");
|
||||
tolua_function(tolua_S,"initWithTileFile",lua_cocos2dx_TileMapAtlas_initWithTileFile);
|
||||
tolua_function(tolua_S,"releaseMap",lua_cocos2dx_TileMapAtlas_releaseMap);
|
||||
tolua_function(tolua_S,"getTGAInfo",lua_cocos2dx_TileMapAtlas_getTGAInfo);
|
||||
tolua_function(tolua_S,"getTileAt",lua_cocos2dx_TileMapAtlas_getTileAt);
|
||||
tolua_function(tolua_S,"setTile",lua_cocos2dx_TileMapAtlas_setTile);
|
||||
tolua_function(tolua_S,"setTGAInfo",lua_cocos2dx_TileMapAtlas_setTGAInfo);
|
||||
|
|
|
@ -1558,10 +1558,6 @@ int register_all_cocos2dx(lua_State* tolua_S);
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -217,7 +217,7 @@ int lua_cocos2dx_spine_Skeleton_getBlendFunc(lua_State* tolua_S)
|
|||
if(!ok)
|
||||
return 0;
|
||||
const cocos2d::BlendFunc& ret = cobj->getBlendFunc();
|
||||
#pragma warning NO CONVERSION FROM NATIVE FOR BlendFunc;
|
||||
blendfunc_to_luaval(tolua_S, ret);
|
||||
return 1;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getBlendFunc",argc, 0);
|
||||
|
@ -346,134 +346,6 @@ int lua_register_cocos2dx_spine_Skeleton(lua_State* tolua_S)
|
|||
return 1;
|
||||
}
|
||||
|
||||
int lua_cocos2dx_spine_SkeletonAnimation_addAnimation(lua_State* tolua_S)
|
||||
{
|
||||
int argc = 0;
|
||||
spine::SkeletonAnimation* cobj = nullptr;
|
||||
bool ok = true;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_Error tolua_err;
|
||||
#endif
|
||||
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
if (!tolua_isusertype(tolua_S,1,"sp.SkeletonAnimation",0,&tolua_err)) goto tolua_lerror;
|
||||
#endif
|
||||
|
||||
cobj = (spine::SkeletonAnimation*)tolua_tousertype(tolua_S,1,0);
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
if (!cobj)
|
||||
{
|
||||
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_spine_SkeletonAnimation_addAnimation'", nullptr);
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
argc = lua_gettop(tolua_S)-1;
|
||||
if (argc == 3)
|
||||
{
|
||||
int arg0;
|
||||
const char* arg1;
|
||||
bool arg2;
|
||||
|
||||
ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0);
|
||||
|
||||
std::string arg1_tmp; ok &= luaval_to_std_string(tolua_S, 3, &arg1_tmp); arg1 = arg1_tmp.c_str();
|
||||
|
||||
ok &= luaval_to_boolean(tolua_S, 4,&arg2);
|
||||
if(!ok)
|
||||
return 0;
|
||||
spTrackEntry* ret = cobj->addAnimation(arg0, arg1, arg2);
|
||||
#pragma warning NO CONVERSION FROM NATIVE FOR spTrackEntry*;
|
||||
return 1;
|
||||
}
|
||||
if (argc == 4)
|
||||
{
|
||||
int arg0;
|
||||
const char* arg1;
|
||||
bool arg2;
|
||||
double arg3;
|
||||
|
||||
ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0);
|
||||
|
||||
std::string arg1_tmp; ok &= luaval_to_std_string(tolua_S, 3, &arg1_tmp); arg1 = arg1_tmp.c_str();
|
||||
|
||||
ok &= luaval_to_boolean(tolua_S, 4,&arg2);
|
||||
|
||||
ok &= luaval_to_number(tolua_S, 5,&arg3);
|
||||
if(!ok)
|
||||
return 0;
|
||||
spTrackEntry* ret = cobj->addAnimation(arg0, arg1, arg2, arg3);
|
||||
#pragma warning NO CONVERSION FROM NATIVE FOR spTrackEntry*;
|
||||
return 1;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "addAnimation",argc, 3);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_spine_SkeletonAnimation_addAnimation'.",&tolua_err);
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
int lua_cocos2dx_spine_SkeletonAnimation_getCurrent(lua_State* tolua_S)
|
||||
{
|
||||
int argc = 0;
|
||||
spine::SkeletonAnimation* cobj = nullptr;
|
||||
bool ok = true;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_Error tolua_err;
|
||||
#endif
|
||||
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
if (!tolua_isusertype(tolua_S,1,"sp.SkeletonAnimation",0,&tolua_err)) goto tolua_lerror;
|
||||
#endif
|
||||
|
||||
cobj = (spine::SkeletonAnimation*)tolua_tousertype(tolua_S,1,0);
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
if (!cobj)
|
||||
{
|
||||
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_spine_SkeletonAnimation_getCurrent'", nullptr);
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
argc = lua_gettop(tolua_S)-1;
|
||||
if (argc == 0)
|
||||
{
|
||||
if(!ok)
|
||||
return 0;
|
||||
spTrackEntry* ret = cobj->getCurrent();
|
||||
#pragma warning NO CONVERSION FROM NATIVE FOR spTrackEntry*;
|
||||
return 1;
|
||||
}
|
||||
if (argc == 1)
|
||||
{
|
||||
int arg0;
|
||||
|
||||
ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0);
|
||||
if(!ok)
|
||||
return 0;
|
||||
spTrackEntry* ret = cobj->getCurrent(arg0);
|
||||
#pragma warning NO CONVERSION FROM NATIVE FOR spTrackEntry*;
|
||||
return 1;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getCurrent",argc, 0);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_spine_SkeletonAnimation_getCurrent'.",&tolua_err);
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
int lua_cocos2dx_spine_SkeletonAnimation_setMix(lua_State* tolua_S)
|
||||
{
|
||||
int argc = 0;
|
||||
|
@ -526,59 +398,6 @@ int lua_cocos2dx_spine_SkeletonAnimation_setMix(lua_State* tolua_S)
|
|||
|
||||
return 0;
|
||||
}
|
||||
int lua_cocos2dx_spine_SkeletonAnimation_setAnimation(lua_State* tolua_S)
|
||||
{
|
||||
int argc = 0;
|
||||
spine::SkeletonAnimation* cobj = nullptr;
|
||||
bool ok = true;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_Error tolua_err;
|
||||
#endif
|
||||
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
if (!tolua_isusertype(tolua_S,1,"sp.SkeletonAnimation",0,&tolua_err)) goto tolua_lerror;
|
||||
#endif
|
||||
|
||||
cobj = (spine::SkeletonAnimation*)tolua_tousertype(tolua_S,1,0);
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
if (!cobj)
|
||||
{
|
||||
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_spine_SkeletonAnimation_setAnimation'", nullptr);
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
argc = lua_gettop(tolua_S)-1;
|
||||
if (argc == 3)
|
||||
{
|
||||
int arg0;
|
||||
const char* arg1;
|
||||
bool arg2;
|
||||
|
||||
ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0);
|
||||
|
||||
std::string arg1_tmp; ok &= luaval_to_std_string(tolua_S, 3, &arg1_tmp); arg1 = arg1_tmp.c_str();
|
||||
|
||||
ok &= luaval_to_boolean(tolua_S, 4,&arg2);
|
||||
if(!ok)
|
||||
return 0;
|
||||
spTrackEntry* ret = cobj->setAnimation(arg0, arg1, arg2);
|
||||
#pragma warning NO CONVERSION FROM NATIVE FOR spTrackEntry*;
|
||||
return 1;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setAnimation",argc, 3);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_spine_SkeletonAnimation_setAnimation'.",&tolua_err);
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
int lua_cocos2dx_spine_SkeletonAnimation_clearTracks(lua_State* tolua_S)
|
||||
{
|
||||
int argc = 0;
|
||||
|
@ -742,10 +561,7 @@ int lua_register_cocos2dx_spine_SkeletonAnimation(lua_State* tolua_S)
|
|||
tolua_cclass(tolua_S,"SkeletonAnimation","sp.SkeletonAnimation","sp.Skeleton",nullptr);
|
||||
|
||||
tolua_beginmodule(tolua_S,"SkeletonAnimation");
|
||||
tolua_function(tolua_S,"addAnimation",lua_cocos2dx_spine_SkeletonAnimation_addAnimation);
|
||||
tolua_function(tolua_S,"getCurrent",lua_cocos2dx_spine_SkeletonAnimation_getCurrent);
|
||||
tolua_function(tolua_S,"setMix",lua_cocos2dx_spine_SkeletonAnimation_setMix);
|
||||
tolua_function(tolua_S,"setAnimation",lua_cocos2dx_spine_SkeletonAnimation_setAnimation);
|
||||
tolua_function(tolua_S,"clearTracks",lua_cocos2dx_spine_SkeletonAnimation_clearTracks);
|
||||
tolua_function(tolua_S,"clearTrack",lua_cocos2dx_spine_SkeletonAnimation_clearTrack);
|
||||
tolua_function(tolua_S,"onAnimationStateEvent",lua_cocos2dx_spine_SkeletonAnimation_onAnimationStateEvent);
|
||||
|
|
|
@ -23,7 +23,4 @@ int register_all_cocos2dx_spine(lua_State* tolua_S);
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // __cocos2dx_spine_h__
|
||||
|
|
Loading…
Reference in New Issue