mirror of https://github.com/axmolengine/axmol.git
[ci skip][AUTO]: updating luabinding & jsbinding & cocos_file.json automatically
This commit is contained in:
parent
e4be87a059
commit
47a980c0c8
|
@ -72,6 +72,20 @@ bool
|
|||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method initWithJsonFile
|
||||
* @param {String|String} str
|
||||
* @param {String|spAtlas} str
|
||||
* @param {float|float} float
|
||||
*/
|
||||
initWithJsonFile : function(
|
||||
str,
|
||||
spatlas,
|
||||
float
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setSlotsToSetupPose
|
||||
*/
|
||||
|
@ -80,6 +94,20 @@ setSlotsToSetupPose : function (
|
|||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method initWithBinaryFile
|
||||
* @param {String|String} str
|
||||
* @param {String|spAtlas} str
|
||||
* @param {float|float} float
|
||||
*/
|
||||
initWithBinaryFile : function(
|
||||
str,
|
||||
spatlas,
|
||||
float
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setToSetupPose
|
||||
*/
|
||||
|
@ -144,20 +172,6 @@ getTimeScale : function (
|
|||
return 0;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method initWithFile
|
||||
* @param {String|String} str
|
||||
* @param {String|spAtlas} str
|
||||
* @param {float|float} float
|
||||
*/
|
||||
initWithFile : function(
|
||||
str,
|
||||
spatlas,
|
||||
float
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setBlendFunc
|
||||
* @param {cc.BlendFunc} arg0
|
||||
|
@ -243,29 +257,15 @@ float
|
|||
sp.SkeletonAnimation = {
|
||||
|
||||
/**
|
||||
* @method setTrackCompleteListener
|
||||
* @param {spTrackEntry} arg0
|
||||
* @param {function} arg1
|
||||
* @method setStartListener
|
||||
* @param {function} arg0
|
||||
*/
|
||||
setTrackCompleteListener : function (
|
||||
sptrackentry,
|
||||
setStartListener : function (
|
||||
func
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method findAnimation
|
||||
* @param {String} arg0
|
||||
* @return {spAnimation}
|
||||
*/
|
||||
findAnimation : function (
|
||||
str
|
||||
)
|
||||
{
|
||||
return spAnimation;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setTrackEventListener
|
||||
* @param {spTrackEntry} arg0
|
||||
|
@ -278,58 +278,6 @@ func
|
|||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setMix
|
||||
* @param {String} arg0
|
||||
* @param {String} arg1
|
||||
* @param {float} arg2
|
||||
*/
|
||||
setMix : function (
|
||||
str,
|
||||
str,
|
||||
float
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setTrackStartListener
|
||||
* @param {spTrackEntry} arg0
|
||||
* @param {function} arg1
|
||||
*/
|
||||
setTrackStartListener : function (
|
||||
sptrackentry,
|
||||
func
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setEndListener
|
||||
* @param {function} arg0
|
||||
*/
|
||||
setEndListener : function (
|
||||
func
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method onAnimationStateEvent
|
||||
* @param {int} arg0
|
||||
* @param {spEventType} arg1
|
||||
* @param {spEvent} arg2
|
||||
* @param {int} arg3
|
||||
*/
|
||||
onAnimationStateEvent : function (
|
||||
int,
|
||||
speventtype,
|
||||
spevent,
|
||||
int
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getState
|
||||
* @return {spAnimationState}
|
||||
|
@ -341,51 +289,17 @@ getState : function (
|
|||
},
|
||||
|
||||
/**
|
||||
* @method update
|
||||
* @param {float} arg0
|
||||
* @method setTrackCompleteListener
|
||||
* @param {spTrackEntry} arg0
|
||||
* @param {function} arg1
|
||||
*/
|
||||
update : function (
|
||||
float
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setEventListener
|
||||
* @param {function} arg0
|
||||
*/
|
||||
setEventListener : function (
|
||||
setTrackCompleteListener : function (
|
||||
sptrackentry,
|
||||
func
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setCompleteListener
|
||||
* @param {function} arg0
|
||||
*/
|
||||
setCompleteListener : function (
|
||||
func
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method clearTrack
|
||||
*/
|
||||
clearTrack : function (
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method initialize
|
||||
*/
|
||||
initialize : function (
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method onTrackEntryEvent
|
||||
* @param {int} arg0
|
||||
|
@ -403,9 +317,35 @@ int
|
|||
},
|
||||
|
||||
/**
|
||||
* @method clearTracks
|
||||
* @method setTrackStartListener
|
||||
* @param {spTrackEntry} arg0
|
||||
* @param {function} arg1
|
||||
*/
|
||||
clearTracks : function (
|
||||
setTrackStartListener : function (
|
||||
sptrackentry,
|
||||
func
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method findAnimation
|
||||
* @param {String} arg0
|
||||
* @return {spAnimation}
|
||||
*/
|
||||
findAnimation : function (
|
||||
str
|
||||
)
|
||||
{
|
||||
return spAnimation;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setCompleteListener
|
||||
* @param {function} arg0
|
||||
*/
|
||||
setCompleteListener : function (
|
||||
func
|
||||
)
|
||||
{
|
||||
},
|
||||
|
@ -423,27 +363,109 @@ func
|
|||
},
|
||||
|
||||
/**
|
||||
* @method setStartListener
|
||||
* @method setEventListener
|
||||
* @param {function} arg0
|
||||
*/
|
||||
setStartListener : function (
|
||||
setEventListener : function (
|
||||
func
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method createWithFile
|
||||
* @param {String|String} str
|
||||
* @param {spAtlas|String} spatlas
|
||||
* @param {float|float} float
|
||||
* @return {sp.SkeletonAnimation|sp.SkeletonAnimation|sp.SkeletonAnimation}
|
||||
* @method setMix
|
||||
* @param {String} arg0
|
||||
* @param {String} arg1
|
||||
* @param {float} arg2
|
||||
*/
|
||||
createWithFile : function(
|
||||
setMix : function (
|
||||
str,
|
||||
str,
|
||||
float
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setEndListener
|
||||
* @param {function} arg0
|
||||
*/
|
||||
setEndListener : function (
|
||||
func
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method clearTracks
|
||||
*/
|
||||
clearTracks : function (
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method clearTrack
|
||||
*/
|
||||
clearTrack : function (
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method onAnimationStateEvent
|
||||
* @param {int} arg0
|
||||
* @param {spEventType} arg1
|
||||
* @param {spEvent} arg2
|
||||
* @param {int} arg3
|
||||
*/
|
||||
onAnimationStateEvent : function (
|
||||
int,
|
||||
speventtype,
|
||||
spevent,
|
||||
int
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method createWithBinaryFile
|
||||
* @param {String|String} str
|
||||
* @param {String|spAtlas} str
|
||||
* @param {float|float} float
|
||||
* @return {sp.SkeletonAnimation|sp.SkeletonAnimation}
|
||||
*/
|
||||
createWithBinaryFile : function(
|
||||
str,
|
||||
spatlas,
|
||||
float
|
||||
)
|
||||
{
|
||||
return sp.SkeletonAnimation;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method create
|
||||
* @return {sp.SkeletonAnimation}
|
||||
*/
|
||||
create : function (
|
||||
)
|
||||
{
|
||||
return sp.SkeletonAnimation;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method createWithJsonFile
|
||||
* @param {String|String} str
|
||||
* @param {String|spAtlas} str
|
||||
* @param {float|float} float
|
||||
* @return {sp.SkeletonAnimation|sp.SkeletonAnimation}
|
||||
*/
|
||||
createWithJsonFile : function(
|
||||
str,
|
||||
spatlas,
|
||||
float
|
||||
)
|
||||
{
|
||||
return sp.SkeletonAnimation;
|
||||
},
|
||||
|
@ -451,14 +473,8 @@ float
|
|||
/**
|
||||
* @method SkeletonAnimation
|
||||
* @constructor
|
||||
* @param {spSkeletonData|String|String} spskeletondata
|
||||
* @param {bool|spAtlas|String} bool
|
||||
* @param {float|float} float
|
||||
*/
|
||||
SkeletonAnimation : function (
|
||||
str,
|
||||
str,
|
||||
float
|
||||
)
|
||||
{
|
||||
},
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -18,7 +18,9 @@ bool js_cocos2dx_spine_SkeletonRenderer_setAttachment(JSContext *cx, uint32_t ar
|
|||
bool js_cocos2dx_spine_SkeletonRenderer_setBonesToSetupPose(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_spine_SkeletonRenderer_initWithData(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_spine_SkeletonRenderer_setDebugSlotsEnabled(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_spine_SkeletonRenderer_initWithJsonFile(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_spine_SkeletonRenderer_setSlotsToSetupPose(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_spine_SkeletonRenderer_initWithBinaryFile(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_spine_SkeletonRenderer_setToSetupPose(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_spine_SkeletonRenderer_getBlendFunc(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_spine_SkeletonRenderer_updateWorldTransform(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
|
@ -26,7 +28,6 @@ bool js_cocos2dx_spine_SkeletonRenderer_initialize(JSContext *cx, uint32_t argc,
|
|||
bool js_cocos2dx_spine_SkeletonRenderer_setDebugBonesEnabled(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_spine_SkeletonRenderer_getDebugBonesEnabled(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_spine_SkeletonRenderer_getTimeScale(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_spine_SkeletonRenderer_initWithFile(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_spine_SkeletonRenderer_setBlendFunc(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_spine_SkeletonRenderer_setSkin(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_spine_SkeletonRenderer_getSkeleton(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
|
@ -41,24 +42,24 @@ bool js_cocos2dx_spine_SkeletonAnimation_constructor(JSContext *cx, uint32_t arg
|
|||
void js_cocos2dx_spine_SkeletonAnimation_finalize(JSContext *cx, JSObject *obj);
|
||||
void js_register_cocos2dx_spine_SkeletonAnimation(JSContext *cx, JS::HandleObject global);
|
||||
void register_all_cocos2dx_spine(JSContext* cx, JS::HandleObject obj);
|
||||
bool js_cocos2dx_spine_SkeletonAnimation_setTrackCompleteListener(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_spine_SkeletonAnimation_findAnimation(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_spine_SkeletonAnimation_setTrackEventListener(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_spine_SkeletonAnimation_setMix(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_spine_SkeletonAnimation_setTrackStartListener(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_spine_SkeletonAnimation_setEndListener(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_spine_SkeletonAnimation_onAnimationStateEvent(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_spine_SkeletonAnimation_getState(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_spine_SkeletonAnimation_update(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_spine_SkeletonAnimation_setEventListener(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_spine_SkeletonAnimation_setCompleteListener(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_spine_SkeletonAnimation_clearTrack(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_spine_SkeletonAnimation_initialize(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_spine_SkeletonAnimation_onTrackEntryEvent(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_spine_SkeletonAnimation_clearTracks(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_spine_SkeletonAnimation_setTrackEndListener(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_spine_SkeletonAnimation_setStartListener(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_spine_SkeletonAnimation_createWithFile(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_spine_SkeletonAnimation_setTrackEventListener(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_spine_SkeletonAnimation_getState(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_spine_SkeletonAnimation_setTrackCompleteListener(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_spine_SkeletonAnimation_onTrackEntryEvent(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_spine_SkeletonAnimation_setTrackStartListener(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_spine_SkeletonAnimation_findAnimation(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_spine_SkeletonAnimation_setCompleteListener(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_spine_SkeletonAnimation_setTrackEndListener(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_spine_SkeletonAnimation_setEventListener(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_spine_SkeletonAnimation_setMix(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_spine_SkeletonAnimation_setEndListener(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_spine_SkeletonAnimation_clearTracks(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_spine_SkeletonAnimation_clearTrack(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_spine_SkeletonAnimation_onAnimationStateEvent(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_spine_SkeletonAnimation_createWithBinaryFile(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_spine_SkeletonAnimation_create(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_spine_SkeletonAnimation_createWithJsonFile(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_spine_SkeletonAnimation_SkeletonAnimation(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
|
||||
#endif // __cocos2dx_spine_h__
|
||||
|
|
|
@ -80,12 +80,6 @@
|
|||
-- @param #function listener
|
||||
-- @return SkeletonAnimation#SkeletonAnimation self (return value: sp.SkeletonAnimation)
|
||||
|
||||
--------------------------------
|
||||
--
|
||||
-- @function [parent=#SkeletonAnimation] initialize
|
||||
-- @param self
|
||||
-- @return SkeletonAnimation#SkeletonAnimation self (return value: sp.SkeletonAnimation)
|
||||
|
||||
--------------------------------
|
||||
--
|
||||
-- @function [parent=#SkeletonAnimation] clearTracks
|
||||
|
@ -98,10 +92,36 @@
|
|||
-- @param self
|
||||
-- @return SkeletonAnimation#SkeletonAnimation self (return value: sp.SkeletonAnimation)
|
||||
|
||||
--------------------------------
|
||||
-- @overload self, string, string, float
|
||||
-- @overload self, string, spAtlas, float
|
||||
-- @function [parent=#SkeletonAnimation] createWithBinaryFile
|
||||
-- @param self
|
||||
-- @param #string skeletonBinaryFile
|
||||
-- @param #spAtlas atlas
|
||||
-- @param #float scale
|
||||
-- @return SkeletonAnimation#SkeletonAnimation ret (return value: sp.SkeletonAnimation)
|
||||
|
||||
--------------------------------
|
||||
--
|
||||
-- @function [parent=#SkeletonAnimation] create
|
||||
-- @param self
|
||||
-- @return SkeletonAnimation#SkeletonAnimation ret (return value: sp.SkeletonAnimation)
|
||||
|
||||
--------------------------------
|
||||
-- @overload self, string, string, float
|
||||
-- @overload self, string, spAtlas, float
|
||||
-- @function [parent=#SkeletonAnimation] createWithJsonFile
|
||||
-- @param self
|
||||
-- @param #string skeletonJsonFile
|
||||
-- @param #spAtlas atlas
|
||||
-- @param #float scale
|
||||
-- @return SkeletonAnimation#SkeletonAnimation ret (return value: sp.SkeletonAnimation)
|
||||
|
||||
--------------------------------
|
||||
--
|
||||
-- @function [parent=#SkeletonAnimation] initialize
|
||||
-- @param self
|
||||
-- @return SkeletonAnimation#SkeletonAnimation self (return value: sp.SkeletonAnimation)
|
||||
|
||||
return nil
|
||||
|
|
|
@ -38,12 +38,32 @@
|
|||
-- @param #bool enabled
|
||||
-- @return SkeletonRenderer#SkeletonRenderer self (return value: sp.SkeletonRenderer)
|
||||
|
||||
--------------------------------
|
||||
-- @overload self, string, string, float
|
||||
-- @overload self, string, spAtlas, float
|
||||
-- @function [parent=#SkeletonRenderer] initWithJsonFile
|
||||
-- @param self
|
||||
-- @param #string skeletonDataFile
|
||||
-- @param #spAtlas atlas
|
||||
-- @param #float scale
|
||||
-- @return SkeletonRenderer#SkeletonRenderer self (return value: sp.SkeletonRenderer)
|
||||
|
||||
--------------------------------
|
||||
--
|
||||
-- @function [parent=#SkeletonRenderer] setSlotsToSetupPose
|
||||
-- @param self
|
||||
-- @return SkeletonRenderer#SkeletonRenderer self (return value: sp.SkeletonRenderer)
|
||||
|
||||
--------------------------------
|
||||
-- @overload self, string, string, float
|
||||
-- @overload self, string, spAtlas, float
|
||||
-- @function [parent=#SkeletonRenderer] initWithBinaryFile
|
||||
-- @param self
|
||||
-- @param #string skeletonDataFile
|
||||
-- @param #spAtlas atlas
|
||||
-- @param #float scale
|
||||
-- @return SkeletonRenderer#SkeletonRenderer self (return value: sp.SkeletonRenderer)
|
||||
|
||||
--------------------------------
|
||||
--
|
||||
-- @function [parent=#SkeletonRenderer] setToSetupPose
|
||||
|
@ -81,16 +101,6 @@
|
|||
-- @param self
|
||||
-- @return float#float ret (return value: float)
|
||||
|
||||
--------------------------------
|
||||
-- @overload self, string, string, float
|
||||
-- @overload self, string, spAtlas, float
|
||||
-- @function [parent=#SkeletonRenderer] initWithFile
|
||||
-- @param self
|
||||
-- @param #string skeletonDataFile
|
||||
-- @param #spAtlas atlas
|
||||
-- @param #float scale
|
||||
-- @return SkeletonRenderer#SkeletonRenderer self (return value: sp.SkeletonRenderer)
|
||||
|
||||
--------------------------------
|
||||
--
|
||||
-- @function [parent=#SkeletonRenderer] setBlendFunc
|
||||
|
|
|
@ -266,6 +266,111 @@ int lua_cocos2dx_spine_SkeletonRenderer_setDebugSlotsEnabled(lua_State* tolua_S)
|
|||
|
||||
return 0;
|
||||
}
|
||||
int lua_cocos2dx_spine_SkeletonRenderer_initWithJsonFile(lua_State* tolua_S)
|
||||
{
|
||||
int argc = 0;
|
||||
spine::SkeletonRenderer* 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.SkeletonRenderer",0,&tolua_err)) goto tolua_lerror;
|
||||
#endif
|
||||
cobj = (spine::SkeletonRenderer*)tolua_tousertype(tolua_S,1,0);
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
if (!cobj)
|
||||
{
|
||||
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_spine_SkeletonRenderer_initWithJsonFile'", nullptr);
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
argc = lua_gettop(tolua_S)-1;
|
||||
do{
|
||||
if (argc == 2) {
|
||||
std::string arg0;
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonRenderer:initWithJsonFile");
|
||||
|
||||
if (!ok) { break; }
|
||||
std::string arg1;
|
||||
ok &= luaval_to_std_string(tolua_S, 3,&arg1, "sp.SkeletonRenderer:initWithJsonFile");
|
||||
|
||||
if (!ok) { break; }
|
||||
cobj->initWithJsonFile(arg0, arg1);
|
||||
lua_settop(tolua_S, 1);
|
||||
return 1;
|
||||
}
|
||||
}while(0);
|
||||
ok = true;
|
||||
do{
|
||||
if (argc == 3) {
|
||||
std::string arg0;
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonRenderer:initWithJsonFile");
|
||||
|
||||
if (!ok) { break; }
|
||||
std::string arg1;
|
||||
ok &= luaval_to_std_string(tolua_S, 3,&arg1, "sp.SkeletonRenderer:initWithJsonFile");
|
||||
|
||||
if (!ok) { break; }
|
||||
double arg2;
|
||||
ok &= luaval_to_number(tolua_S, 4,&arg2, "sp.SkeletonRenderer:initWithJsonFile");
|
||||
|
||||
if (!ok) { break; }
|
||||
cobj->initWithJsonFile(arg0, arg1, arg2);
|
||||
lua_settop(tolua_S, 1);
|
||||
return 1;
|
||||
}
|
||||
}while(0);
|
||||
ok = true;
|
||||
do{
|
||||
if (argc == 2) {
|
||||
std::string arg0;
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonRenderer:initWithJsonFile");
|
||||
|
||||
if (!ok) { break; }
|
||||
spAtlas* arg1;
|
||||
#pragma warning NO CONVERSION TO NATIVE FOR spAtlas*
|
||||
ok = false;
|
||||
|
||||
if (!ok) { break; }
|
||||
cobj->initWithJsonFile(arg0, arg1);
|
||||
lua_settop(tolua_S, 1);
|
||||
return 1;
|
||||
}
|
||||
}while(0);
|
||||
ok = true;
|
||||
do{
|
||||
if (argc == 3) {
|
||||
std::string arg0;
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonRenderer:initWithJsonFile");
|
||||
|
||||
if (!ok) { break; }
|
||||
spAtlas* arg1;
|
||||
#pragma warning NO CONVERSION TO NATIVE FOR spAtlas*
|
||||
ok = false;
|
||||
|
||||
if (!ok) { break; }
|
||||
double arg2;
|
||||
ok &= luaval_to_number(tolua_S, 4,&arg2, "sp.SkeletonRenderer:initWithJsonFile");
|
||||
|
||||
if (!ok) { break; }
|
||||
cobj->initWithJsonFile(arg0, arg1, arg2);
|
||||
lua_settop(tolua_S, 1);
|
||||
return 1;
|
||||
}
|
||||
}while(0);
|
||||
ok = true;
|
||||
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:initWithJsonFile",argc, 2);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_spine_SkeletonRenderer_initWithJsonFile'.",&tolua_err);
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
int lua_cocos2dx_spine_SkeletonRenderer_setSlotsToSetupPose(lua_State* tolua_S)
|
||||
{
|
||||
int argc = 0;
|
||||
|
@ -313,6 +418,111 @@ int lua_cocos2dx_spine_SkeletonRenderer_setSlotsToSetupPose(lua_State* tolua_S)
|
|||
|
||||
return 0;
|
||||
}
|
||||
int lua_cocos2dx_spine_SkeletonRenderer_initWithBinaryFile(lua_State* tolua_S)
|
||||
{
|
||||
int argc = 0;
|
||||
spine::SkeletonRenderer* 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.SkeletonRenderer",0,&tolua_err)) goto tolua_lerror;
|
||||
#endif
|
||||
cobj = (spine::SkeletonRenderer*)tolua_tousertype(tolua_S,1,0);
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
if (!cobj)
|
||||
{
|
||||
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_spine_SkeletonRenderer_initWithBinaryFile'", nullptr);
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
argc = lua_gettop(tolua_S)-1;
|
||||
do{
|
||||
if (argc == 2) {
|
||||
std::string arg0;
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonRenderer:initWithBinaryFile");
|
||||
|
||||
if (!ok) { break; }
|
||||
std::string arg1;
|
||||
ok &= luaval_to_std_string(tolua_S, 3,&arg1, "sp.SkeletonRenderer:initWithBinaryFile");
|
||||
|
||||
if (!ok) { break; }
|
||||
cobj->initWithBinaryFile(arg0, arg1);
|
||||
lua_settop(tolua_S, 1);
|
||||
return 1;
|
||||
}
|
||||
}while(0);
|
||||
ok = true;
|
||||
do{
|
||||
if (argc == 3) {
|
||||
std::string arg0;
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonRenderer:initWithBinaryFile");
|
||||
|
||||
if (!ok) { break; }
|
||||
std::string arg1;
|
||||
ok &= luaval_to_std_string(tolua_S, 3,&arg1, "sp.SkeletonRenderer:initWithBinaryFile");
|
||||
|
||||
if (!ok) { break; }
|
||||
double arg2;
|
||||
ok &= luaval_to_number(tolua_S, 4,&arg2, "sp.SkeletonRenderer:initWithBinaryFile");
|
||||
|
||||
if (!ok) { break; }
|
||||
cobj->initWithBinaryFile(arg0, arg1, arg2);
|
||||
lua_settop(tolua_S, 1);
|
||||
return 1;
|
||||
}
|
||||
}while(0);
|
||||
ok = true;
|
||||
do{
|
||||
if (argc == 2) {
|
||||
std::string arg0;
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonRenderer:initWithBinaryFile");
|
||||
|
||||
if (!ok) { break; }
|
||||
spAtlas* arg1;
|
||||
#pragma warning NO CONVERSION TO NATIVE FOR spAtlas*
|
||||
ok = false;
|
||||
|
||||
if (!ok) { break; }
|
||||
cobj->initWithBinaryFile(arg0, arg1);
|
||||
lua_settop(tolua_S, 1);
|
||||
return 1;
|
||||
}
|
||||
}while(0);
|
||||
ok = true;
|
||||
do{
|
||||
if (argc == 3) {
|
||||
std::string arg0;
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonRenderer:initWithBinaryFile");
|
||||
|
||||
if (!ok) { break; }
|
||||
spAtlas* arg1;
|
||||
#pragma warning NO CONVERSION TO NATIVE FOR spAtlas*
|
||||
ok = false;
|
||||
|
||||
if (!ok) { break; }
|
||||
double arg2;
|
||||
ok &= luaval_to_number(tolua_S, 4,&arg2, "sp.SkeletonRenderer:initWithBinaryFile");
|
||||
|
||||
if (!ok) { break; }
|
||||
cobj->initWithBinaryFile(arg0, arg1, arg2);
|
||||
lua_settop(tolua_S, 1);
|
||||
return 1;
|
||||
}
|
||||
}while(0);
|
||||
ok = true;
|
||||
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:initWithBinaryFile",argc, 2);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_spine_SkeletonRenderer_initWithBinaryFile'.",&tolua_err);
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
int lua_cocos2dx_spine_SkeletonRenderer_setToSetupPose(lua_State* tolua_S)
|
||||
{
|
||||
int argc = 0;
|
||||
|
@ -598,111 +808,6 @@ int lua_cocos2dx_spine_SkeletonRenderer_getTimeScale(lua_State* tolua_S)
|
|||
|
||||
return 0;
|
||||
}
|
||||
int lua_cocos2dx_spine_SkeletonRenderer_initWithFile(lua_State* tolua_S)
|
||||
{
|
||||
int argc = 0;
|
||||
spine::SkeletonRenderer* 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.SkeletonRenderer",0,&tolua_err)) goto tolua_lerror;
|
||||
#endif
|
||||
cobj = (spine::SkeletonRenderer*)tolua_tousertype(tolua_S,1,0);
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
if (!cobj)
|
||||
{
|
||||
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_spine_SkeletonRenderer_initWithFile'", nullptr);
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
argc = lua_gettop(tolua_S)-1;
|
||||
do{
|
||||
if (argc == 2) {
|
||||
std::string arg0;
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonRenderer:initWithFile");
|
||||
|
||||
if (!ok) { break; }
|
||||
std::string arg1;
|
||||
ok &= luaval_to_std_string(tolua_S, 3,&arg1, "sp.SkeletonRenderer:initWithFile");
|
||||
|
||||
if (!ok) { break; }
|
||||
cobj->initWithFile(arg0, arg1);
|
||||
lua_settop(tolua_S, 1);
|
||||
return 1;
|
||||
}
|
||||
}while(0);
|
||||
ok = true;
|
||||
do{
|
||||
if (argc == 3) {
|
||||
std::string arg0;
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonRenderer:initWithFile");
|
||||
|
||||
if (!ok) { break; }
|
||||
std::string arg1;
|
||||
ok &= luaval_to_std_string(tolua_S, 3,&arg1, "sp.SkeletonRenderer:initWithFile");
|
||||
|
||||
if (!ok) { break; }
|
||||
double arg2;
|
||||
ok &= luaval_to_number(tolua_S, 4,&arg2, "sp.SkeletonRenderer:initWithFile");
|
||||
|
||||
if (!ok) { break; }
|
||||
cobj->initWithFile(arg0, arg1, arg2);
|
||||
lua_settop(tolua_S, 1);
|
||||
return 1;
|
||||
}
|
||||
}while(0);
|
||||
ok = true;
|
||||
do{
|
||||
if (argc == 2) {
|
||||
std::string arg0;
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonRenderer:initWithFile");
|
||||
|
||||
if (!ok) { break; }
|
||||
spAtlas* arg1;
|
||||
#pragma warning NO CONVERSION TO NATIVE FOR spAtlas*
|
||||
ok = false;
|
||||
|
||||
if (!ok) { break; }
|
||||
cobj->initWithFile(arg0, arg1);
|
||||
lua_settop(tolua_S, 1);
|
||||
return 1;
|
||||
}
|
||||
}while(0);
|
||||
ok = true;
|
||||
do{
|
||||
if (argc == 3) {
|
||||
std::string arg0;
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonRenderer:initWithFile");
|
||||
|
||||
if (!ok) { break; }
|
||||
spAtlas* arg1;
|
||||
#pragma warning NO CONVERSION TO NATIVE FOR spAtlas*
|
||||
ok = false;
|
||||
|
||||
if (!ok) { break; }
|
||||
double arg2;
|
||||
ok &= luaval_to_number(tolua_S, 4,&arg2, "sp.SkeletonRenderer:initWithFile");
|
||||
|
||||
if (!ok) { break; }
|
||||
cobj->initWithFile(arg0, arg1, arg2);
|
||||
lua_settop(tolua_S, 1);
|
||||
return 1;
|
||||
}
|
||||
}while(0);
|
||||
ok = true;
|
||||
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonRenderer:initWithFile",argc, 2);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_spine_SkeletonRenderer_initWithFile'.",&tolua_err);
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
int lua_cocos2dx_spine_SkeletonRenderer_setBlendFunc(lua_State* tolua_S)
|
||||
{
|
||||
int argc = 0;
|
||||
|
@ -1154,14 +1259,15 @@ int lua_register_cocos2dx_spine_SkeletonRenderer(lua_State* tolua_S)
|
|||
tolua_function(tolua_S,"setBonesToSetupPose",lua_cocos2dx_spine_SkeletonRenderer_setBonesToSetupPose);
|
||||
tolua_function(tolua_S,"initWithData",lua_cocos2dx_spine_SkeletonRenderer_initWithData);
|
||||
tolua_function(tolua_S,"setDebugSlotsEnabled",lua_cocos2dx_spine_SkeletonRenderer_setDebugSlotsEnabled);
|
||||
tolua_function(tolua_S,"initWithJsonFile",lua_cocos2dx_spine_SkeletonRenderer_initWithJsonFile);
|
||||
tolua_function(tolua_S,"setSlotsToSetupPose",lua_cocos2dx_spine_SkeletonRenderer_setSlotsToSetupPose);
|
||||
tolua_function(tolua_S,"initWithBinaryFile",lua_cocos2dx_spine_SkeletonRenderer_initWithBinaryFile);
|
||||
tolua_function(tolua_S,"setToSetupPose",lua_cocos2dx_spine_SkeletonRenderer_setToSetupPose);
|
||||
tolua_function(tolua_S,"getBlendFunc",lua_cocos2dx_spine_SkeletonRenderer_getBlendFunc);
|
||||
tolua_function(tolua_S,"initialize",lua_cocos2dx_spine_SkeletonRenderer_initialize);
|
||||
tolua_function(tolua_S,"setDebugBonesEnabled",lua_cocos2dx_spine_SkeletonRenderer_setDebugBonesEnabled);
|
||||
tolua_function(tolua_S,"getDebugBonesEnabled",lua_cocos2dx_spine_SkeletonRenderer_getDebugBonesEnabled);
|
||||
tolua_function(tolua_S,"getTimeScale",lua_cocos2dx_spine_SkeletonRenderer_getTimeScale);
|
||||
tolua_function(tolua_S,"initWithFile",lua_cocos2dx_spine_SkeletonRenderer_initWithFile);
|
||||
tolua_function(tolua_S,"setBlendFunc",lua_cocos2dx_spine_SkeletonRenderer_setBlendFunc);
|
||||
tolua_function(tolua_S,"setSkin",lua_cocos2dx_spine_SkeletonRenderer_setSkin);
|
||||
tolua_function(tolua_S,"getSkeleton",lua_cocos2dx_spine_SkeletonRenderer_getSkeleton);
|
||||
|
@ -1728,53 +1834,6 @@ int lua_cocos2dx_spine_SkeletonAnimation_setEndListener(lua_State* tolua_S)
|
|||
|
||||
return 0;
|
||||
}
|
||||
int lua_cocos2dx_spine_SkeletonAnimation_initialize(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_initialize'", nullptr);
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
argc = lua_gettop(tolua_S)-1;
|
||||
if (argc == 0)
|
||||
{
|
||||
if(!ok)
|
||||
{
|
||||
tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_spine_SkeletonAnimation_initialize'", nullptr);
|
||||
return 0;
|
||||
}
|
||||
cobj->initialize();
|
||||
lua_settop(tolua_S, 1);
|
||||
return 1;
|
||||
}
|
||||
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "sp.SkeletonAnimation:initialize",argc, 0);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_spine_SkeletonAnimation_initialize'.",&tolua_err);
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
int lua_cocos2dx_spine_SkeletonAnimation_clearTracks(lua_State* tolua_S)
|
||||
{
|
||||
int argc = 0;
|
||||
|
@ -1883,6 +1942,100 @@ int lua_cocos2dx_spine_SkeletonAnimation_clearTrack(lua_State* tolua_S)
|
|||
|
||||
return 0;
|
||||
}
|
||||
int lua_cocos2dx_spine_SkeletonAnimation_createWithBinaryFile(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,"sp.SkeletonAnimation",0,&tolua_err)) goto tolua_lerror;
|
||||
#endif
|
||||
|
||||
argc = lua_gettop(tolua_S)-1;
|
||||
|
||||
do
|
||||
{
|
||||
if (argc == 2)
|
||||
{
|
||||
std::string arg0;
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonAnimation:createWithBinaryFile");
|
||||
if (!ok) { break; }
|
||||
std::string arg1;
|
||||
ok &= luaval_to_std_string(tolua_S, 3,&arg1, "sp.SkeletonAnimation:createWithBinaryFile");
|
||||
if (!ok) { break; }
|
||||
spine::SkeletonAnimation* ret = spine::SkeletonAnimation::createWithBinaryFile(arg0, arg1);
|
||||
object_to_luaval<spine::SkeletonAnimation>(tolua_S, "sp.SkeletonAnimation",(spine::SkeletonAnimation*)ret);
|
||||
return 1;
|
||||
}
|
||||
} while (0);
|
||||
ok = true;
|
||||
do
|
||||
{
|
||||
if (argc == 3)
|
||||
{
|
||||
std::string arg0;
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonAnimation:createWithBinaryFile");
|
||||
if (!ok) { break; }
|
||||
std::string arg1;
|
||||
ok &= luaval_to_std_string(tolua_S, 3,&arg1, "sp.SkeletonAnimation:createWithBinaryFile");
|
||||
if (!ok) { break; }
|
||||
double arg2;
|
||||
ok &= luaval_to_number(tolua_S, 4,&arg2, "sp.SkeletonAnimation:createWithBinaryFile");
|
||||
if (!ok) { break; }
|
||||
spine::SkeletonAnimation* ret = spine::SkeletonAnimation::createWithBinaryFile(arg0, arg1, arg2);
|
||||
object_to_luaval<spine::SkeletonAnimation>(tolua_S, "sp.SkeletonAnimation",(spine::SkeletonAnimation*)ret);
|
||||
return 1;
|
||||
}
|
||||
} while (0);
|
||||
ok = true;
|
||||
do
|
||||
{
|
||||
if (argc == 2)
|
||||
{
|
||||
std::string arg0;
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonAnimation:createWithBinaryFile");
|
||||
if (!ok) { break; }
|
||||
spAtlas* arg1;
|
||||
#pragma warning NO CONVERSION TO NATIVE FOR spAtlas*
|
||||
ok = false;
|
||||
if (!ok) { break; }
|
||||
spine::SkeletonAnimation* ret = spine::SkeletonAnimation::createWithBinaryFile(arg0, arg1);
|
||||
object_to_luaval<spine::SkeletonAnimation>(tolua_S, "sp.SkeletonAnimation",(spine::SkeletonAnimation*)ret);
|
||||
return 1;
|
||||
}
|
||||
} while (0);
|
||||
ok = true;
|
||||
do
|
||||
{
|
||||
if (argc == 3)
|
||||
{
|
||||
std::string arg0;
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonAnimation:createWithBinaryFile");
|
||||
if (!ok) { break; }
|
||||
spAtlas* arg1;
|
||||
#pragma warning NO CONVERSION TO NATIVE FOR spAtlas*
|
||||
ok = false;
|
||||
if (!ok) { break; }
|
||||
double arg2;
|
||||
ok &= luaval_to_number(tolua_S, 4,&arg2, "sp.SkeletonAnimation:createWithBinaryFile");
|
||||
if (!ok) { break; }
|
||||
spine::SkeletonAnimation* ret = spine::SkeletonAnimation::createWithBinaryFile(arg0, arg1, arg2);
|
||||
object_to_luaval<spine::SkeletonAnimation>(tolua_S, "sp.SkeletonAnimation",(spine::SkeletonAnimation*)ret);
|
||||
return 1;
|
||||
}
|
||||
} while (0);
|
||||
ok = true;
|
||||
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "sp.SkeletonAnimation:createWithBinaryFile",argc, 2);
|
||||
return 0;
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_spine_SkeletonAnimation_createWithBinaryFile'.",&tolua_err);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
int lua_cocos2dx_spine_SkeletonAnimation_create(lua_State* tolua_S)
|
||||
{
|
||||
int argc = 0;
|
||||
|
@ -1917,6 +2070,100 @@ int lua_cocos2dx_spine_SkeletonAnimation_create(lua_State* tolua_S)
|
|||
#endif
|
||||
return 0;
|
||||
}
|
||||
int lua_cocos2dx_spine_SkeletonAnimation_createWithJsonFile(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,"sp.SkeletonAnimation",0,&tolua_err)) goto tolua_lerror;
|
||||
#endif
|
||||
|
||||
argc = lua_gettop(tolua_S)-1;
|
||||
|
||||
do
|
||||
{
|
||||
if (argc == 2)
|
||||
{
|
||||
std::string arg0;
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonAnimation:createWithJsonFile");
|
||||
if (!ok) { break; }
|
||||
std::string arg1;
|
||||
ok &= luaval_to_std_string(tolua_S, 3,&arg1, "sp.SkeletonAnimation:createWithJsonFile");
|
||||
if (!ok) { break; }
|
||||
spine::SkeletonAnimation* ret = spine::SkeletonAnimation::createWithJsonFile(arg0, arg1);
|
||||
object_to_luaval<spine::SkeletonAnimation>(tolua_S, "sp.SkeletonAnimation",(spine::SkeletonAnimation*)ret);
|
||||
return 1;
|
||||
}
|
||||
} while (0);
|
||||
ok = true;
|
||||
do
|
||||
{
|
||||
if (argc == 3)
|
||||
{
|
||||
std::string arg0;
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonAnimation:createWithJsonFile");
|
||||
if (!ok) { break; }
|
||||
std::string arg1;
|
||||
ok &= luaval_to_std_string(tolua_S, 3,&arg1, "sp.SkeletonAnimation:createWithJsonFile");
|
||||
if (!ok) { break; }
|
||||
double arg2;
|
||||
ok &= luaval_to_number(tolua_S, 4,&arg2, "sp.SkeletonAnimation:createWithJsonFile");
|
||||
if (!ok) { break; }
|
||||
spine::SkeletonAnimation* ret = spine::SkeletonAnimation::createWithJsonFile(arg0, arg1, arg2);
|
||||
object_to_luaval<spine::SkeletonAnimation>(tolua_S, "sp.SkeletonAnimation",(spine::SkeletonAnimation*)ret);
|
||||
return 1;
|
||||
}
|
||||
} while (0);
|
||||
ok = true;
|
||||
do
|
||||
{
|
||||
if (argc == 2)
|
||||
{
|
||||
std::string arg0;
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonAnimation:createWithJsonFile");
|
||||
if (!ok) { break; }
|
||||
spAtlas* arg1;
|
||||
#pragma warning NO CONVERSION TO NATIVE FOR spAtlas*
|
||||
ok = false;
|
||||
if (!ok) { break; }
|
||||
spine::SkeletonAnimation* ret = spine::SkeletonAnimation::createWithJsonFile(arg0, arg1);
|
||||
object_to_luaval<spine::SkeletonAnimation>(tolua_S, "sp.SkeletonAnimation",(spine::SkeletonAnimation*)ret);
|
||||
return 1;
|
||||
}
|
||||
} while (0);
|
||||
ok = true;
|
||||
do
|
||||
{
|
||||
if (argc == 3)
|
||||
{
|
||||
std::string arg0;
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "sp.SkeletonAnimation:createWithJsonFile");
|
||||
if (!ok) { break; }
|
||||
spAtlas* arg1;
|
||||
#pragma warning NO CONVERSION TO NATIVE FOR spAtlas*
|
||||
ok = false;
|
||||
if (!ok) { break; }
|
||||
double arg2;
|
||||
ok &= luaval_to_number(tolua_S, 4,&arg2, "sp.SkeletonAnimation:createWithJsonFile");
|
||||
if (!ok) { break; }
|
||||
spine::SkeletonAnimation* ret = spine::SkeletonAnimation::createWithJsonFile(arg0, arg1, arg2);
|
||||
object_to_luaval<spine::SkeletonAnimation>(tolua_S, "sp.SkeletonAnimation",(spine::SkeletonAnimation*)ret);
|
||||
return 1;
|
||||
}
|
||||
} while (0);
|
||||
ok = true;
|
||||
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "sp.SkeletonAnimation:createWithJsonFile",argc, 2);
|
||||
return 0;
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_spine_SkeletonAnimation_createWithJsonFile'.",&tolua_err);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
static int lua_cocos2dx_spine_SkeletonAnimation_finalize(lua_State* tolua_S)
|
||||
{
|
||||
printf("luabindings: finalizing LUA object (SkeletonAnimation)");
|
||||
|
@ -1939,10 +2186,11 @@ int lua_register_cocos2dx_spine_SkeletonAnimation(lua_State* tolua_S)
|
|||
tolua_function(tolua_S,"setEventListener",lua_cocos2dx_spine_SkeletonAnimation_setEventListener);
|
||||
tolua_function(tolua_S,"setMix",lua_cocos2dx_spine_SkeletonAnimation_setMix);
|
||||
tolua_function(tolua_S,"setEndListener",lua_cocos2dx_spine_SkeletonAnimation_setEndListener);
|
||||
tolua_function(tolua_S,"initialize",lua_cocos2dx_spine_SkeletonAnimation_initialize);
|
||||
tolua_function(tolua_S,"clearTracks",lua_cocos2dx_spine_SkeletonAnimation_clearTracks);
|
||||
tolua_function(tolua_S,"clearTrack",lua_cocos2dx_spine_SkeletonAnimation_clearTrack);
|
||||
tolua_function(tolua_S,"createWithBinaryFile", lua_cocos2dx_spine_SkeletonAnimation_createWithBinaryFile);
|
||||
tolua_function(tolua_S,"create", lua_cocos2dx_spine_SkeletonAnimation_create);
|
||||
tolua_function(tolua_S,"createWithJsonFile", lua_cocos2dx_spine_SkeletonAnimation_createWithJsonFile);
|
||||
tolua_endmodule(tolua_S);
|
||||
std::string typeName = typeid(spine::SkeletonAnimation).name();
|
||||
g_luaType[typeName] = "sp.SkeletonAnimation";
|
||||
|
|
|
@ -44,6 +44,8 @@ int register_all_cocos2dx_spine(lua_State* tolua_S);
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -818,6 +818,8 @@
|
|||
"cocos/editor-support/spine/SkeletonAnimation.h",
|
||||
"cocos/editor-support/spine/SkeletonBatch.cpp",
|
||||
"cocos/editor-support/spine/SkeletonBatch.h",
|
||||
"cocos/editor-support/spine/SkeletonBinary.c",
|
||||
"cocos/editor-support/spine/SkeletonBinary.h",
|
||||
"cocos/editor-support/spine/SkeletonBounds.c",
|
||||
"cocos/editor-support/spine/SkeletonBounds.h",
|
||||
"cocos/editor-support/spine/SkeletonData.c",
|
||||
|
@ -840,6 +842,7 @@
|
|||
"cocos/editor-support/spine/VertexAttachment.h",
|
||||
"cocos/editor-support/spine/extension.c",
|
||||
"cocos/editor-support/spine/extension.h",
|
||||
"cocos/editor-support/spine/kvec.h",
|
||||
"cocos/editor-support/spine/proj.win10/libSpine.vcxproj",
|
||||
"cocos/editor-support/spine/proj.win32/libSpine.vcxproj",
|
||||
"cocos/editor-support/spine/proj.win32/libSpine.vcxproj.filters",
|
||||
|
|
Loading…
Reference in New Issue