diff --git a/AUTHORS b/AUTHORS index 5ef22f0436..2745c026ec 100644 --- a/AUTHORS +++ b/AUTHORS @@ -656,6 +656,7 @@ Developers: lite3 Fixed a bug that Node's anchor point was changed after being added to ScrollView. + Added HttpClient::sendImmediate() superrad Clear NoSuchMethodError Exception when JniHelper fails to find methodID diff --git a/CHANGELOG b/CHANGELOG index ff04515cd2..9f4a1770f5 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,4 +1,5 @@ cocos2d-x-3.2 ??? + [NEW] HttpClient: added sendImmediate() [NEW] Label: support setting line height and additional kerning of label that not using system font [NEW] Lua-binding: Animation3D supported [NEW] Lua-binding: UIEditor test cases added @@ -6,6 +7,7 @@ cocos2d-x-3.2 ??? [NEW] Node: added getName(), setName(), getChildByName(), enumerateChildren() and addChild(Node* node, int localZOrder, const std::string &name) [NEW] Node: physical body supports rotation + [NEW] utils: added findChildren() to find all children by name [FIX] FileUtils: getStringFromFile may return a unterminated string diff --git a/build/cocos2d_tests.xcodeproj/project.pbxproj b/build/cocos2d_tests.xcodeproj/project.pbxproj index 847554e8d0..896198d4e8 100644 --- a/build/cocos2d_tests.xcodeproj/project.pbxproj +++ b/build/cocos2d_tests.xcodeproj/project.pbxproj @@ -58,7 +58,7 @@ 1503FAC418DA8B6C00F6518C /* tp.lua in Resources */ = {isa = PBXBuildFile; fileRef = 1503FAB118DA8B6C00F6518C /* tp.lua */; }; 1503FAC518DA8B6C00F6518C /* url.lua in Resources */ = {isa = PBXBuildFile; fileRef = 1503FAB218DA8B6C00F6518C /* url.lua */; }; 1503FAC618DA8B6C00F6518C /* url.lua in Resources */ = {isa = PBXBuildFile; fileRef = 1503FAB218DA8B6C00F6518C /* url.lua */; }; - 15AECE06195C0AC900907DB0 /* MediaPlayer.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3EA0FB65191B933000B170C8 /* MediaPlayer.framework */; }; + 15B0870D195AD52000D6F62B /* ActionTimeline in Resources */ = {isa = PBXBuildFile; fileRef = 38FA2E75194AECF800FF2BE4 /* ActionTimeline */; }; 15C64825165F3934007D4F18 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 15C64824165F3934007D4F18 /* OpenGL.framework */; }; 15C64827165F394E007D4F18 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 15C64826165F394E007D4F18 /* QuartzCore.framework */; }; 15C64829165F396B007D4F18 /* OpenAL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 15C64828165F396B007D4F18 /* OpenAL.framework */; }; @@ -1983,7 +1983,6 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 15AECE06195C0AC900907DB0 /* MediaPlayer.framework in Frameworks */, 1ABCA3B018CDA06D0087CE3A /* libz.dylib in Frameworks */, 1ABCA3AA18CD9F1A0087CE3A /* CoreMotion.framework in Frameworks */, 1ABCA3A918CD9F130087CE3A /* AudioToolbox.framework in Frameworks */, @@ -4323,6 +4322,7 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( + 15B0870D195AD52000D6F62B /* ActionTimeline in Resources */, 15E66FC8192D957100C20A52 /* Sprite3DTest in Resources */, 15C90B4418E66C1800D69802 /* mime.lua in Resources */, 15C90B4C18E66C3100D69802 /* url.lua in Resources */, diff --git a/cocos/base/ccUtils.cpp b/cocos/base/ccUtils.cpp index 5e7ee2f5a4..da0996719a 100644 --- a/cocos/base/ccUtils.cpp +++ b/cocos/base/ccUtils.cpp @@ -117,6 +117,19 @@ void captureScreen(const std::function& afterCap captureScreenCommand.func = std::bind(onCaptureScreen, afterCaptured, filename); Director::getInstance()->getRenderer()->addCommand(&captureScreenCommand); } + +std::vector findChildren(const Node &node, const std::string &name) +{ + std::vector vec; + + node.enumerateChildren(name, [&vec](Node* nodeFound) -> bool { + vec.push_back(nodeFound); + return false; + }); + + return vec; +} + } NS_CC_END diff --git a/cocos/base/ccUtils.h b/cocos/base/ccUtils.h index 00a4ad77ad..939d71b854 100644 --- a/cocos/base/ccUtils.h +++ b/cocos/base/ccUtils.h @@ -24,6 +24,10 @@ THE SOFTWARE. ****************************************************************************/ #ifndef __SUPPORT_CC_UTILS_H__ #define __SUPPORT_CC_UTILS_H__ + +#include +#include +#include "2d/CCNode.h" #include "base/ccMacros.h" /** @file ccUtils.h @@ -58,6 +62,17 @@ namespace utils * @since v3.2 */ void captureScreen(const std::function& afterCaptured, const std::string& filename); + + /** Find children by name, it will return all child that has the same name. + * It supports c++ 11 regular expression. It is a helper function of `Node::enumerateChildren()`. + * You can refer to `Node::enumerateChildren()` for detail information. + * + * @param node The node to find + * @param name The name to search for, it supports c++ 11 expression + * @return Array of Nodes that matches the name + * @since v3.2 + */ + std::vector findChildren(const Node &node, const std::string &name); } NS_CC_END diff --git a/cocos/network/HttpClient.cpp b/cocos/network/HttpClient.cpp index 2af83c8dee..15a1931c5b 100644 --- a/cocos/network/HttpClient.cpp +++ b/cocos/network/HttpClient.cpp @@ -47,8 +47,8 @@ namespace network { static std::mutex s_requestQueueMutex; static std::mutex s_responseQueueMutex; -static std::mutex s_SleepMutex; -static std::condition_variable s_SleepCondition; +static std::mutex s_SleepMutex; +static std::condition_variable s_SleepCondition; #if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32) @@ -95,12 +95,12 @@ static size_t writeHeaderData(void *ptr, size_t size, size_t nmemb, void *stream } -static int processGetTask(HttpRequest *request, write_callback callback, void *stream, long *errorCode, write_callback headerCallback, void *headerStream); -static int processPostTask(HttpRequest *request, write_callback callback, void *stream, long *errorCode, write_callback headerCallback, void *headerStream); -static int processPutTask(HttpRequest *request, write_callback callback, void *stream, long *errorCode, write_callback headerCallback, void *headerStream); -static int processDeleteTask(HttpRequest *request, write_callback callback, void *stream, long *errorCode, write_callback headerCallback, void *headerStream); +static int processGetTask(HttpRequest *request, write_callback callback, void *stream, long *errorCode, write_callback headerCallback, void *headerStream, char *errorBuffer); +static int processPostTask(HttpRequest *request, write_callback callback, void *stream, long *errorCode, write_callback headerCallback, void *headerStream, char *errorBuffer); +static int processPutTask(HttpRequest *request, write_callback callback, void *stream, long *errorCode, write_callback headerCallback, void *headerStream, char *errorBuffer); +static int processDeleteTask(HttpRequest *request, write_callback callback, void *stream, long *errorCode, write_callback headerCallback, void *headerStream, char *errorBuffer); // int processDownloadTask(HttpRequest *task, write_callback callback, void *stream, int32_t *errorCode); - +static void processResponse(HttpResponse* response, char* errorBuffer); // Worker thread void HttpClient::networkThread() @@ -144,71 +144,9 @@ void HttpClient::networkThread() // Create a HttpResponse object, the default setting is http access failed HttpResponse *response = new HttpResponse(request); - // request's refcount = 2 here, it's retained by HttpRespose constructor - request->release(); - // ok, refcount = 1 now, only HttpResponse hold it. + processResponse(response, s_errorBuffer); - long responseCode = -1; - int retValue = 0; - // Process the request -> get response packet - switch (request->getRequestType()) - { - case HttpRequest::Type::GET: // HTTP GET - retValue = processGetTask(request, - writeData, - response->getResponseData(), - &responseCode, - writeHeaderData, - response->getResponseHeader()); - break; - - case HttpRequest::Type::POST: // HTTP POST - retValue = processPostTask(request, - writeData, - response->getResponseData(), - &responseCode, - writeHeaderData, - response->getResponseHeader()); - break; - - case HttpRequest::Type::PUT: - retValue = processPutTask(request, - writeData, - response->getResponseData(), - &responseCode, - writeHeaderData, - response->getResponseHeader()); - break; - - case HttpRequest::Type::DELETE: - retValue = processDeleteTask(request, - writeData, - response->getResponseData(), - &responseCode, - writeHeaderData, - response->getResponseHeader()); - break; - - default: - CCASSERT(true, "CCHttpClient: unkown request type, only GET and POSt are supported"); - break; - } - - // write data to HttpResponse - response->setResponseCode(responseCode); - - if (retValue != 0) - { - response->setSucceed(false); - response->setErrorBuffer(s_errorBuffer); - } - else - { - response->setSucceed(true); - } - - // add response packet into queue s_responseQueueMutex.lock(); s_responseQueue->pushBack(response); @@ -234,15 +172,43 @@ void HttpClient::networkThread() } +// Worker thread +void HttpClient::networkThreadAlone(HttpRequest* request) +{ + // Create a HttpResponse object, the default setting is http access failed + HttpResponse *response = new HttpResponse(request); + char errorBuffer[CURL_ERROR_SIZE] = { 0 }; + processResponse(response, errorBuffer); + + auto scheduler = Director::getInstance()->getScheduler(); + scheduler->performFunctionInCocosThread([response, request]{ + const ccHttpRequestCallback& callback = request->getCallback(); + Ref* pTarget = request->getTarget(); + SEL_HttpResponse pSelector = request->getSelector(); + + if (callback != nullptr) + { + callback(s_pHttpClient, response); + } + else if (pTarget && pSelector) + { + (pTarget->*pSelector)(s_pHttpClient, response); + } + response->release(); + // do not release in other thread + request->release(); + }); +} + //Configure curl's timeout property -static bool configureCURL(CURL *handle) +static bool configureCURL(CURL *handle, char *errorBuffer) { if (!handle) { return false; } int32_t code; - code = curl_easy_setopt(handle, CURLOPT_ERRORBUFFER, s_errorBuffer); + code = curl_easy_setopt(handle, CURLOPT_ERRORBUFFER, errorBuffer); if (code != CURLE_OK) { return false; } @@ -298,15 +264,15 @@ public: * @param callback Response write callback * @param stream Response write stream */ - bool init(HttpRequest *request, write_callback callback, void *stream, write_callback headerCallback, void *headerStream) + bool init(HttpRequest *request, write_callback callback, void *stream, write_callback headerCallback, void *headerStream, char *errorBuffer) { if (!_curl) return false; - if (!configureCURL(_curl)) + if (!configureCURL(_curl, errorBuffer)) return false; /* get custom header data (if set) */ - std::vector headers=request->getHeaders(); + std::vector headers=request->getHeaders(); if(!headers.empty()) { /* append custom headers one by one */ @@ -350,20 +316,20 @@ public: }; //Process Get Request -static int processGetTask(HttpRequest *request, write_callback callback, void *stream, long *responseCode, write_callback headerCallback, void *headerStream) +static int processGetTask(HttpRequest *request, write_callback callback, void *stream, long *responseCode, write_callback headerCallback, void *headerStream, char *errorBuffer) { CURLRaii curl; - bool ok = curl.init(request, callback, stream, headerCallback, headerStream) + bool ok = curl.init(request, callback, stream, headerCallback, headerStream, errorBuffer) && curl.setOption(CURLOPT_FOLLOWLOCATION, true) && curl.perform(responseCode); return ok ? 0 : 1; } //Process POST Request -static int processPostTask(HttpRequest *request, write_callback callback, void *stream, long *responseCode, write_callback headerCallback, void *headerStream) +static int processPostTask(HttpRequest *request, write_callback callback, void *stream, long *responseCode, write_callback headerCallback, void *headerStream, char *errorBuffer) { CURLRaii curl; - bool ok = curl.init(request, callback, stream, headerCallback, headerStream) + bool ok = curl.init(request, callback, stream, headerCallback, headerStream, errorBuffer) && curl.setOption(CURLOPT_POST, 1) && curl.setOption(CURLOPT_POSTFIELDS, request->getRequestData()) && curl.setOption(CURLOPT_POSTFIELDSIZE, request->getRequestDataSize()) @@ -372,10 +338,10 @@ static int processPostTask(HttpRequest *request, write_callback callback, void * } //Process PUT Request -static int processPutTask(HttpRequest *request, write_callback callback, void *stream, long *responseCode, write_callback headerCallback, void *headerStream) +static int processPutTask(HttpRequest *request, write_callback callback, void *stream, long *responseCode, write_callback headerCallback, void *headerStream, char *errorBuffer) { CURLRaii curl; - bool ok = curl.init(request, callback, stream, headerCallback, headerStream) + bool ok = curl.init(request, callback, stream, headerCallback, headerStream, errorBuffer) && curl.setOption(CURLOPT_CUSTOMREQUEST, "PUT") && curl.setOption(CURLOPT_POSTFIELDS, request->getRequestData()) && curl.setOption(CURLOPT_POSTFIELDSIZE, request->getRequestDataSize()) @@ -384,16 +350,86 @@ static int processPutTask(HttpRequest *request, write_callback callback, void *s } //Process DELETE Request -static int processDeleteTask(HttpRequest *request, write_callback callback, void *stream, long *responseCode, write_callback headerCallback, void *headerStream) +static int processDeleteTask(HttpRequest *request, write_callback callback, void *stream, long *responseCode, write_callback headerCallback, void *headerStream, char *errorBuffer) { CURLRaii curl; - bool ok = curl.init(request, callback, stream, headerCallback, headerStream) + bool ok = curl.init(request, callback, stream, headerCallback, headerStream, errorBuffer) && curl.setOption(CURLOPT_CUSTOMREQUEST, "DELETE") && curl.setOption(CURLOPT_FOLLOWLOCATION, true) && curl.perform(responseCode); return ok ? 0 : 1; } + +// Process Response +static void processResponse(HttpResponse* response, char* errorBuffer) +{ + auto request = response->getHttpRequest(); + long responseCode = -1; + int retValue = 0; + + // Process the request -> get response packet + switch (request->getRequestType()) + { + case HttpRequest::Type::GET: // HTTP GET + retValue = processGetTask(request, + writeData, + response->getResponseData(), + &responseCode, + writeHeaderData, + response->getResponseHeader(), + errorBuffer); + break; + + case HttpRequest::Type::POST: // HTTP POST + retValue = processPostTask(request, + writeData, + response->getResponseData(), + &responseCode, + writeHeaderData, + response->getResponseHeader(), + errorBuffer); + break; + + case HttpRequest::Type::PUT: + retValue = processPutTask(request, + writeData, + response->getResponseData(), + &responseCode, + writeHeaderData, + response->getResponseHeader(), + errorBuffer); + break; + + case HttpRequest::Type::DELETE: + retValue = processDeleteTask(request, + writeData, + response->getResponseData(), + &responseCode, + writeHeaderData, + response->getResponseHeader(), + errorBuffer); + break; + + default: + CCASSERT(true, "CCHttpClient: unkown request type, only GET and POSt are supported"); + break; + } + + // write data to HttpResponse + response->setResponseCode(responseCode); + + if (retValue != 0) + { + response->setSucceed(false); + response->setErrorBuffer(errorBuffer); + } + else + { + response->setSucceed(true); + } +} + // HttpClient implementation HttpClient* HttpClient::getInstance() { @@ -429,7 +465,7 @@ HttpClient::~HttpClient() s_need_quit = true; if (s_requestQueue != nullptr) { - s_SleepCondition.notify_one(); + s_SleepCondition.notify_one(); } s_pHttpClient = nullptr; @@ -445,10 +481,10 @@ bool HttpClient::lazyInitThreadSemphore() s_requestQueue = new Vector(); s_responseQueue = new Vector(); + s_need_quit = false; + auto t = std::thread(CC_CALLBACK_0(HttpClient::networkThread, this)); t.detach(); - - s_need_quit = false; } return true; @@ -479,6 +515,18 @@ void HttpClient::send(HttpRequest* request) } } +void HttpClient::sendImmediate(HttpRequest* request) +{ + if(!request) + { + return; + } + + request->retain(); + auto t = std::thread(&HttpClient::networkThreadAlone, this, request); + t.detach(); +} + // Poll and notify main thread if responses exists in queue void HttpClient::dispatchResponseCallbacks() { @@ -516,6 +564,8 @@ void HttpClient::dispatchResponseCallbacks() } response->release(); + // do not release in other thread + request->release(); } } diff --git a/cocos/network/HttpClient.h b/cocos/network/HttpClient.h index 8c57bb2586..331f8c1ebb 100644 --- a/cocos/network/HttpClient.h +++ b/cocos/network/HttpClient.h @@ -62,6 +62,13 @@ public: please make sure request->_requestData is clear before calling "send" here. */ void send(HttpRequest* request); + + /** + * Immediate send a request + * @param request a HttpRequest object, which includes url, response callback etc. + please make sure request->_requestData is clear before calling "sendImmediate" here. + */ + void sendImmediate(HttpRequest* request); /** @@ -101,6 +108,7 @@ private: */ bool lazyInitThreadSemphore(); void networkThread(); + void networkThreadAlone(HttpRequest* request); /** Poll function called from main thread to dispatch callbacks when http requests finished **/ void dispatchResponseCallbacks(); diff --git a/cocos/scripting/lua-bindings/auto/api/ActionFadeFrame.lua b/cocos/scripting/lua-bindings/auto/api/ActionFadeFrame.lua new file mode 100644 index 0000000000..f713688bf5 --- /dev/null +++ b/cocos/scripting/lua-bindings/auto/api/ActionFadeFrame.lua @@ -0,0 +1,27 @@ + +-------------------------------- +-- @module ActionFadeFrame +-- @extend ActionFrame +-- @parent_module ccs + +-------------------------------- +-- @function [parent=#ActionFadeFrame] getOpacity +-- @param self +-- @return int#int ret (return value: int) + +-------------------------------- +-- @function [parent=#ActionFadeFrame] getAction +-- @param self +-- @param #float float +-- @return ActionInterval#ActionInterval ret (return value: cc.ActionInterval) + +-------------------------------- +-- @function [parent=#ActionFadeFrame] setOpacity +-- @param self +-- @param #int int + +-------------------------------- +-- @function [parent=#ActionFadeFrame] ActionFadeFrame +-- @param self + +return nil diff --git a/cocos/scripting/lua-bindings/auto/api/ActionFrame.lua b/cocos/scripting/lua-bindings/auto/api/ActionFrame.lua new file mode 100644 index 0000000000..ae69470263 --- /dev/null +++ b/cocos/scripting/lua-bindings/auto/api/ActionFrame.lua @@ -0,0 +1,67 @@ + +-------------------------------- +-- @module ActionFrame +-- @extend Ref +-- @parent_module ccs + +-------------------------------- +-- overload function: getAction(float, ccs.ActionFrame) +-- +-- overload function: getAction(float) +-- +-- @function [parent=#ActionFrame] getAction +-- @param self +-- @param #float float +-- @param #ccs.ActionFrame actionframe +-- @return ActionInterval#ActionInterval ret (retunr value: cc.ActionInterval) + +-------------------------------- +-- @function [parent=#ActionFrame] getFrameType +-- @param self +-- @return int#int ret (return value: int) + +-------------------------------- +-- @function [parent=#ActionFrame] setFrameTime +-- @param self +-- @param #float float + +-------------------------------- +-- @function [parent=#ActionFrame] setEasingType +-- @param self +-- @param #int int + +-------------------------------- +-- @function [parent=#ActionFrame] getFrameTime +-- @param self +-- @return float#float ret (return value: float) + +-------------------------------- +-- @function [parent=#ActionFrame] getFrameIndex +-- @param self +-- @return int#int ret (return value: int) + +-------------------------------- +-- @function [parent=#ActionFrame] setFrameType +-- @param self +-- @param #int int + +-------------------------------- +-- @function [parent=#ActionFrame] setFrameIndex +-- @param self +-- @param #int int + +-------------------------------- +-- @function [parent=#ActionFrame] setEasingParameter +-- @param self +-- @param #array_table array + +-------------------------------- +-- @function [parent=#ActionFrame] getEasingType +-- @param self +-- @return int#int ret (return value: int) + +-------------------------------- +-- @function [parent=#ActionFrame] ActionFrame +-- @param self + +return nil diff --git a/cocos/scripting/lua-bindings/auto/api/ActionMoveFrame.lua b/cocos/scripting/lua-bindings/auto/api/ActionMoveFrame.lua new file mode 100644 index 0000000000..3afb25896a --- /dev/null +++ b/cocos/scripting/lua-bindings/auto/api/ActionMoveFrame.lua @@ -0,0 +1,27 @@ + +-------------------------------- +-- @module ActionMoveFrame +-- @extend ActionFrame +-- @parent_module ccs + +-------------------------------- +-- @function [parent=#ActionMoveFrame] setPosition +-- @param self +-- @param #vec2_table vec2 + +-------------------------------- +-- @function [parent=#ActionMoveFrame] getAction +-- @param self +-- @param #float float +-- @return ActionInterval#ActionInterval ret (return value: cc.ActionInterval) + +-------------------------------- +-- @function [parent=#ActionMoveFrame] getPosition +-- @param self +-- @return vec2_table#vec2_table ret (return value: vec2_table) + +-------------------------------- +-- @function [parent=#ActionMoveFrame] ActionMoveFrame +-- @param self + +return nil diff --git a/cocos/scripting/lua-bindings/auto/api/ActionRotationFrame.lua b/cocos/scripting/lua-bindings/auto/api/ActionRotationFrame.lua new file mode 100644 index 0000000000..685d82d1f3 --- /dev/null +++ b/cocos/scripting/lua-bindings/auto/api/ActionRotationFrame.lua @@ -0,0 +1,32 @@ + +-------------------------------- +-- @module ActionRotationFrame +-- @extend ActionFrame +-- @parent_module ccs + +-------------------------------- +-- @function [parent=#ActionRotationFrame] setRotation +-- @param self +-- @param #float float + +-------------------------------- +-- overload function: getAction(float, ccs.ActionFrame) +-- +-- overload function: getAction(float) +-- +-- @function [parent=#ActionRotationFrame] getAction +-- @param self +-- @param #float float +-- @param #ccs.ActionFrame actionframe +-- @return ActionInterval#ActionInterval ret (retunr value: cc.ActionInterval) + +-------------------------------- +-- @function [parent=#ActionRotationFrame] getRotation +-- @param self +-- @return float#float ret (return value: float) + +-------------------------------- +-- @function [parent=#ActionRotationFrame] ActionRotationFrame +-- @param self + +return nil diff --git a/cocos/scripting/lua-bindings/auto/api/ActionScaleFrame.lua b/cocos/scripting/lua-bindings/auto/api/ActionScaleFrame.lua new file mode 100644 index 0000000000..99c0180572 --- /dev/null +++ b/cocos/scripting/lua-bindings/auto/api/ActionScaleFrame.lua @@ -0,0 +1,37 @@ + +-------------------------------- +-- @module ActionScaleFrame +-- @extend ActionFrame +-- @parent_module ccs + +-------------------------------- +-- @function [parent=#ActionScaleFrame] setScaleY +-- @param self +-- @param #float float + +-------------------------------- +-- @function [parent=#ActionScaleFrame] setScaleX +-- @param self +-- @param #float float + +-------------------------------- +-- @function [parent=#ActionScaleFrame] getScaleY +-- @param self +-- @return float#float ret (return value: float) + +-------------------------------- +-- @function [parent=#ActionScaleFrame] getScaleX +-- @param self +-- @return float#float ret (return value: float) + +-------------------------------- +-- @function [parent=#ActionScaleFrame] getAction +-- @param self +-- @param #float float +-- @return ActionInterval#ActionInterval ret (return value: cc.ActionInterval) + +-------------------------------- +-- @function [parent=#ActionScaleFrame] ActionScaleFrame +-- @param self + +return nil diff --git a/cocos/scripting/lua-bindings/auto/api/ActionTimeline.lua b/cocos/scripting/lua-bindings/auto/api/ActionTimeline.lua new file mode 100644 index 0000000000..5bc5839862 --- /dev/null +++ b/cocos/scripting/lua-bindings/auto/api/ActionTimeline.lua @@ -0,0 +1,136 @@ + +-------------------------------- +-- @module ActionTimeline +-- @extend Action +-- @parent_module ccs + +-------------------------------- +-- @function [parent=#ActionTimeline] getTimelines +-- @param self +-- @return array_table#array_table ret (return value: array_table) + +-------------------------------- +-- @function [parent=#ActionTimeline] getCurrentFrame +-- @param self +-- @return int#int ret (return value: int) + +-------------------------------- +-- @function [parent=#ActionTimeline] getStartFrame +-- @param self +-- @return int#int ret (return value: int) + +-------------------------------- +-- @function [parent=#ActionTimeline] pause +-- @param self + +-------------------------------- +-- @function [parent=#ActionTimeline] setFrameEventCallFunc +-- @param self +-- @param #function func + +-------------------------------- +-- @function [parent=#ActionTimeline] resume +-- @param self + +-------------------------------- +-- @function [parent=#ActionTimeline] getDuration +-- @param self +-- @return int#int ret (return value: int) + +-------------------------------- +-- @function [parent=#ActionTimeline] addTimeline +-- @param self +-- @param #ccs.Timeline timeline + +-------------------------------- +-- @function [parent=#ActionTimeline] getEndFrame +-- @param self +-- @return int#int ret (return value: int) + +-------------------------------- +-- @function [parent=#ActionTimeline] setTimeSpeed +-- @param self +-- @param #float float + +-------------------------------- +-- @function [parent=#ActionTimeline] init +-- @param self +-- @return bool#bool ret (return value: bool) + +-------------------------------- +-- @function [parent=#ActionTimeline] setDuration +-- @param self +-- @param #int int + +-------------------------------- +-- @function [parent=#ActionTimeline] getTimeSpeed +-- @param self +-- @return float#float ret (return value: float) + +-------------------------------- +-- @function [parent=#ActionTimeline] gotoFrameAndPause +-- @param self +-- @param #int int + +-------------------------------- +-- @function [parent=#ActionTimeline] isPlaying +-- @param self +-- @return bool#bool ret (return value: bool) + +-------------------------------- +-- overload function: gotoFrameAndPlay(int, bool) +-- +-- overload function: gotoFrameAndPlay(int) +-- +-- overload function: gotoFrameAndPlay(int, int, bool) +-- +-- @function [parent=#ActionTimeline] gotoFrameAndPlay +-- @param self +-- @param #int int +-- @param #int int +-- @param #bool bool + +-------------------------------- +-- @function [parent=#ActionTimeline] removeTimeline +-- @param self +-- @param #ccs.Timeline timeline + +-------------------------------- +-- @function [parent=#ActionTimeline] clearFrameEventCallFunc +-- @param self + +-------------------------------- +-- @function [parent=#ActionTimeline] create +-- @param self +-- @return ActionTimeline#ActionTimeline ret (return value: ccs.ActionTimeline) + +-------------------------------- +-- @function [parent=#ActionTimeline] step +-- @param self +-- @param #float float + +-------------------------------- +-- @function [parent=#ActionTimeline] startWithTarget +-- @param self +-- @param #cc.Node node + +-------------------------------- +-- @function [parent=#ActionTimeline] clone +-- @param self +-- @return ActionTimeline#ActionTimeline ret (return value: ccs.ActionTimeline) + +-------------------------------- +-- @function [parent=#ActionTimeline] reverse +-- @param self +-- @return ActionTimeline#ActionTimeline ret (return value: ccs.ActionTimeline) + +-------------------------------- +-- @function [parent=#ActionTimeline] isDone +-- @param self +-- @return bool#bool ret (return value: bool) + +-------------------------------- +-- @function [parent=#ActionTimeline] ActionTimeline +-- @param self + +return nil diff --git a/cocos/scripting/lua-bindings/auto/api/ActionTimelineCache.lua b/cocos/scripting/lua-bindings/auto/api/ActionTimelineCache.lua new file mode 100644 index 0000000000..b31a41c344 --- /dev/null +++ b/cocos/scripting/lua-bindings/auto/api/ActionTimelineCache.lua @@ -0,0 +1,41 @@ + +-------------------------------- +-- @module ActionTimelineCache + +-------------------------------- +-- @function [parent=#ActionTimelineCache] createAction +-- @param self +-- @param #string str +-- @return ActionTimeline#ActionTimeline ret (return value: ccs.ActionTimeline) + +-------------------------------- +-- @function [parent=#ActionTimelineCache] purge +-- @param self + +-------------------------------- +-- @function [parent=#ActionTimelineCache] init +-- @param self + +-------------------------------- +-- @function [parent=#ActionTimelineCache] loadAnimationActionWithContent +-- @param self +-- @param #string str +-- @param #string str +-- @return ActionTimeline#ActionTimeline ret (return value: ccs.ActionTimeline) + +-------------------------------- +-- @function [parent=#ActionTimelineCache] loadAnimationActionWithFile +-- @param self +-- @param #string str +-- @return ActionTimeline#ActionTimeline ret (return value: ccs.ActionTimeline) + +-------------------------------- +-- @function [parent=#ActionTimelineCache] removeAction +-- @param self +-- @param #string str + +-------------------------------- +-- @function [parent=#ActionTimelineCache] destroyInstance +-- @param self + +return nil diff --git a/cocos/scripting/lua-bindings/auto/api/ActionTimelineData.lua b/cocos/scripting/lua-bindings/auto/api/ActionTimelineData.lua index 691dfd7841..bda764dad6 100644 --- a/cocos/scripting/lua-bindings/auto/api/ActionTimelineData.lua +++ b/cocos/scripting/lua-bindings/auto/api/ActionTimelineData.lua @@ -18,6 +18,6 @@ -- @function [parent=#ActionTimelineData] create -- @param self -- @param #int int --- @return timeline::ActionTimelineData#timeline::ActionTimelineData ret (return value: ccs.timeline::ActionTimelineData) +-- @return ActionTimelineData#ActionTimelineData ret (return value: ccs.ActionTimelineData) return nil diff --git a/cocos/scripting/lua-bindings/auto/api/ActionTintFrame.lua b/cocos/scripting/lua-bindings/auto/api/ActionTintFrame.lua new file mode 100644 index 0000000000..e965b182c8 --- /dev/null +++ b/cocos/scripting/lua-bindings/auto/api/ActionTintFrame.lua @@ -0,0 +1,27 @@ + +-------------------------------- +-- @module ActionTintFrame +-- @extend ActionFrame +-- @parent_module ccs + +-------------------------------- +-- @function [parent=#ActionTintFrame] getColor +-- @param self +-- @return color3b_table#color3b_table ret (return value: color3b_table) + +-------------------------------- +-- @function [parent=#ActionTintFrame] getAction +-- @param self +-- @param #float float +-- @return ActionInterval#ActionInterval ret (return value: cc.ActionInterval) + +-------------------------------- +-- @function [parent=#ActionTintFrame] setColor +-- @param self +-- @param #color3b_table color3b + +-------------------------------- +-- @function [parent=#ActionTintFrame] ActionTintFrame +-- @param self + +return nil diff --git a/cocos/scripting/lua-bindings/auto/api/AnchorPointFrame.lua b/cocos/scripting/lua-bindings/auto/api/AnchorPointFrame.lua new file mode 100644 index 0000000000..1e4849c55d --- /dev/null +++ b/cocos/scripting/lua-bindings/auto/api/AnchorPointFrame.lua @@ -0,0 +1,31 @@ + +-------------------------------- +-- @module AnchorPointFrame +-- @extend Frame +-- @parent_module ccs + +-------------------------------- +-- @function [parent=#AnchorPointFrame] setAnchorPoint +-- @param self +-- @param #vec2_table vec2 + +-------------------------------- +-- @function [parent=#AnchorPointFrame] getAnchorPoint +-- @param self +-- @return vec2_table#vec2_table ret (return value: vec2_table) + +-------------------------------- +-- @function [parent=#AnchorPointFrame] create +-- @param self +-- @return AnchorPointFrame#AnchorPointFrame ret (return value: ccs.AnchorPointFrame) + +-------------------------------- +-- @function [parent=#AnchorPointFrame] clone +-- @param self +-- @return Frame#Frame ret (return value: ccs.Frame) + +-------------------------------- +-- @function [parent=#AnchorPointFrame] AnchorPointFrame +-- @param self + +return nil diff --git a/cocos/scripting/lua-bindings/auto/api/ColorFrame.lua b/cocos/scripting/lua-bindings/auto/api/ColorFrame.lua new file mode 100644 index 0000000000..ba3389570c --- /dev/null +++ b/cocos/scripting/lua-bindings/auto/api/ColorFrame.lua @@ -0,0 +1,46 @@ + +-------------------------------- +-- @module ColorFrame +-- @extend Frame +-- @parent_module ccs + +-------------------------------- +-- @function [parent=#ColorFrame] getAlpha +-- @param self +-- @return unsigned char#unsigned char ret (return value: unsigned char) + +-------------------------------- +-- @function [parent=#ColorFrame] getColor +-- @param self +-- @return color3b_table#color3b_table ret (return value: color3b_table) + +-------------------------------- +-- @function [parent=#ColorFrame] setAlpha +-- @param self +-- @param #unsigned char char + +-------------------------------- +-- @function [parent=#ColorFrame] setColor +-- @param self +-- @param #color3b_table color3b + +-------------------------------- +-- @function [parent=#ColorFrame] create +-- @param self +-- @return ColorFrame#ColorFrame ret (return value: ccs.ColorFrame) + +-------------------------------- +-- @function [parent=#ColorFrame] apply +-- @param self +-- @param #float float + +-------------------------------- +-- @function [parent=#ColorFrame] clone +-- @param self +-- @return Frame#Frame ret (return value: ccs.Frame) + +-------------------------------- +-- @function [parent=#ColorFrame] ColorFrame +-- @param self + +return nil diff --git a/cocos/scripting/lua-bindings/auto/api/EventFrame.lua b/cocos/scripting/lua-bindings/auto/api/EventFrame.lua new file mode 100644 index 0000000000..2638ad42bc --- /dev/null +++ b/cocos/scripting/lua-bindings/auto/api/EventFrame.lua @@ -0,0 +1,31 @@ + +-------------------------------- +-- @module EventFrame +-- @extend Frame +-- @parent_module ccs + +-------------------------------- +-- @function [parent=#EventFrame] setEvent +-- @param self +-- @param #string str + +-------------------------------- +-- @function [parent=#EventFrame] getEvent +-- @param self +-- @return string#string ret (return value: string) + +-------------------------------- +-- @function [parent=#EventFrame] create +-- @param self +-- @return EventFrame#EventFrame ret (return value: ccs.EventFrame) + +-------------------------------- +-- @function [parent=#EventFrame] clone +-- @param self +-- @return Frame#Frame ret (return value: ccs.Frame) + +-------------------------------- +-- @function [parent=#EventFrame] EventFrame +-- @param self + +return nil diff --git a/cocos/scripting/lua-bindings/auto/api/Frame.lua b/cocos/scripting/lua-bindings/auto/api/Frame.lua new file mode 100644 index 0000000000..e339312138 --- /dev/null +++ b/cocos/scripting/lua-bindings/auto/api/Frame.lua @@ -0,0 +1,57 @@ + +-------------------------------- +-- @module Frame +-- @extend Ref +-- @parent_module ccs + +-------------------------------- +-- @function [parent=#Frame] clone +-- @param self +-- @return Frame#Frame ret (return value: ccs.Frame) + +-------------------------------- +-- @function [parent=#Frame] setNode +-- @param self +-- @param #cc.Node node + +-------------------------------- +-- @function [parent=#Frame] setTimeline +-- @param self +-- @param #ccs.Timeline timeline + +-------------------------------- +-- @function [parent=#Frame] getFrameIndex +-- @param self +-- @return unsigned int#unsigned int ret (return value: unsigned int) + +-------------------------------- +-- @function [parent=#Frame] apply +-- @param self +-- @param #float float + +-------------------------------- +-- @function [parent=#Frame] isTween +-- @param self +-- @return bool#bool ret (return value: bool) + +-------------------------------- +-- @function [parent=#Frame] setFrameIndex +-- @param self +-- @param #unsigned int int + +-------------------------------- +-- @function [parent=#Frame] setTween +-- @param self +-- @param #bool bool + +-------------------------------- +-- @function [parent=#Frame] getTimeline +-- @param self +-- @return Timeline#Timeline ret (return value: ccs.Timeline) + +-------------------------------- +-- @function [parent=#Frame] getNode +-- @param self +-- @return Node#Node ret (return value: cc.Node) + +return nil diff --git a/cocos/scripting/lua-bindings/auto/api/InnerActionFrame.lua b/cocos/scripting/lua-bindings/auto/api/InnerActionFrame.lua new file mode 100644 index 0000000000..c12d6e02bd --- /dev/null +++ b/cocos/scripting/lua-bindings/auto/api/InnerActionFrame.lua @@ -0,0 +1,41 @@ + +-------------------------------- +-- @module InnerActionFrame +-- @extend Frame +-- @parent_module ccs + +-------------------------------- +-- @function [parent=#InnerActionFrame] getInnerActionType +-- @param self +-- @return InnerActionType#InnerActionType ret (return value: ccs.InnerActionType) + +-------------------------------- +-- @function [parent=#InnerActionFrame] setStartFrameIndex +-- @param self +-- @param #int int + +-------------------------------- +-- @function [parent=#InnerActionFrame] setInnerActionType +-- @param self +-- @param #ccs.InnerActionType inneractiontype + +-------------------------------- +-- @function [parent=#InnerActionFrame] getStartFrameIndex +-- @param self +-- @return int#int ret (return value: int) + +-------------------------------- +-- @function [parent=#InnerActionFrame] create +-- @param self +-- @return InnerActionFrame#InnerActionFrame ret (return value: ccs.InnerActionFrame) + +-------------------------------- +-- @function [parent=#InnerActionFrame] clone +-- @param self +-- @return Frame#Frame ret (return value: ccs.Frame) + +-------------------------------- +-- @function [parent=#InnerActionFrame] InnerActionFrame +-- @param self + +return nil diff --git a/cocos/scripting/lua-bindings/auto/api/NodeReader.lua b/cocos/scripting/lua-bindings/auto/api/NodeReader.lua new file mode 100644 index 0000000000..6bb49faa79 --- /dev/null +++ b/cocos/scripting/lua-bindings/auto/api/NodeReader.lua @@ -0,0 +1,59 @@ + +-------------------------------- +-- @module NodeReader + +-------------------------------- +-- @function [parent=#NodeReader] setJsonPath +-- @param self +-- @param #string str + +-------------------------------- +-- @function [parent=#NodeReader] createNode +-- @param self +-- @param #string str +-- @return Node#Node ret (return value: cc.Node) + +-------------------------------- +-- @function [parent=#NodeReader] loadNodeWithFile +-- @param self +-- @param #string str +-- @return Node#Node ret (return value: cc.Node) + +-------------------------------- +-- @function [parent=#NodeReader] purge +-- @param self + +-------------------------------- +-- @function [parent=#NodeReader] init +-- @param self + +-------------------------------- +-- @function [parent=#NodeReader] loadNodeWithContent +-- @param self +-- @param #string str +-- @return Node#Node ret (return value: cc.Node) + +-------------------------------- +-- @function [parent=#NodeReader] isRecordJsonPath +-- @param self +-- @return bool#bool ret (return value: bool) + +-------------------------------- +-- @function [parent=#NodeReader] getJsonPath +-- @param self +-- @return string#string ret (return value: string) + +-------------------------------- +-- @function [parent=#NodeReader] setRecordJsonPath +-- @param self +-- @param #bool bool + +-------------------------------- +-- @function [parent=#NodeReader] destroyInstance +-- @param self + +-------------------------------- +-- @function [parent=#NodeReader] NodeReader +-- @param self + +return nil diff --git a/cocos/scripting/lua-bindings/auto/api/PositionFrame.lua b/cocos/scripting/lua-bindings/auto/api/PositionFrame.lua new file mode 100644 index 0000000000..1fa6573504 --- /dev/null +++ b/cocos/scripting/lua-bindings/auto/api/PositionFrame.lua @@ -0,0 +1,56 @@ + +-------------------------------- +-- @module PositionFrame +-- @extend Frame +-- @parent_module ccs + +-------------------------------- +-- @function [parent=#PositionFrame] getX +-- @param self +-- @return float#float ret (return value: float) + +-------------------------------- +-- @function [parent=#PositionFrame] getY +-- @param self +-- @return float#float ret (return value: float) + +-------------------------------- +-- @function [parent=#PositionFrame] setPosition +-- @param self +-- @param #vec2_table vec2 + +-------------------------------- +-- @function [parent=#PositionFrame] setX +-- @param self +-- @param #float float + +-------------------------------- +-- @function [parent=#PositionFrame] setY +-- @param self +-- @param #float float + +-------------------------------- +-- @function [parent=#PositionFrame] getPosition +-- @param self +-- @return vec2_table#vec2_table ret (return value: vec2_table) + +-------------------------------- +-- @function [parent=#PositionFrame] create +-- @param self +-- @return PositionFrame#PositionFrame ret (return value: ccs.PositionFrame) + +-------------------------------- +-- @function [parent=#PositionFrame] apply +-- @param self +-- @param #float float + +-------------------------------- +-- @function [parent=#PositionFrame] clone +-- @param self +-- @return Frame#Frame ret (return value: ccs.Frame) + +-------------------------------- +-- @function [parent=#PositionFrame] PositionFrame +-- @param self + +return nil diff --git a/cocos/scripting/lua-bindings/auto/api/RotationFrame.lua b/cocos/scripting/lua-bindings/auto/api/RotationFrame.lua new file mode 100644 index 0000000000..0d0e14cd48 --- /dev/null +++ b/cocos/scripting/lua-bindings/auto/api/RotationFrame.lua @@ -0,0 +1,36 @@ + +-------------------------------- +-- @module RotationFrame +-- @extend Frame +-- @parent_module ccs + +-------------------------------- +-- @function [parent=#RotationFrame] setRotation +-- @param self +-- @param #float float + +-------------------------------- +-- @function [parent=#RotationFrame] getRotation +-- @param self +-- @return float#float ret (return value: float) + +-------------------------------- +-- @function [parent=#RotationFrame] create +-- @param self +-- @return RotationFrame#RotationFrame ret (return value: ccs.RotationFrame) + +-------------------------------- +-- @function [parent=#RotationFrame] apply +-- @param self +-- @param #float float + +-------------------------------- +-- @function [parent=#RotationFrame] clone +-- @param self +-- @return Frame#Frame ret (return value: ccs.Frame) + +-------------------------------- +-- @function [parent=#RotationFrame] RotationFrame +-- @param self + +return nil diff --git a/cocos/scripting/lua-bindings/auto/api/RotationSkewFrame.lua b/cocos/scripting/lua-bindings/auto/api/RotationSkewFrame.lua new file mode 100644 index 0000000000..7fb9190a5b --- /dev/null +++ b/cocos/scripting/lua-bindings/auto/api/RotationSkewFrame.lua @@ -0,0 +1,26 @@ + +-------------------------------- +-- @module RotationSkewFrame +-- @extend SkewFrame +-- @parent_module ccs + +-------------------------------- +-- @function [parent=#RotationSkewFrame] create +-- @param self +-- @return RotationSkewFrame#RotationSkewFrame ret (return value: ccs.RotationSkewFrame) + +-------------------------------- +-- @function [parent=#RotationSkewFrame] apply +-- @param self +-- @param #float float + +-------------------------------- +-- @function [parent=#RotationSkewFrame] clone +-- @param self +-- @return Frame#Frame ret (return value: ccs.Frame) + +-------------------------------- +-- @function [parent=#RotationSkewFrame] RotationSkewFrame +-- @param self + +return nil diff --git a/cocos/scripting/lua-bindings/auto/api/ScaleFrame.lua b/cocos/scripting/lua-bindings/auto/api/ScaleFrame.lua new file mode 100644 index 0000000000..d8fa8f909b --- /dev/null +++ b/cocos/scripting/lua-bindings/auto/api/ScaleFrame.lua @@ -0,0 +1,51 @@ + +-------------------------------- +-- @module ScaleFrame +-- @extend Frame +-- @parent_module ccs + +-------------------------------- +-- @function [parent=#ScaleFrame] setScaleY +-- @param self +-- @param #float float + +-------------------------------- +-- @function [parent=#ScaleFrame] setScaleX +-- @param self +-- @param #float float + +-------------------------------- +-- @function [parent=#ScaleFrame] getScaleY +-- @param self +-- @return float#float ret (return value: float) + +-------------------------------- +-- @function [parent=#ScaleFrame] getScaleX +-- @param self +-- @return float#float ret (return value: float) + +-------------------------------- +-- @function [parent=#ScaleFrame] setScale +-- @param self +-- @param #float float + +-------------------------------- +-- @function [parent=#ScaleFrame] create +-- @param self +-- @return ScaleFrame#ScaleFrame ret (return value: ccs.ScaleFrame) + +-------------------------------- +-- @function [parent=#ScaleFrame] apply +-- @param self +-- @param #float float + +-------------------------------- +-- @function [parent=#ScaleFrame] clone +-- @param self +-- @return Frame#Frame ret (return value: ccs.Frame) + +-------------------------------- +-- @function [parent=#ScaleFrame] ScaleFrame +-- @param self + +return nil diff --git a/cocos/scripting/lua-bindings/auto/api/SkewFrame.lua b/cocos/scripting/lua-bindings/auto/api/SkewFrame.lua new file mode 100644 index 0000000000..3616dd1b88 --- /dev/null +++ b/cocos/scripting/lua-bindings/auto/api/SkewFrame.lua @@ -0,0 +1,46 @@ + +-------------------------------- +-- @module SkewFrame +-- @extend Frame +-- @parent_module ccs + +-------------------------------- +-- @function [parent=#SkewFrame] getSkewY +-- @param self +-- @return float#float ret (return value: float) + +-------------------------------- +-- @function [parent=#SkewFrame] setSkewX +-- @param self +-- @param #float float + +-------------------------------- +-- @function [parent=#SkewFrame] setSkewY +-- @param self +-- @param #float float + +-------------------------------- +-- @function [parent=#SkewFrame] getSkewX +-- @param self +-- @return float#float ret (return value: float) + +-------------------------------- +-- @function [parent=#SkewFrame] create +-- @param self +-- @return SkewFrame#SkewFrame ret (return value: ccs.SkewFrame) + +-------------------------------- +-- @function [parent=#SkewFrame] apply +-- @param self +-- @param #float float + +-------------------------------- +-- @function [parent=#SkewFrame] clone +-- @param self +-- @return Frame#Frame ret (return value: ccs.Frame) + +-------------------------------- +-- @function [parent=#SkewFrame] SkewFrame +-- @param self + +return nil diff --git a/cocos/scripting/lua-bindings/auto/api/TextureFrame.lua b/cocos/scripting/lua-bindings/auto/api/TextureFrame.lua new file mode 100644 index 0000000000..32222d5bae --- /dev/null +++ b/cocos/scripting/lua-bindings/auto/api/TextureFrame.lua @@ -0,0 +1,36 @@ + +-------------------------------- +-- @module TextureFrame +-- @extend Frame +-- @parent_module ccs + +-------------------------------- +-- @function [parent=#TextureFrame] getTextureName +-- @param self +-- @return string#string ret (return value: string) + +-------------------------------- +-- @function [parent=#TextureFrame] setNode +-- @param self +-- @param #cc.Node node + +-------------------------------- +-- @function [parent=#TextureFrame] setTextureName +-- @param self +-- @param #string str + +-------------------------------- +-- @function [parent=#TextureFrame] create +-- @param self +-- @return TextureFrame#TextureFrame ret (return value: ccs.TextureFrame) + +-------------------------------- +-- @function [parent=#TextureFrame] clone +-- @param self +-- @return Frame#Frame ret (return value: ccs.Frame) + +-------------------------------- +-- @function [parent=#TextureFrame] TextureFrame +-- @param self + +return nil diff --git a/cocos/scripting/lua-bindings/auto/api/Timeline.lua b/cocos/scripting/lua-bindings/auto/api/Timeline.lua new file mode 100644 index 0000000000..e469f6528e --- /dev/null +++ b/cocos/scripting/lua-bindings/auto/api/Timeline.lua @@ -0,0 +1,82 @@ + +-------------------------------- +-- @module Timeline +-- @extend Ref +-- @parent_module ccs + +-------------------------------- +-- @function [parent=#Timeline] clone +-- @param self +-- @return Timeline#Timeline ret (return value: ccs.Timeline) + +-------------------------------- +-- @function [parent=#Timeline] gotoFrame +-- @param self +-- @param #int int + +-------------------------------- +-- @function [parent=#Timeline] setNode +-- @param self +-- @param #cc.Node node + +-------------------------------- +-- @function [parent=#Timeline] getActionTimeline +-- @param self +-- @return ActionTimeline#ActionTimeline ret (return value: ccs.ActionTimeline) + +-------------------------------- +-- @function [parent=#Timeline] insertFrame +-- @param self +-- @param #ccs.Frame frame +-- @param #int int + +-------------------------------- +-- @function [parent=#Timeline] setActionTag +-- @param self +-- @param #int int + +-------------------------------- +-- @function [parent=#Timeline] addFrame +-- @param self +-- @param #ccs.Frame frame + +-------------------------------- +-- @function [parent=#Timeline] getFrames +-- @param self +-- @return array_table#array_table ret (return value: array_table) + +-------------------------------- +-- @function [parent=#Timeline] getActionTag +-- @param self +-- @return int#int ret (return value: int) + +-------------------------------- +-- @function [parent=#Timeline] getNode +-- @param self +-- @return Node#Node ret (return value: cc.Node) + +-------------------------------- +-- @function [parent=#Timeline] removeFrame +-- @param self +-- @param #ccs.Frame frame + +-------------------------------- +-- @function [parent=#Timeline] setActionTimeline +-- @param self +-- @param #ccs.ActionTimeline actiontimeline + +-------------------------------- +-- @function [parent=#Timeline] stepToFrame +-- @param self +-- @param #int int + +-------------------------------- +-- @function [parent=#Timeline] create +-- @param self +-- @return Timeline#Timeline ret (return value: ccs.Timeline) + +-------------------------------- +-- @function [parent=#Timeline] Timeline +-- @param self + +return nil diff --git a/cocos/scripting/lua-bindings/auto/api/VisibleFrame.lua b/cocos/scripting/lua-bindings/auto/api/VisibleFrame.lua new file mode 100644 index 0000000000..2ca2917585 --- /dev/null +++ b/cocos/scripting/lua-bindings/auto/api/VisibleFrame.lua @@ -0,0 +1,31 @@ + +-------------------------------- +-- @module VisibleFrame +-- @extend Frame +-- @parent_module ccs + +-------------------------------- +-- @function [parent=#VisibleFrame] isVisible +-- @param self +-- @return bool#bool ret (return value: bool) + +-------------------------------- +-- @function [parent=#VisibleFrame] setVisible +-- @param self +-- @param #bool bool + +-------------------------------- +-- @function [parent=#VisibleFrame] create +-- @param self +-- @return VisibleFrame#VisibleFrame ret (return value: ccs.VisibleFrame) + +-------------------------------- +-- @function [parent=#VisibleFrame] clone +-- @param self +-- @return Frame#Frame ret (return value: ccs.Frame) + +-------------------------------- +-- @function [parent=#VisibleFrame] VisibleFrame +-- @param self + +return nil diff --git a/cocos/scripting/lua-bindings/auto/api/ZOrderFrame.lua b/cocos/scripting/lua-bindings/auto/api/ZOrderFrame.lua new file mode 100644 index 0000000000..aa0999498e --- /dev/null +++ b/cocos/scripting/lua-bindings/auto/api/ZOrderFrame.lua @@ -0,0 +1,31 @@ + +-------------------------------- +-- @module ZOrderFrame +-- @extend Frame +-- @parent_module ccs + +-------------------------------- +-- @function [parent=#ZOrderFrame] getZOrder +-- @param self +-- @return int#int ret (return value: int) + +-------------------------------- +-- @function [parent=#ZOrderFrame] setZOrder +-- @param self +-- @param #int int + +-------------------------------- +-- @function [parent=#ZOrderFrame] create +-- @param self +-- @return ZOrderFrame#ZOrderFrame ret (return value: ccs.ZOrderFrame) + +-------------------------------- +-- @function [parent=#ZOrderFrame] clone +-- @param self +-- @return Frame#Frame ret (return value: ccs.Frame) + +-------------------------------- +-- @function [parent=#ZOrderFrame] ZOrderFrame +-- @param self + +return nil diff --git a/cocos/scripting/lua-bindings/auto/api/lua_cocos2dx_studio_auto_api.lua b/cocos/scripting/lua-bindings/auto/api/lua_cocos2dx_studio_auto_api.lua index 832170c05b..9a2ca7548d 100644 --- a/cocos/scripting/lua-bindings/auto/api/lua_cocos2dx_studio_auto_api.lua +++ b/cocos/scripting/lua-bindings/auto/api/lua_cocos2dx_studio_auto_api.lua @@ -1,6 +1,36 @@ -------------------------------- -- @module ccs +-------------------------------------------------------- +-- the ccs ActionFrame +-- @field [parent=#ccs] ActionFrame#ActionFrame ActionFrame preloaded module + + +-------------------------------------------------------- +-- the ccs ActionMoveFrame +-- @field [parent=#ccs] ActionMoveFrame#ActionMoveFrame ActionMoveFrame preloaded module + + +-------------------------------------------------------- +-- the ccs ActionScaleFrame +-- @field [parent=#ccs] ActionScaleFrame#ActionScaleFrame ActionScaleFrame preloaded module + + +-------------------------------------------------------- +-- the ccs ActionRotationFrame +-- @field [parent=#ccs] ActionRotationFrame#ActionRotationFrame ActionRotationFrame preloaded module + + +-------------------------------------------------------- +-- the ccs ActionFadeFrame +-- @field [parent=#ccs] ActionFadeFrame#ActionFadeFrame ActionFadeFrame preloaded module + + +-------------------------------------------------------- +-- the ccs ActionTintFrame +-- @field [parent=#ccs] ActionTintFrame#ActionTintFrame ActionTintFrame preloaded module + + -------------------------------------------------------- -- the ccs ActionObject -- @field [parent=#ccs] ActionObject#ActionObject ActionObject preloaded module @@ -146,9 +176,94 @@ -- @field [parent=#ccs] SceneReader#SceneReader SceneReader preloaded module +-------------------------------------------------------- +-- the ccs NodeReader +-- @field [parent=#ccs] NodeReader#NodeReader NodeReader preloaded module + + +-------------------------------------------------------- +-- the ccs ActionTimelineCache +-- @field [parent=#ccs] ActionTimelineCache#ActionTimelineCache ActionTimelineCache preloaded module + + +-------------------------------------------------------- +-- the ccs Frame +-- @field [parent=#ccs] Frame#Frame Frame preloaded module + + +-------------------------------------------------------- +-- the ccs VisibleFrame +-- @field [parent=#ccs] VisibleFrame#VisibleFrame VisibleFrame preloaded module + + +-------------------------------------------------------- +-- the ccs TextureFrame +-- @field [parent=#ccs] TextureFrame#TextureFrame TextureFrame preloaded module + + +-------------------------------------------------------- +-- the ccs RotationFrame +-- @field [parent=#ccs] RotationFrame#RotationFrame RotationFrame preloaded module + + +-------------------------------------------------------- +-- the ccs SkewFrame +-- @field [parent=#ccs] SkewFrame#SkewFrame SkewFrame preloaded module + + +-------------------------------------------------------- +-- the ccs RotationSkewFrame +-- @field [parent=#ccs] RotationSkewFrame#RotationSkewFrame RotationSkewFrame preloaded module + + +-------------------------------------------------------- +-- the ccs PositionFrame +-- @field [parent=#ccs] PositionFrame#PositionFrame PositionFrame preloaded module + + +-------------------------------------------------------- +-- the ccs ScaleFrame +-- @field [parent=#ccs] ScaleFrame#ScaleFrame ScaleFrame preloaded module + + +-------------------------------------------------------- +-- the ccs AnchorPointFrame +-- @field [parent=#ccs] AnchorPointFrame#AnchorPointFrame AnchorPointFrame preloaded module + + +-------------------------------------------------------- +-- the ccs InnerActionFrame +-- @field [parent=#ccs] InnerActionFrame#InnerActionFrame InnerActionFrame preloaded module + + +-------------------------------------------------------- +-- the ccs ColorFrame +-- @field [parent=#ccs] ColorFrame#ColorFrame ColorFrame preloaded module + + +-------------------------------------------------------- +-- the ccs EventFrame +-- @field [parent=#ccs] EventFrame#EventFrame EventFrame preloaded module + + +-------------------------------------------------------- +-- the ccs ZOrderFrame +-- @field [parent=#ccs] ZOrderFrame#ZOrderFrame ZOrderFrame preloaded module + + +-------------------------------------------------------- +-- the ccs Timeline +-- @field [parent=#ccs] Timeline#Timeline Timeline preloaded module + + -------------------------------------------------------- -- the ccs ActionTimelineData -- @field [parent=#ccs] ActionTimelineData#ActionTimelineData ActionTimelineData preloaded module +-------------------------------------------------------- +-- the ccs ActionTimeline +-- @field [parent=#ccs] ActionTimeline#ActionTimeline ActionTimeline preloaded module + + return nil diff --git a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.cpp b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.cpp index eaa93fa856..ab816c52e4 100644 --- a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.cpp +++ b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.cpp @@ -554,7 +554,7 @@ static int lua_cocos2dx_EventListener_finalize(lua_State* tolua_S) int lua_register_cocos2dx_EventListener(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventListener"); - tolua_cclass(tolua_S,"EventListener","cc.EventListener","cc.Ref",nullptr); + tolua_cclass(tolua_S,"EventListener","cc.EventListener","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"EventListener"); tolua_function(tolua_S,"setEnabled",lua_cocos2dx_EventListener_setEnabled); @@ -752,7 +752,7 @@ static int lua_cocos2dx_Event_finalize(lua_State* tolua_S) int lua_register_cocos2dx_Event(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Event"); - tolua_cclass(tolua_S,"Event","cc.Event","cc.Ref",nullptr); + tolua_cclass(tolua_S,"Event","cc.Event","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"Event"); tolua_function(tolua_S,"isStopped",lua_cocos2dx_Event_isStopped); @@ -1504,7 +1504,7 @@ static int lua_cocos2dx_EventDispatcher_finalize(lua_State* tolua_S) int lua_register_cocos2dx_EventDispatcher(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventDispatcher"); - tolua_cclass(tolua_S,"EventDispatcher","cc.EventDispatcher","cc.Ref",nullptr); + tolua_cclass(tolua_S,"EventDispatcher","cc.EventDispatcher","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"EventDispatcher"); tolua_function(tolua_S,"new",lua_cocos2dx_EventDispatcher_constructor); @@ -1976,7 +1976,7 @@ static int lua_cocos2dx_Touch_finalize(lua_State* tolua_S) int lua_register_cocos2dx_Touch(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Touch"); - tolua_cclass(tolua_S,"Touch","cc.Touch","cc.Ref",nullptr); + tolua_cclass(tolua_S,"Touch","cc.Touch","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"Touch"); tolua_function(tolua_S,"new",lua_cocos2dx_Touch_constructor); @@ -2129,7 +2129,7 @@ static int lua_cocos2dx_EventTouch_finalize(lua_State* tolua_S) int lua_register_cocos2dx_EventTouch(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventTouch"); - tolua_cclass(tolua_S,"EventTouch","cc.EventTouch","cc.Event",nullptr); + tolua_cclass(tolua_S,"EventTouch","cc.EventTouch","cc.Event",nullptr); tolua_beginmodule(tolua_S,"EventTouch"); tolua_function(tolua_S,"new",lua_cocos2dx_EventTouch_constructor); @@ -2191,7 +2191,7 @@ static int lua_cocos2dx_EventKeyboard_finalize(lua_State* tolua_S) int lua_register_cocos2dx_EventKeyboard(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventKeyboard"); - tolua_cclass(tolua_S,"EventKeyboard","cc.EventKeyboard","cc.Event",nullptr); + tolua_cclass(tolua_S,"EventKeyboard","cc.EventKeyboard","cc.Event",nullptr); tolua_beginmodule(tolua_S,"EventKeyboard"); tolua_function(tolua_S,"new",lua_cocos2dx_EventKeyboard_constructor); @@ -3575,7 +3575,7 @@ static int lua_cocos2dx_Texture2D_finalize(lua_State* tolua_S) int lua_register_cocos2dx_Texture2D(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Texture2D"); - tolua_cclass(tolua_S,"Texture2D","cc.Texture2D","cc.Ref",nullptr); + tolua_cclass(tolua_S,"Texture2D","cc.Texture2D","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"Texture2D"); tolua_function(tolua_S,"new",lua_cocos2dx_Texture2D_constructor); @@ -9593,7 +9593,7 @@ static int lua_cocos2dx_Node_finalize(lua_State* tolua_S) int lua_register_cocos2dx_Node(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Node"); - tolua_cclass(tolua_S,"Node","cc.Node","cc.Ref",nullptr); + tolua_cclass(tolua_S,"Node","cc.Node","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"Node"); tolua_function(tolua_S,"addChild",lua_cocos2dx_Node_addChild); @@ -10463,7 +10463,7 @@ static int lua_cocos2dx_GLProgramState_finalize(lua_State* tolua_S) int lua_register_cocos2dx_GLProgramState(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.GLProgramState"); - tolua_cclass(tolua_S,"GLProgramState","cc.GLProgramState","cc.Ref",nullptr); + tolua_cclass(tolua_S,"GLProgramState","cc.GLProgramState","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"GLProgramState"); tolua_function(tolua_S,"setUniformTexture",lua_cocos2dx_GLProgramState_setUniformTexture); @@ -10850,7 +10850,7 @@ static int lua_cocos2dx_AtlasNode_finalize(lua_State* tolua_S) int lua_register_cocos2dx_AtlasNode(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.AtlasNode"); - tolua_cclass(tolua_S,"AtlasNode","cc.AtlasNode","cc.Node",nullptr); + tolua_cclass(tolua_S,"AtlasNode","cc.AtlasNode","cc.Node",nullptr); tolua_beginmodule(tolua_S,"AtlasNode"); tolua_function(tolua_S,"updateAtlasValues",lua_cocos2dx_AtlasNode_updateAtlasValues); @@ -11186,7 +11186,7 @@ static int lua_cocos2dx_LabelAtlas_finalize(lua_State* tolua_S) int lua_register_cocos2dx_LabelAtlas(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.LabelAtlas"); - tolua_cclass(tolua_S,"LabelAtlas","cc.LabelAtlas","cc.AtlasNode",nullptr); + tolua_cclass(tolua_S,"LabelAtlas","cc.LabelAtlas","cc.AtlasNode",nullptr); tolua_beginmodule(tolua_S,"LabelAtlas"); tolua_function(tolua_S,"setString",lua_cocos2dx_LabelAtlas_setString); @@ -14368,7 +14368,7 @@ static int lua_cocos2dx_Timer_finalize(lua_State* tolua_S) int lua_register_cocos2dx_Timer(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Timer"); - tolua_cclass(tolua_S,"Timer","cc.Timer","cc.Ref",nullptr); + tolua_cclass(tolua_S,"Timer","cc.Timer","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"Timer"); tolua_function(tolua_S,"getInterval",lua_cocos2dx_Timer_getInterval); @@ -14517,7 +14517,7 @@ static int lua_cocos2dx_Scheduler_finalize(lua_State* tolua_S) int lua_register_cocos2dx_Scheduler(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Scheduler"); - tolua_cclass(tolua_S,"Scheduler","cc.Scheduler","cc.Ref",nullptr); + tolua_cclass(tolua_S,"Scheduler","cc.Scheduler","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"Scheduler"); tolua_function(tolua_S,"new",lua_cocos2dx_Scheduler_constructor); @@ -16362,7 +16362,7 @@ static int lua_cocos2dx_EventListenerTouchOneByOne_finalize(lua_State* tolua_S) int lua_register_cocos2dx_EventListenerTouchOneByOne(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventListenerTouchOneByOne"); - tolua_cclass(tolua_S,"EventListenerTouchOneByOne","cc.EventListenerTouchOneByOne","cc.EventListener",nullptr); + tolua_cclass(tolua_S,"EventListenerTouchOneByOne","cc.EventListenerTouchOneByOne","cc.EventListener",nullptr); tolua_beginmodule(tolua_S,"EventListenerTouchOneByOne"); tolua_function(tolua_S,"isSwallowTouches",lua_cocos2dx_EventListenerTouchOneByOne_isSwallowTouches); @@ -16383,7 +16383,7 @@ static int lua_cocos2dx_EventListenerTouchAllAtOnce_finalize(lua_State* tolua_S) int lua_register_cocos2dx_EventListenerTouchAllAtOnce(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventListenerTouchAllAtOnce"); - tolua_cclass(tolua_S,"EventListenerTouchAllAtOnce","cc.EventListenerTouchAllAtOnce","cc.EventListener",nullptr); + tolua_cclass(tolua_S,"EventListenerTouchAllAtOnce","cc.EventListenerTouchAllAtOnce","cc.EventListener",nullptr); tolua_beginmodule(tolua_S,"EventListenerTouchAllAtOnce"); tolua_endmodule(tolua_S); @@ -16402,7 +16402,7 @@ static int lua_cocos2dx_EventListenerKeyboard_finalize(lua_State* tolua_S) int lua_register_cocos2dx_EventListenerKeyboard(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventListenerKeyboard"); - tolua_cclass(tolua_S,"EventListenerKeyboard","cc.EventListenerKeyboard","cc.EventListener",nullptr); + tolua_cclass(tolua_S,"EventListenerKeyboard","cc.EventListenerKeyboard","cc.EventListener",nullptr); tolua_beginmodule(tolua_S,"EventListenerKeyboard"); tolua_endmodule(tolua_S); @@ -16822,7 +16822,7 @@ static int lua_cocos2dx_EventMouse_finalize(lua_State* tolua_S) int lua_register_cocos2dx_EventMouse(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventMouse"); - tolua_cclass(tolua_S,"EventMouse","cc.EventMouse","cc.Event",nullptr); + tolua_cclass(tolua_S,"EventMouse","cc.EventMouse","cc.Event",nullptr); tolua_beginmodule(tolua_S,"EventMouse"); tolua_function(tolua_S,"new",lua_cocos2dx_EventMouse_constructor); @@ -16850,7 +16850,7 @@ static int lua_cocos2dx_EventListenerMouse_finalize(lua_State* tolua_S) int lua_register_cocos2dx_EventListenerMouse(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventListenerMouse"); - tolua_cclass(tolua_S,"EventListenerMouse","cc.EventListenerMouse","cc.EventListener",nullptr); + tolua_cclass(tolua_S,"EventListenerMouse","cc.EventListenerMouse","cc.EventListener",nullptr); tolua_beginmodule(tolua_S,"EventListenerMouse"); tolua_endmodule(tolua_S); @@ -16869,7 +16869,7 @@ static int lua_cocos2dx_EventAcceleration_finalize(lua_State* tolua_S) int lua_register_cocos2dx_EventAcceleration(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventAcceleration"); - tolua_cclass(tolua_S,"EventAcceleration","cc.EventAcceleration","cc.Event",nullptr); + tolua_cclass(tolua_S,"EventAcceleration","cc.EventAcceleration","cc.Event",nullptr); tolua_beginmodule(tolua_S,"EventAcceleration"); tolua_endmodule(tolua_S); @@ -16888,7 +16888,7 @@ static int lua_cocos2dx_EventListenerAcceleration_finalize(lua_State* tolua_S) int lua_register_cocos2dx_EventListenerAcceleration(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventListenerAcceleration"); - tolua_cclass(tolua_S,"EventListenerAcceleration","cc.EventListenerAcceleration","cc.EventListener",nullptr); + tolua_cclass(tolua_S,"EventListenerAcceleration","cc.EventListenerAcceleration","cc.EventListener",nullptr); tolua_beginmodule(tolua_S,"EventListenerAcceleration"); tolua_endmodule(tolua_S); @@ -16988,7 +16988,7 @@ static int lua_cocos2dx_EventCustom_finalize(lua_State* tolua_S) int lua_register_cocos2dx_EventCustom(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventCustom"); - tolua_cclass(tolua_S,"EventCustom","cc.EventCustom","cc.Event",nullptr); + tolua_cclass(tolua_S,"EventCustom","cc.EventCustom","cc.Event",nullptr); tolua_beginmodule(tolua_S,"EventCustom"); tolua_function(tolua_S,"new",lua_cocos2dx_EventCustom_constructor); @@ -17009,7 +17009,7 @@ static int lua_cocos2dx_EventListenerCustom_finalize(lua_State* tolua_S) int lua_register_cocos2dx_EventListenerCustom(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventListenerCustom"); - tolua_cclass(tolua_S,"EventListenerCustom","cc.EventListenerCustom","cc.EventListener",nullptr); + tolua_cclass(tolua_S,"EventListenerCustom","cc.EventListenerCustom","cc.EventListener",nullptr); tolua_beginmodule(tolua_S,"EventListenerCustom"); tolua_endmodule(tolua_S); @@ -17068,7 +17068,7 @@ static int lua_cocos2dx_EventFocus_finalize(lua_State* tolua_S) int lua_register_cocos2dx_EventFocus(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventFocus"); - tolua_cclass(tolua_S,"EventFocus","cc.EventFocus","cc.Event",nullptr); + tolua_cclass(tolua_S,"EventFocus","cc.EventFocus","cc.Event",nullptr); tolua_beginmodule(tolua_S,"EventFocus"); tolua_function(tolua_S,"new",lua_cocos2dx_EventFocus_constructor); @@ -17088,7 +17088,7 @@ static int lua_cocos2dx_EventListenerFocus_finalize(lua_State* tolua_S) int lua_register_cocos2dx_EventListenerFocus(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventListenerFocus"); - tolua_cclass(tolua_S,"EventListenerFocus","cc.EventListenerFocus","cc.EventListener",nullptr); + tolua_cclass(tolua_S,"EventListenerFocus","cc.EventListenerFocus","cc.EventListener",nullptr); tolua_beginmodule(tolua_S,"EventListenerFocus"); tolua_endmodule(tolua_S); @@ -17690,7 +17690,7 @@ static int lua_cocos2dx_Action_finalize(lua_State* tolua_S) int lua_register_cocos2dx_Action(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Action"); - tolua_cclass(tolua_S,"Action","cc.Action","cc.Ref",nullptr); + tolua_cclass(tolua_S,"Action","cc.Action","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"Action"); tolua_function(tolua_S,"startWithTarget",lua_cocos2dx_Action_startWithTarget); @@ -17812,7 +17812,7 @@ static int lua_cocos2dx_FiniteTimeAction_finalize(lua_State* tolua_S) int lua_register_cocos2dx_FiniteTimeAction(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.FiniteTimeAction"); - tolua_cclass(tolua_S,"FiniteTimeAction","cc.FiniteTimeAction","cc.Action",nullptr); + tolua_cclass(tolua_S,"FiniteTimeAction","cc.FiniteTimeAction","cc.Action",nullptr); tolua_beginmodule(tolua_S,"FiniteTimeAction"); tolua_function(tolua_S,"setDuration",lua_cocos2dx_FiniteTimeAction_setDuration); @@ -18048,7 +18048,7 @@ static int lua_cocos2dx_Speed_finalize(lua_State* tolua_S) int lua_register_cocos2dx_Speed(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Speed"); - tolua_cclass(tolua_S,"Speed","cc.Speed","cc.Action",nullptr); + tolua_cclass(tolua_S,"Speed","cc.Speed","cc.Action",nullptr); tolua_beginmodule(tolua_S,"Speed"); tolua_function(tolua_S,"setInnerAction",lua_cocos2dx_Speed_setInnerAction); @@ -18207,7 +18207,7 @@ static int lua_cocos2dx_Follow_finalize(lua_State* tolua_S) int lua_register_cocos2dx_Follow(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Follow"); - tolua_cclass(tolua_S,"Follow","cc.Follow","cc.Action",nullptr); + tolua_cclass(tolua_S,"Follow","cc.Follow","cc.Action",nullptr); tolua_beginmodule(tolua_S,"Follow"); tolua_function(tolua_S,"setBoudarySet",lua_cocos2dx_Follow_setBoudarySet); @@ -19119,7 +19119,7 @@ static int lua_cocos2dx_SpriteFrame_finalize(lua_State* tolua_S) int lua_register_cocos2dx_SpriteFrame(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.SpriteFrame"); - tolua_cclass(tolua_S,"SpriteFrame","cc.SpriteFrame","cc.Ref",nullptr); + tolua_cclass(tolua_S,"SpriteFrame","cc.SpriteFrame","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"SpriteFrame"); tolua_function(tolua_S,"clone",lua_cocos2dx_SpriteFrame_clone); @@ -19511,7 +19511,7 @@ static int lua_cocos2dx_AnimationFrame_finalize(lua_State* tolua_S) int lua_register_cocos2dx_AnimationFrame(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.AnimationFrame"); - tolua_cclass(tolua_S,"AnimationFrame","cc.AnimationFrame","cc.Ref",nullptr); + tolua_cclass(tolua_S,"AnimationFrame","cc.AnimationFrame","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"AnimationFrame"); tolua_function(tolua_S,"setSpriteFrame",lua_cocos2dx_AnimationFrame_setSpriteFrame); @@ -20297,7 +20297,7 @@ static int lua_cocos2dx_Animation_finalize(lua_State* tolua_S) int lua_register_cocos2dx_Animation(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Animation"); - tolua_cclass(tolua_S,"Animation","cc.Animation","cc.Ref",nullptr); + tolua_cclass(tolua_S,"Animation","cc.Animation","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"Animation"); tolua_function(tolua_S,"getLoops",lua_cocos2dx_Animation_getLoops); @@ -20466,7 +20466,7 @@ static int lua_cocos2dx_ActionInterval_finalize(lua_State* tolua_S) int lua_register_cocos2dx_ActionInterval(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ActionInterval"); - tolua_cclass(tolua_S,"ActionInterval","cc.ActionInterval","cc.FiniteTimeAction",nullptr); + tolua_cclass(tolua_S,"ActionInterval","cc.ActionInterval","cc.FiniteTimeAction",nullptr); tolua_beginmodule(tolua_S,"ActionInterval"); tolua_function(tolua_S,"getAmplitudeRate",lua_cocos2dx_ActionInterval_getAmplitudeRate); @@ -20488,7 +20488,7 @@ static int lua_cocos2dx_Sequence_finalize(lua_State* tolua_S) int lua_register_cocos2dx_Sequence(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Sequence"); - tolua_cclass(tolua_S,"Sequence","cc.Sequence","cc.ActionInterval",nullptr); + tolua_cclass(tolua_S,"Sequence","cc.Sequence","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"Sequence"); tolua_endmodule(tolua_S); @@ -20632,7 +20632,7 @@ static int lua_cocos2dx_Repeat_finalize(lua_State* tolua_S) int lua_register_cocos2dx_Repeat(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Repeat"); - tolua_cclass(tolua_S,"Repeat","cc.Repeat","cc.ActionInterval",nullptr); + tolua_cclass(tolua_S,"Repeat","cc.Repeat","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"Repeat"); tolua_function(tolua_S,"setInnerAction",lua_cocos2dx_Repeat_setInnerAction); @@ -20777,7 +20777,7 @@ static int lua_cocos2dx_RepeatForever_finalize(lua_State* tolua_S) int lua_register_cocos2dx_RepeatForever(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.RepeatForever"); - tolua_cclass(tolua_S,"RepeatForever","cc.RepeatForever","cc.ActionInterval",nullptr); + tolua_cclass(tolua_S,"RepeatForever","cc.RepeatForever","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"RepeatForever"); tolua_function(tolua_S,"setInnerAction",lua_cocos2dx_RepeatForever_setInnerAction); @@ -20799,7 +20799,7 @@ static int lua_cocos2dx_Spawn_finalize(lua_State* tolua_S) int lua_register_cocos2dx_Spawn(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Spawn"); - tolua_cclass(tolua_S,"Spawn","cc.Spawn","cc.ActionInterval",nullptr); + tolua_cclass(tolua_S,"Spawn","cc.Spawn","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"Spawn"); tolua_endmodule(tolua_S); @@ -20875,7 +20875,7 @@ static int lua_cocos2dx_RotateTo_finalize(lua_State* tolua_S) int lua_register_cocos2dx_RotateTo(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.RotateTo"); - tolua_cclass(tolua_S,"RotateTo","cc.RotateTo","cc.ActionInterval",nullptr); + tolua_cclass(tolua_S,"RotateTo","cc.RotateTo","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"RotateTo"); tolua_function(tolua_S,"create", lua_cocos2dx_RotateTo_create); @@ -20968,7 +20968,7 @@ static int lua_cocos2dx_RotateBy_finalize(lua_State* tolua_S) int lua_register_cocos2dx_RotateBy(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.RotateBy"); - tolua_cclass(tolua_S,"RotateBy","cc.RotateBy","cc.ActionInterval",nullptr); + tolua_cclass(tolua_S,"RotateBy","cc.RotateBy","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"RotateBy"); tolua_function(tolua_S,"create", lua_cocos2dx_RotateBy_create); @@ -21023,7 +21023,7 @@ static int lua_cocos2dx_MoveBy_finalize(lua_State* tolua_S) int lua_register_cocos2dx_MoveBy(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.MoveBy"); - tolua_cclass(tolua_S,"MoveBy","cc.MoveBy","cc.ActionInterval",nullptr); + tolua_cclass(tolua_S,"MoveBy","cc.MoveBy","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"MoveBy"); tolua_function(tolua_S,"create", lua_cocos2dx_MoveBy_create); @@ -21078,7 +21078,7 @@ static int lua_cocos2dx_MoveTo_finalize(lua_State* tolua_S) int lua_register_cocos2dx_MoveTo(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.MoveTo"); - tolua_cclass(tolua_S,"MoveTo","cc.MoveTo","cc.MoveBy",nullptr); + tolua_cclass(tolua_S,"MoveTo","cc.MoveTo","cc.MoveBy",nullptr); tolua_beginmodule(tolua_S,"MoveTo"); tolua_function(tolua_S,"create", lua_cocos2dx_MoveTo_create); @@ -21135,7 +21135,7 @@ static int lua_cocos2dx_SkewTo_finalize(lua_State* tolua_S) int lua_register_cocos2dx_SkewTo(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.SkewTo"); - tolua_cclass(tolua_S,"SkewTo","cc.SkewTo","cc.ActionInterval",nullptr); + tolua_cclass(tolua_S,"SkewTo","cc.SkewTo","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"SkewTo"); tolua_function(tolua_S,"create", lua_cocos2dx_SkewTo_create); @@ -21192,7 +21192,7 @@ static int lua_cocos2dx_SkewBy_finalize(lua_State* tolua_S) int lua_register_cocos2dx_SkewBy(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.SkewBy"); - tolua_cclass(tolua_S,"SkewBy","cc.SkewBy","cc.SkewTo",nullptr); + tolua_cclass(tolua_S,"SkewBy","cc.SkewBy","cc.SkewTo",nullptr); tolua_beginmodule(tolua_S,"SkewBy"); tolua_function(tolua_S,"create", lua_cocos2dx_SkewBy_create); @@ -21251,7 +21251,7 @@ static int lua_cocos2dx_JumpBy_finalize(lua_State* tolua_S) int lua_register_cocos2dx_JumpBy(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.JumpBy"); - tolua_cclass(tolua_S,"JumpBy","cc.JumpBy","cc.ActionInterval",nullptr); + tolua_cclass(tolua_S,"JumpBy","cc.JumpBy","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"JumpBy"); tolua_function(tolua_S,"create", lua_cocos2dx_JumpBy_create); @@ -21310,7 +21310,7 @@ static int lua_cocos2dx_JumpTo_finalize(lua_State* tolua_S) int lua_register_cocos2dx_JumpTo(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.JumpTo"); - tolua_cclass(tolua_S,"JumpTo","cc.JumpTo","cc.JumpBy",nullptr); + tolua_cclass(tolua_S,"JumpTo","cc.JumpTo","cc.JumpBy",nullptr); tolua_beginmodule(tolua_S,"JumpTo"); tolua_function(tolua_S,"create", lua_cocos2dx_JumpTo_create); @@ -21330,7 +21330,7 @@ static int lua_cocos2dx_BezierBy_finalize(lua_State* tolua_S) int lua_register_cocos2dx_BezierBy(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.BezierBy"); - tolua_cclass(tolua_S,"BezierBy","cc.BezierBy","cc.ActionInterval",nullptr); + tolua_cclass(tolua_S,"BezierBy","cc.BezierBy","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"BezierBy"); tolua_endmodule(tolua_S); @@ -21349,7 +21349,7 @@ static int lua_cocos2dx_BezierTo_finalize(lua_State* tolua_S) int lua_register_cocos2dx_BezierTo(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.BezierTo"); - tolua_cclass(tolua_S,"BezierTo","cc.BezierTo","cc.BezierBy",nullptr); + tolua_cclass(tolua_S,"BezierTo","cc.BezierTo","cc.BezierBy",nullptr); tolua_beginmodule(tolua_S,"BezierTo"); tolua_endmodule(tolua_S); @@ -21447,7 +21447,7 @@ static int lua_cocos2dx_ScaleTo_finalize(lua_State* tolua_S) int lua_register_cocos2dx_ScaleTo(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ScaleTo"); - tolua_cclass(tolua_S,"ScaleTo","cc.ScaleTo","cc.ActionInterval",nullptr); + tolua_cclass(tolua_S,"ScaleTo","cc.ScaleTo","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"ScaleTo"); tolua_function(tolua_S,"create", lua_cocos2dx_ScaleTo_create); @@ -21546,7 +21546,7 @@ static int lua_cocos2dx_ScaleBy_finalize(lua_State* tolua_S) int lua_register_cocos2dx_ScaleBy(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ScaleBy"); - tolua_cclass(tolua_S,"ScaleBy","cc.ScaleBy","cc.ScaleTo",nullptr); + tolua_cclass(tolua_S,"ScaleBy","cc.ScaleBy","cc.ScaleTo",nullptr); tolua_beginmodule(tolua_S,"ScaleBy"); tolua_function(tolua_S,"create", lua_cocos2dx_ScaleBy_create); @@ -21601,7 +21601,7 @@ static int lua_cocos2dx_Blink_finalize(lua_State* tolua_S) int lua_register_cocos2dx_Blink(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Blink"); - tolua_cclass(tolua_S,"Blink","cc.Blink","cc.ActionInterval",nullptr); + tolua_cclass(tolua_S,"Blink","cc.Blink","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"Blink"); tolua_function(tolua_S,"create", lua_cocos2dx_Blink_create); @@ -21656,7 +21656,7 @@ static int lua_cocos2dx_FadeTo_finalize(lua_State* tolua_S) int lua_register_cocos2dx_FadeTo(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.FadeTo"); - tolua_cclass(tolua_S,"FadeTo","cc.FadeTo","cc.ActionInterval",nullptr); + tolua_cclass(tolua_S,"FadeTo","cc.FadeTo","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"FadeTo"); tolua_function(tolua_S,"create", lua_cocos2dx_FadeTo_create); @@ -21755,7 +21755,7 @@ static int lua_cocos2dx_FadeIn_finalize(lua_State* tolua_S) int lua_register_cocos2dx_FadeIn(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.FadeIn"); - tolua_cclass(tolua_S,"FadeIn","cc.FadeIn","cc.FadeTo",nullptr); + tolua_cclass(tolua_S,"FadeIn","cc.FadeIn","cc.FadeTo",nullptr); tolua_beginmodule(tolua_S,"FadeIn"); tolua_function(tolua_S,"setReverseAction",lua_cocos2dx_FadeIn_setReverseAction); @@ -21855,7 +21855,7 @@ static int lua_cocos2dx_FadeOut_finalize(lua_State* tolua_S) int lua_register_cocos2dx_FadeOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.FadeOut"); - tolua_cclass(tolua_S,"FadeOut","cc.FadeOut","cc.FadeTo",nullptr); + tolua_cclass(tolua_S,"FadeOut","cc.FadeOut","cc.FadeTo",nullptr); tolua_beginmodule(tolua_S,"FadeOut"); tolua_function(tolua_S,"setReverseAction",lua_cocos2dx_FadeOut_setReverseAction); @@ -21915,7 +21915,7 @@ static int lua_cocos2dx_TintTo_finalize(lua_State* tolua_S) int lua_register_cocos2dx_TintTo(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TintTo"); - tolua_cclass(tolua_S,"TintTo","cc.TintTo","cc.ActionInterval",nullptr); + tolua_cclass(tolua_S,"TintTo","cc.TintTo","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"TintTo"); tolua_function(tolua_S,"create", lua_cocos2dx_TintTo_create); @@ -21974,7 +21974,7 @@ static int lua_cocos2dx_TintBy_finalize(lua_State* tolua_S) int lua_register_cocos2dx_TintBy(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TintBy"); - tolua_cclass(tolua_S,"TintBy","cc.TintBy","cc.ActionInterval",nullptr); + tolua_cclass(tolua_S,"TintBy","cc.TintBy","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"TintBy"); tolua_function(tolua_S,"create", lua_cocos2dx_TintBy_create); @@ -22027,7 +22027,7 @@ static int lua_cocos2dx_DelayTime_finalize(lua_State* tolua_S) int lua_register_cocos2dx_DelayTime(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.DelayTime"); - tolua_cclass(tolua_S,"DelayTime","cc.DelayTime","cc.ActionInterval",nullptr); + tolua_cclass(tolua_S,"DelayTime","cc.DelayTime","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"DelayTime"); tolua_function(tolua_S,"create", lua_cocos2dx_DelayTime_create); @@ -22173,7 +22173,7 @@ static int lua_cocos2dx_Animate_finalize(lua_State* tolua_S) int lua_register_cocos2dx_Animate(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Animate"); - tolua_cclass(tolua_S,"Animate","cc.Animate","cc.ActionInterval",nullptr); + tolua_cclass(tolua_S,"Animate","cc.Animate","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"Animate"); tolua_function(tolua_S,"getAnimation",lua_cocos2dx_Animate_getAnimation); @@ -22323,7 +22323,7 @@ static int lua_cocos2dx_TargetedAction_finalize(lua_State* tolua_S) int lua_register_cocos2dx_TargetedAction(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TargetedAction"); - tolua_cclass(tolua_S,"TargetedAction","cc.TargetedAction","cc.ActionInterval",nullptr); + tolua_cclass(tolua_S,"TargetedAction","cc.TargetedAction","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"TargetedAction"); tolua_function(tolua_S,"getForcedTarget",lua_cocos2dx_TargetedAction_getForcedTarget); @@ -22664,7 +22664,7 @@ static int lua_cocos2dx_ActionCamera_finalize(lua_State* tolua_S) int lua_register_cocos2dx_ActionCamera(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ActionCamera"); - tolua_cclass(tolua_S,"ActionCamera","cc.ActionCamera","cc.ActionInterval",nullptr); + tolua_cclass(tolua_S,"ActionCamera","cc.ActionCamera","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"ActionCamera"); tolua_function(tolua_S,"new",lua_cocos2dx_ActionCamera_constructor); @@ -22735,7 +22735,7 @@ static int lua_cocos2dx_OrbitCamera_finalize(lua_State* tolua_S) int lua_register_cocos2dx_OrbitCamera(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.OrbitCamera"); - tolua_cclass(tolua_S,"OrbitCamera","cc.OrbitCamera","cc.ActionCamera",nullptr); + tolua_cclass(tolua_S,"OrbitCamera","cc.OrbitCamera","cc.ActionCamera",nullptr); tolua_beginmodule(tolua_S,"OrbitCamera"); tolua_function(tolua_S,"create", lua_cocos2dx_OrbitCamera_create); @@ -23350,7 +23350,7 @@ static int lua_cocos2dx_ActionManager_finalize(lua_State* tolua_S) int lua_register_cocos2dx_ActionManager(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ActionManager"); - tolua_cclass(tolua_S,"ActionManager","cc.ActionManager","cc.Ref",nullptr); + tolua_cclass(tolua_S,"ActionManager","cc.ActionManager","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"ActionManager"); tolua_function(tolua_S,"new",lua_cocos2dx_ActionManager_constructor); @@ -23426,7 +23426,7 @@ static int lua_cocos2dx_ActionEase_finalize(lua_State* tolua_S) int lua_register_cocos2dx_ActionEase(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ActionEase"); - tolua_cclass(tolua_S,"ActionEase","cc.ActionEase","cc.ActionInterval",nullptr); + tolua_cclass(tolua_S,"ActionEase","cc.ActionEase","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"ActionEase"); tolua_function(tolua_S,"getInnerAction",lua_cocos2dx_ActionEase_getInnerAction); @@ -23536,7 +23536,7 @@ static int lua_cocos2dx_EaseRateAction_finalize(lua_State* tolua_S) int lua_register_cocos2dx_EaseRateAction(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseRateAction"); - tolua_cclass(tolua_S,"EaseRateAction","cc.EaseRateAction","cc.ActionEase",nullptr); + tolua_cclass(tolua_S,"EaseRateAction","cc.EaseRateAction","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseRateAction"); tolua_function(tolua_S,"setRate",lua_cocos2dx_EaseRateAction_setRate); @@ -23592,7 +23592,7 @@ static int lua_cocos2dx_EaseIn_finalize(lua_State* tolua_S) int lua_register_cocos2dx_EaseIn(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseIn"); - tolua_cclass(tolua_S,"EaseIn","cc.EaseIn","cc.EaseRateAction",nullptr); + tolua_cclass(tolua_S,"EaseIn","cc.EaseIn","cc.EaseRateAction",nullptr); tolua_beginmodule(tolua_S,"EaseIn"); tolua_function(tolua_S,"create", lua_cocos2dx_EaseIn_create); @@ -23647,7 +23647,7 @@ static int lua_cocos2dx_EaseOut_finalize(lua_State* tolua_S) int lua_register_cocos2dx_EaseOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseOut"); - tolua_cclass(tolua_S,"EaseOut","cc.EaseOut","cc.EaseRateAction",nullptr); + tolua_cclass(tolua_S,"EaseOut","cc.EaseOut","cc.EaseRateAction",nullptr); tolua_beginmodule(tolua_S,"EaseOut"); tolua_function(tolua_S,"create", lua_cocos2dx_EaseOut_create); @@ -23702,7 +23702,7 @@ static int lua_cocos2dx_EaseInOut_finalize(lua_State* tolua_S) int lua_register_cocos2dx_EaseInOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseInOut"); - tolua_cclass(tolua_S,"EaseInOut","cc.EaseInOut","cc.EaseRateAction",nullptr); + tolua_cclass(tolua_S,"EaseInOut","cc.EaseInOut","cc.EaseRateAction",nullptr); tolua_beginmodule(tolua_S,"EaseInOut"); tolua_function(tolua_S,"create", lua_cocos2dx_EaseInOut_create); @@ -23755,7 +23755,7 @@ static int lua_cocos2dx_EaseExponentialIn_finalize(lua_State* tolua_S) int lua_register_cocos2dx_EaseExponentialIn(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseExponentialIn"); - tolua_cclass(tolua_S,"EaseExponentialIn","cc.EaseExponentialIn","cc.ActionEase",nullptr); + tolua_cclass(tolua_S,"EaseExponentialIn","cc.EaseExponentialIn","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseExponentialIn"); tolua_function(tolua_S,"create", lua_cocos2dx_EaseExponentialIn_create); @@ -23808,7 +23808,7 @@ static int lua_cocos2dx_EaseExponentialOut_finalize(lua_State* tolua_S) int lua_register_cocos2dx_EaseExponentialOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseExponentialOut"); - tolua_cclass(tolua_S,"EaseExponentialOut","cc.EaseExponentialOut","cc.ActionEase",nullptr); + tolua_cclass(tolua_S,"EaseExponentialOut","cc.EaseExponentialOut","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseExponentialOut"); tolua_function(tolua_S,"create", lua_cocos2dx_EaseExponentialOut_create); @@ -23861,7 +23861,7 @@ static int lua_cocos2dx_EaseExponentialInOut_finalize(lua_State* tolua_S) int lua_register_cocos2dx_EaseExponentialInOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseExponentialInOut"); - tolua_cclass(tolua_S,"EaseExponentialInOut","cc.EaseExponentialInOut","cc.ActionEase",nullptr); + tolua_cclass(tolua_S,"EaseExponentialInOut","cc.EaseExponentialInOut","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseExponentialInOut"); tolua_function(tolua_S,"create", lua_cocos2dx_EaseExponentialInOut_create); @@ -23914,7 +23914,7 @@ static int lua_cocos2dx_EaseSineIn_finalize(lua_State* tolua_S) int lua_register_cocos2dx_EaseSineIn(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseSineIn"); - tolua_cclass(tolua_S,"EaseSineIn","cc.EaseSineIn","cc.ActionEase",nullptr); + tolua_cclass(tolua_S,"EaseSineIn","cc.EaseSineIn","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseSineIn"); tolua_function(tolua_S,"create", lua_cocos2dx_EaseSineIn_create); @@ -23967,7 +23967,7 @@ static int lua_cocos2dx_EaseSineOut_finalize(lua_State* tolua_S) int lua_register_cocos2dx_EaseSineOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseSineOut"); - tolua_cclass(tolua_S,"EaseSineOut","cc.EaseSineOut","cc.ActionEase",nullptr); + tolua_cclass(tolua_S,"EaseSineOut","cc.EaseSineOut","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseSineOut"); tolua_function(tolua_S,"create", lua_cocos2dx_EaseSineOut_create); @@ -24020,7 +24020,7 @@ static int lua_cocos2dx_EaseSineInOut_finalize(lua_State* tolua_S) int lua_register_cocos2dx_EaseSineInOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseSineInOut"); - tolua_cclass(tolua_S,"EaseSineInOut","cc.EaseSineInOut","cc.ActionEase",nullptr); + tolua_cclass(tolua_S,"EaseSineInOut","cc.EaseSineInOut","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseSineInOut"); tolua_function(tolua_S,"create", lua_cocos2dx_EaseSineInOut_create); @@ -24130,7 +24130,7 @@ static int lua_cocos2dx_EaseElastic_finalize(lua_State* tolua_S) int lua_register_cocos2dx_EaseElastic(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseElastic"); - tolua_cclass(tolua_S,"EaseElastic","cc.EaseElastic","cc.ActionEase",nullptr); + tolua_cclass(tolua_S,"EaseElastic","cc.EaseElastic","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseElastic"); tolua_function(tolua_S,"setPeriod",lua_cocos2dx_EaseElastic_setPeriod); @@ -24202,7 +24202,7 @@ static int lua_cocos2dx_EaseElasticIn_finalize(lua_State* tolua_S) int lua_register_cocos2dx_EaseElasticIn(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseElasticIn"); - tolua_cclass(tolua_S,"EaseElasticIn","cc.EaseElasticIn","cc.EaseElastic",nullptr); + tolua_cclass(tolua_S,"EaseElasticIn","cc.EaseElasticIn","cc.EaseElastic",nullptr); tolua_beginmodule(tolua_S,"EaseElasticIn"); tolua_function(tolua_S,"create", lua_cocos2dx_EaseElasticIn_create); @@ -24273,7 +24273,7 @@ static int lua_cocos2dx_EaseElasticOut_finalize(lua_State* tolua_S) int lua_register_cocos2dx_EaseElasticOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseElasticOut"); - tolua_cclass(tolua_S,"EaseElasticOut","cc.EaseElasticOut","cc.EaseElastic",nullptr); + tolua_cclass(tolua_S,"EaseElasticOut","cc.EaseElasticOut","cc.EaseElastic",nullptr); tolua_beginmodule(tolua_S,"EaseElasticOut"); tolua_function(tolua_S,"create", lua_cocos2dx_EaseElasticOut_create); @@ -24344,7 +24344,7 @@ static int lua_cocos2dx_EaseElasticInOut_finalize(lua_State* tolua_S) int lua_register_cocos2dx_EaseElasticInOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseElasticInOut"); - tolua_cclass(tolua_S,"EaseElasticInOut","cc.EaseElasticInOut","cc.EaseElastic",nullptr); + tolua_cclass(tolua_S,"EaseElasticInOut","cc.EaseElasticInOut","cc.EaseElastic",nullptr); tolua_beginmodule(tolua_S,"EaseElasticInOut"); tolua_function(tolua_S,"create", lua_cocos2dx_EaseElasticInOut_create); @@ -24364,7 +24364,7 @@ static int lua_cocos2dx_EaseBounce_finalize(lua_State* tolua_S) int lua_register_cocos2dx_EaseBounce(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseBounce"); - tolua_cclass(tolua_S,"EaseBounce","cc.EaseBounce","cc.ActionEase",nullptr); + tolua_cclass(tolua_S,"EaseBounce","cc.EaseBounce","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseBounce"); tolua_endmodule(tolua_S); @@ -24416,7 +24416,7 @@ static int lua_cocos2dx_EaseBounceIn_finalize(lua_State* tolua_S) int lua_register_cocos2dx_EaseBounceIn(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseBounceIn"); - tolua_cclass(tolua_S,"EaseBounceIn","cc.EaseBounceIn","cc.EaseBounce",nullptr); + tolua_cclass(tolua_S,"EaseBounceIn","cc.EaseBounceIn","cc.EaseBounce",nullptr); tolua_beginmodule(tolua_S,"EaseBounceIn"); tolua_function(tolua_S,"create", lua_cocos2dx_EaseBounceIn_create); @@ -24469,7 +24469,7 @@ static int lua_cocos2dx_EaseBounceOut_finalize(lua_State* tolua_S) int lua_register_cocos2dx_EaseBounceOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseBounceOut"); - tolua_cclass(tolua_S,"EaseBounceOut","cc.EaseBounceOut","cc.EaseBounce",nullptr); + tolua_cclass(tolua_S,"EaseBounceOut","cc.EaseBounceOut","cc.EaseBounce",nullptr); tolua_beginmodule(tolua_S,"EaseBounceOut"); tolua_function(tolua_S,"create", lua_cocos2dx_EaseBounceOut_create); @@ -24522,7 +24522,7 @@ static int lua_cocos2dx_EaseBounceInOut_finalize(lua_State* tolua_S) int lua_register_cocos2dx_EaseBounceInOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseBounceInOut"); - tolua_cclass(tolua_S,"EaseBounceInOut","cc.EaseBounceInOut","cc.EaseBounce",nullptr); + tolua_cclass(tolua_S,"EaseBounceInOut","cc.EaseBounceInOut","cc.EaseBounce",nullptr); tolua_beginmodule(tolua_S,"EaseBounceInOut"); tolua_function(tolua_S,"create", lua_cocos2dx_EaseBounceInOut_create); @@ -24575,7 +24575,7 @@ static int lua_cocos2dx_EaseBackIn_finalize(lua_State* tolua_S) int lua_register_cocos2dx_EaseBackIn(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseBackIn"); - tolua_cclass(tolua_S,"EaseBackIn","cc.EaseBackIn","cc.ActionEase",nullptr); + tolua_cclass(tolua_S,"EaseBackIn","cc.EaseBackIn","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseBackIn"); tolua_function(tolua_S,"create", lua_cocos2dx_EaseBackIn_create); @@ -24628,7 +24628,7 @@ static int lua_cocos2dx_EaseBackOut_finalize(lua_State* tolua_S) int lua_register_cocos2dx_EaseBackOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseBackOut"); - tolua_cclass(tolua_S,"EaseBackOut","cc.EaseBackOut","cc.ActionEase",nullptr); + tolua_cclass(tolua_S,"EaseBackOut","cc.EaseBackOut","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseBackOut"); tolua_function(tolua_S,"create", lua_cocos2dx_EaseBackOut_create); @@ -24681,7 +24681,7 @@ static int lua_cocos2dx_EaseBackInOut_finalize(lua_State* tolua_S) int lua_register_cocos2dx_EaseBackInOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseBackInOut"); - tolua_cclass(tolua_S,"EaseBackInOut","cc.EaseBackInOut","cc.ActionEase",nullptr); + tolua_cclass(tolua_S,"EaseBackInOut","cc.EaseBackInOut","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseBackInOut"); tolua_function(tolua_S,"create", lua_cocos2dx_EaseBackInOut_create); @@ -24789,7 +24789,7 @@ static int lua_cocos2dx_EaseBezierAction_finalize(lua_State* tolua_S) int lua_register_cocos2dx_EaseBezierAction(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseBezierAction"); - tolua_cclass(tolua_S,"EaseBezierAction","cc.EaseBezierAction","cc.ActionEase",nullptr); + tolua_cclass(tolua_S,"EaseBezierAction","cc.EaseBezierAction","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseBezierAction"); tolua_function(tolua_S,"setBezierParamer",lua_cocos2dx_EaseBezierAction_setBezierParamer); @@ -24843,7 +24843,7 @@ static int lua_cocos2dx_EaseQuadraticActionIn_finalize(lua_State* tolua_S) int lua_register_cocos2dx_EaseQuadraticActionIn(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseQuadraticActionIn"); - tolua_cclass(tolua_S,"EaseQuadraticActionIn","cc.EaseQuadraticActionIn","cc.ActionEase",nullptr); + tolua_cclass(tolua_S,"EaseQuadraticActionIn","cc.EaseQuadraticActionIn","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseQuadraticActionIn"); tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuadraticActionIn_create); @@ -24896,7 +24896,7 @@ static int lua_cocos2dx_EaseQuadraticActionOut_finalize(lua_State* tolua_S) int lua_register_cocos2dx_EaseQuadraticActionOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseQuadraticActionOut"); - tolua_cclass(tolua_S,"EaseQuadraticActionOut","cc.EaseQuadraticActionOut","cc.ActionEase",nullptr); + tolua_cclass(tolua_S,"EaseQuadraticActionOut","cc.EaseQuadraticActionOut","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseQuadraticActionOut"); tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuadraticActionOut_create); @@ -24949,7 +24949,7 @@ static int lua_cocos2dx_EaseQuadraticActionInOut_finalize(lua_State* tolua_S) int lua_register_cocos2dx_EaseQuadraticActionInOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseQuadraticActionInOut"); - tolua_cclass(tolua_S,"EaseQuadraticActionInOut","cc.EaseQuadraticActionInOut","cc.ActionEase",nullptr); + tolua_cclass(tolua_S,"EaseQuadraticActionInOut","cc.EaseQuadraticActionInOut","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseQuadraticActionInOut"); tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuadraticActionInOut_create); @@ -25002,7 +25002,7 @@ static int lua_cocos2dx_EaseQuarticActionIn_finalize(lua_State* tolua_S) int lua_register_cocos2dx_EaseQuarticActionIn(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseQuarticActionIn"); - tolua_cclass(tolua_S,"EaseQuarticActionIn","cc.EaseQuarticActionIn","cc.ActionEase",nullptr); + tolua_cclass(tolua_S,"EaseQuarticActionIn","cc.EaseQuarticActionIn","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseQuarticActionIn"); tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuarticActionIn_create); @@ -25055,7 +25055,7 @@ static int lua_cocos2dx_EaseQuarticActionOut_finalize(lua_State* tolua_S) int lua_register_cocos2dx_EaseQuarticActionOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseQuarticActionOut"); - tolua_cclass(tolua_S,"EaseQuarticActionOut","cc.EaseQuarticActionOut","cc.ActionEase",nullptr); + tolua_cclass(tolua_S,"EaseQuarticActionOut","cc.EaseQuarticActionOut","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseQuarticActionOut"); tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuarticActionOut_create); @@ -25108,7 +25108,7 @@ static int lua_cocos2dx_EaseQuarticActionInOut_finalize(lua_State* tolua_S) int lua_register_cocos2dx_EaseQuarticActionInOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseQuarticActionInOut"); - tolua_cclass(tolua_S,"EaseQuarticActionInOut","cc.EaseQuarticActionInOut","cc.ActionEase",nullptr); + tolua_cclass(tolua_S,"EaseQuarticActionInOut","cc.EaseQuarticActionInOut","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseQuarticActionInOut"); tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuarticActionInOut_create); @@ -25161,7 +25161,7 @@ static int lua_cocos2dx_EaseQuinticActionIn_finalize(lua_State* tolua_S) int lua_register_cocos2dx_EaseQuinticActionIn(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseQuinticActionIn"); - tolua_cclass(tolua_S,"EaseQuinticActionIn","cc.EaseQuinticActionIn","cc.ActionEase",nullptr); + tolua_cclass(tolua_S,"EaseQuinticActionIn","cc.EaseQuinticActionIn","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseQuinticActionIn"); tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuinticActionIn_create); @@ -25214,7 +25214,7 @@ static int lua_cocos2dx_EaseQuinticActionOut_finalize(lua_State* tolua_S) int lua_register_cocos2dx_EaseQuinticActionOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseQuinticActionOut"); - tolua_cclass(tolua_S,"EaseQuinticActionOut","cc.EaseQuinticActionOut","cc.ActionEase",nullptr); + tolua_cclass(tolua_S,"EaseQuinticActionOut","cc.EaseQuinticActionOut","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseQuinticActionOut"); tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuinticActionOut_create); @@ -25267,7 +25267,7 @@ static int lua_cocos2dx_EaseQuinticActionInOut_finalize(lua_State* tolua_S) int lua_register_cocos2dx_EaseQuinticActionInOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseQuinticActionInOut"); - tolua_cclass(tolua_S,"EaseQuinticActionInOut","cc.EaseQuinticActionInOut","cc.ActionEase",nullptr); + tolua_cclass(tolua_S,"EaseQuinticActionInOut","cc.EaseQuinticActionInOut","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseQuinticActionInOut"); tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuinticActionInOut_create); @@ -25320,7 +25320,7 @@ static int lua_cocos2dx_EaseCircleActionIn_finalize(lua_State* tolua_S) int lua_register_cocos2dx_EaseCircleActionIn(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseCircleActionIn"); - tolua_cclass(tolua_S,"EaseCircleActionIn","cc.EaseCircleActionIn","cc.ActionEase",nullptr); + tolua_cclass(tolua_S,"EaseCircleActionIn","cc.EaseCircleActionIn","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseCircleActionIn"); tolua_function(tolua_S,"create", lua_cocos2dx_EaseCircleActionIn_create); @@ -25373,7 +25373,7 @@ static int lua_cocos2dx_EaseCircleActionOut_finalize(lua_State* tolua_S) int lua_register_cocos2dx_EaseCircleActionOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseCircleActionOut"); - tolua_cclass(tolua_S,"EaseCircleActionOut","cc.EaseCircleActionOut","cc.ActionEase",nullptr); + tolua_cclass(tolua_S,"EaseCircleActionOut","cc.EaseCircleActionOut","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseCircleActionOut"); tolua_function(tolua_S,"create", lua_cocos2dx_EaseCircleActionOut_create); @@ -25426,7 +25426,7 @@ static int lua_cocos2dx_EaseCircleActionInOut_finalize(lua_State* tolua_S) int lua_register_cocos2dx_EaseCircleActionInOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseCircleActionInOut"); - tolua_cclass(tolua_S,"EaseCircleActionInOut","cc.EaseCircleActionInOut","cc.ActionEase",nullptr); + tolua_cclass(tolua_S,"EaseCircleActionInOut","cc.EaseCircleActionInOut","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseCircleActionInOut"); tolua_function(tolua_S,"create", lua_cocos2dx_EaseCircleActionInOut_create); @@ -25479,7 +25479,7 @@ static int lua_cocos2dx_EaseCubicActionIn_finalize(lua_State* tolua_S) int lua_register_cocos2dx_EaseCubicActionIn(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseCubicActionIn"); - tolua_cclass(tolua_S,"EaseCubicActionIn","cc.EaseCubicActionIn","cc.ActionEase",nullptr); + tolua_cclass(tolua_S,"EaseCubicActionIn","cc.EaseCubicActionIn","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseCubicActionIn"); tolua_function(tolua_S,"create", lua_cocos2dx_EaseCubicActionIn_create); @@ -25532,7 +25532,7 @@ static int lua_cocos2dx_EaseCubicActionOut_finalize(lua_State* tolua_S) int lua_register_cocos2dx_EaseCubicActionOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseCubicActionOut"); - tolua_cclass(tolua_S,"EaseCubicActionOut","cc.EaseCubicActionOut","cc.ActionEase",nullptr); + tolua_cclass(tolua_S,"EaseCubicActionOut","cc.EaseCubicActionOut","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseCubicActionOut"); tolua_function(tolua_S,"create", lua_cocos2dx_EaseCubicActionOut_create); @@ -25585,7 +25585,7 @@ static int lua_cocos2dx_EaseCubicActionInOut_finalize(lua_State* tolua_S) int lua_register_cocos2dx_EaseCubicActionInOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseCubicActionInOut"); - tolua_cclass(tolua_S,"EaseCubicActionInOut","cc.EaseCubicActionInOut","cc.ActionEase",nullptr); + tolua_cclass(tolua_S,"EaseCubicActionInOut","cc.EaseCubicActionInOut","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseCubicActionInOut"); tolua_function(tolua_S,"create", lua_cocos2dx_EaseCubicActionInOut_create); @@ -25605,7 +25605,7 @@ static int lua_cocos2dx_ActionInstant_finalize(lua_State* tolua_S) int lua_register_cocos2dx_ActionInstant(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ActionInstant"); - tolua_cclass(tolua_S,"ActionInstant","cc.ActionInstant","cc.FiniteTimeAction",nullptr); + tolua_cclass(tolua_S,"ActionInstant","cc.ActionInstant","cc.FiniteTimeAction",nullptr); tolua_beginmodule(tolua_S,"ActionInstant"); tolua_endmodule(tolua_S); @@ -25655,7 +25655,7 @@ static int lua_cocos2dx_Show_finalize(lua_State* tolua_S) int lua_register_cocos2dx_Show(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Show"); - tolua_cclass(tolua_S,"Show","cc.Show","cc.ActionInstant",nullptr); + tolua_cclass(tolua_S,"Show","cc.Show","cc.ActionInstant",nullptr); tolua_beginmodule(tolua_S,"Show"); tolua_function(tolua_S,"create", lua_cocos2dx_Show_create); @@ -25706,7 +25706,7 @@ static int lua_cocos2dx_Hide_finalize(lua_State* tolua_S) int lua_register_cocos2dx_Hide(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Hide"); - tolua_cclass(tolua_S,"Hide","cc.Hide","cc.ActionInstant",nullptr); + tolua_cclass(tolua_S,"Hide","cc.Hide","cc.ActionInstant",nullptr); tolua_beginmodule(tolua_S,"Hide"); tolua_function(tolua_S,"create", lua_cocos2dx_Hide_create); @@ -25757,7 +25757,7 @@ static int lua_cocos2dx_ToggleVisibility_finalize(lua_State* tolua_S) int lua_register_cocos2dx_ToggleVisibility(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ToggleVisibility"); - tolua_cclass(tolua_S,"ToggleVisibility","cc.ToggleVisibility","cc.ActionInstant",nullptr); + tolua_cclass(tolua_S,"ToggleVisibility","cc.ToggleVisibility","cc.ActionInstant",nullptr); tolua_beginmodule(tolua_S,"ToggleVisibility"); tolua_function(tolua_S,"create", lua_cocos2dx_ToggleVisibility_create); @@ -25818,7 +25818,7 @@ static int lua_cocos2dx_RemoveSelf_finalize(lua_State* tolua_S) int lua_register_cocos2dx_RemoveSelf(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.RemoveSelf"); - tolua_cclass(tolua_S,"RemoveSelf","cc.RemoveSelf","cc.ActionInstant",nullptr); + tolua_cclass(tolua_S,"RemoveSelf","cc.RemoveSelf","cc.ActionInstant",nullptr); tolua_beginmodule(tolua_S,"RemoveSelf"); tolua_function(tolua_S,"create", lua_cocos2dx_RemoveSelf_create); @@ -25871,7 +25871,7 @@ static int lua_cocos2dx_FlipX_finalize(lua_State* tolua_S) int lua_register_cocos2dx_FlipX(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.FlipX"); - tolua_cclass(tolua_S,"FlipX","cc.FlipX","cc.ActionInstant",nullptr); + tolua_cclass(tolua_S,"FlipX","cc.FlipX","cc.ActionInstant",nullptr); tolua_beginmodule(tolua_S,"FlipX"); tolua_function(tolua_S,"create", lua_cocos2dx_FlipX_create); @@ -25924,7 +25924,7 @@ static int lua_cocos2dx_FlipY_finalize(lua_State* tolua_S) int lua_register_cocos2dx_FlipY(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.FlipY"); - tolua_cclass(tolua_S,"FlipY","cc.FlipY","cc.ActionInstant",nullptr); + tolua_cclass(tolua_S,"FlipY","cc.FlipY","cc.ActionInstant",nullptr); tolua_beginmodule(tolua_S,"FlipY"); tolua_function(tolua_S,"create", lua_cocos2dx_FlipY_create); @@ -25977,7 +25977,7 @@ static int lua_cocos2dx_Place_finalize(lua_State* tolua_S) int lua_register_cocos2dx_Place(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Place"); - tolua_cclass(tolua_S,"Place","cc.Place","cc.ActionInstant",nullptr); + tolua_cclass(tolua_S,"Place","cc.Place","cc.ActionInstant",nullptr); tolua_beginmodule(tolua_S,"Place"); tolua_function(tolua_S,"create", lua_cocos2dx_Place_create); @@ -26130,7 +26130,7 @@ static int lua_cocos2dx_CallFunc_finalize(lua_State* tolua_S) int lua_register_cocos2dx_CallFunc(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.CallFunc"); - tolua_cclass(tolua_S,"CallFunc","cc.CallFunc","cc.ActionInstant",nullptr); + tolua_cclass(tolua_S,"CallFunc","cc.CallFunc","cc.ActionInstant",nullptr); tolua_beginmodule(tolua_S,"CallFunc"); tolua_function(tolua_S,"execute",lua_cocos2dx_CallFunc_execute); @@ -26196,7 +26196,7 @@ static int lua_cocos2dx_GridAction_finalize(lua_State* tolua_S) int lua_register_cocos2dx_GridAction(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.GridAction"); - tolua_cclass(tolua_S,"GridAction","cc.GridAction","cc.ActionInterval",nullptr); + tolua_cclass(tolua_S,"GridAction","cc.GridAction","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"GridAction"); tolua_function(tolua_S,"getGrid",lua_cocos2dx_GridAction_getGrid); @@ -26260,7 +26260,7 @@ static int lua_cocos2dx_Grid3DAction_finalize(lua_State* tolua_S) int lua_register_cocos2dx_Grid3DAction(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Grid3DAction"); - tolua_cclass(tolua_S,"Grid3DAction","cc.Grid3DAction","cc.GridAction",nullptr); + tolua_cclass(tolua_S,"Grid3DAction","cc.Grid3DAction","cc.GridAction",nullptr); tolua_beginmodule(tolua_S,"Grid3DAction"); tolua_function(tolua_S,"getGrid",lua_cocos2dx_Grid3DAction_getGrid); @@ -26324,7 +26324,7 @@ static int lua_cocos2dx_TiledGrid3DAction_finalize(lua_State* tolua_S) int lua_register_cocos2dx_TiledGrid3DAction(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TiledGrid3DAction"); - tolua_cclass(tolua_S,"TiledGrid3DAction","cc.TiledGrid3DAction","cc.GridAction",nullptr); + tolua_cclass(tolua_S,"TiledGrid3DAction","cc.TiledGrid3DAction","cc.GridAction",nullptr); tolua_beginmodule(tolua_S,"TiledGrid3DAction"); tolua_function(tolua_S,"getGrid",lua_cocos2dx_TiledGrid3DAction_getGrid); @@ -26375,7 +26375,7 @@ static int lua_cocos2dx_StopGrid_finalize(lua_State* tolua_S) int lua_register_cocos2dx_StopGrid(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.StopGrid"); - tolua_cclass(tolua_S,"StopGrid","cc.StopGrid","cc.ActionInstant",nullptr); + tolua_cclass(tolua_S,"StopGrid","cc.StopGrid","cc.ActionInstant",nullptr); tolua_beginmodule(tolua_S,"StopGrid"); tolua_function(tolua_S,"create", lua_cocos2dx_StopGrid_create); @@ -26428,7 +26428,7 @@ static int lua_cocos2dx_ReuseGrid_finalize(lua_State* tolua_S) int lua_register_cocos2dx_ReuseGrid(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ReuseGrid"); - tolua_cclass(tolua_S,"ReuseGrid","cc.ReuseGrid","cc.ActionInstant",nullptr); + tolua_cclass(tolua_S,"ReuseGrid","cc.ReuseGrid","cc.ActionInstant",nullptr); tolua_beginmodule(tolua_S,"ReuseGrid"); tolua_function(tolua_S,"create", lua_cocos2dx_ReuseGrid_create); @@ -26667,7 +26667,7 @@ static int lua_cocos2dx_Waves3D_finalize(lua_State* tolua_S) int lua_register_cocos2dx_Waves3D(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Waves3D"); - tolua_cclass(tolua_S,"Waves3D","cc.Waves3D","cc.Grid3DAction",nullptr); + tolua_cclass(tolua_S,"Waves3D","cc.Waves3D","cc.Grid3DAction",nullptr); tolua_beginmodule(tolua_S,"Waves3D"); tolua_function(tolua_S,"getAmplitudeRate",lua_cocos2dx_Waves3D_getAmplitudeRate); @@ -26724,7 +26724,7 @@ static int lua_cocos2dx_FlipX3D_finalize(lua_State* tolua_S) int lua_register_cocos2dx_FlipX3D(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.FlipX3D"); - tolua_cclass(tolua_S,"FlipX3D","cc.FlipX3D","cc.Grid3DAction",nullptr); + tolua_cclass(tolua_S,"FlipX3D","cc.FlipX3D","cc.Grid3DAction",nullptr); tolua_beginmodule(tolua_S,"FlipX3D"); tolua_function(tolua_S,"create", lua_cocos2dx_FlipX3D_create); @@ -26777,7 +26777,7 @@ static int lua_cocos2dx_FlipY3D_finalize(lua_State* tolua_S) int lua_register_cocos2dx_FlipY3D(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.FlipY3D"); - tolua_cclass(tolua_S,"FlipY3D","cc.FlipY3D","cc.FlipX3D",nullptr); + tolua_cclass(tolua_S,"FlipY3D","cc.FlipY3D","cc.FlipX3D",nullptr); tolua_beginmodule(tolua_S,"FlipY3D"); tolua_function(tolua_S,"create", lua_cocos2dx_FlipY3D_create); @@ -27062,7 +27062,7 @@ static int lua_cocos2dx_Lens3D_finalize(lua_State* tolua_S) int lua_register_cocos2dx_Lens3D(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Lens3D"); - tolua_cclass(tolua_S,"Lens3D","cc.Lens3D","cc.Grid3DAction",nullptr); + tolua_cclass(tolua_S,"Lens3D","cc.Lens3D","cc.Grid3DAction",nullptr); tolua_beginmodule(tolua_S,"Lens3D"); tolua_function(tolua_S,"setPosition",lua_cocos2dx_Lens3D_setPosition); @@ -27400,7 +27400,7 @@ static int lua_cocos2dx_Ripple3D_finalize(lua_State* tolua_S) int lua_register_cocos2dx_Ripple3D(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Ripple3D"); - tolua_cclass(tolua_S,"Ripple3D","cc.Ripple3D","cc.Grid3DAction",nullptr); + tolua_cclass(tolua_S,"Ripple3D","cc.Ripple3D","cc.Grid3DAction",nullptr); tolua_beginmodule(tolua_S,"Ripple3D"); tolua_function(tolua_S,"setAmplitudeRate",lua_cocos2dx_Ripple3D_setAmplitudeRate); @@ -27465,7 +27465,7 @@ static int lua_cocos2dx_Shaky3D_finalize(lua_State* tolua_S) int lua_register_cocos2dx_Shaky3D(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Shaky3D"); - tolua_cclass(tolua_S,"Shaky3D","cc.Shaky3D","cc.Grid3DAction",nullptr); + tolua_cclass(tolua_S,"Shaky3D","cc.Shaky3D","cc.Grid3DAction",nullptr); tolua_beginmodule(tolua_S,"Shaky3D"); tolua_function(tolua_S,"create", lua_cocos2dx_Shaky3D_create); @@ -27704,7 +27704,7 @@ static int lua_cocos2dx_Liquid_finalize(lua_State* tolua_S) int lua_register_cocos2dx_Liquid(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Liquid"); - tolua_cclass(tolua_S,"Liquid","cc.Liquid","cc.Grid3DAction",nullptr); + tolua_cclass(tolua_S,"Liquid","cc.Liquid","cc.Grid3DAction",nullptr); tolua_beginmodule(tolua_S,"Liquid"); tolua_function(tolua_S,"getAmplitudeRate",lua_cocos2dx_Liquid_getAmplitudeRate); @@ -27951,7 +27951,7 @@ static int lua_cocos2dx_Waves_finalize(lua_State* tolua_S) int lua_register_cocos2dx_Waves(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Waves"); - tolua_cclass(tolua_S,"Waves","cc.Waves","cc.Grid3DAction",nullptr); + tolua_cclass(tolua_S,"Waves","cc.Waves","cc.Grid3DAction",nullptr); tolua_beginmodule(tolua_S,"Waves"); tolua_function(tolua_S,"getAmplitudeRate",lua_cocos2dx_Waves_getAmplitudeRate); @@ -28286,7 +28286,7 @@ static int lua_cocos2dx_Twirl_finalize(lua_State* tolua_S) int lua_register_cocos2dx_Twirl(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Twirl"); - tolua_cclass(tolua_S,"Twirl","cc.Twirl","cc.Grid3DAction",nullptr); + tolua_cclass(tolua_S,"Twirl","cc.Twirl","cc.Grid3DAction",nullptr); tolua_beginmodule(tolua_S,"Twirl"); tolua_function(tolua_S,"setAmplitudeRate",lua_cocos2dx_Twirl_setAmplitudeRate); @@ -28347,7 +28347,7 @@ static int lua_cocos2dx_PageTurn3D_finalize(lua_State* tolua_S) int lua_register_cocos2dx_PageTurn3D(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.PageTurn3D"); - tolua_cclass(tolua_S,"PageTurn3D","cc.PageTurn3D","cc.Grid3DAction",nullptr); + tolua_cclass(tolua_S,"PageTurn3D","cc.PageTurn3D","cc.Grid3DAction",nullptr); tolua_beginmodule(tolua_S,"PageTurn3D"); tolua_function(tolua_S,"create", lua_cocos2dx_PageTurn3D_create); @@ -28402,7 +28402,7 @@ static int lua_cocos2dx_ProgressTo_finalize(lua_State* tolua_S) int lua_register_cocos2dx_ProgressTo(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ProgressTo"); - tolua_cclass(tolua_S,"ProgressTo","cc.ProgressTo","cc.ActionInterval",nullptr); + tolua_cclass(tolua_S,"ProgressTo","cc.ProgressTo","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"ProgressTo"); tolua_function(tolua_S,"create", lua_cocos2dx_ProgressTo_create); @@ -28459,7 +28459,7 @@ static int lua_cocos2dx_ProgressFromTo_finalize(lua_State* tolua_S) int lua_register_cocos2dx_ProgressFromTo(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ProgressFromTo"); - tolua_cclass(tolua_S,"ProgressFromTo","cc.ProgressFromTo","cc.ActionInterval",nullptr); + tolua_cclass(tolua_S,"ProgressFromTo","cc.ProgressFromTo","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"ProgressFromTo"); tolua_function(tolua_S,"create", lua_cocos2dx_ProgressFromTo_create); @@ -28518,7 +28518,7 @@ static int lua_cocos2dx_ShakyTiles3D_finalize(lua_State* tolua_S) int lua_register_cocos2dx_ShakyTiles3D(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ShakyTiles3D"); - tolua_cclass(tolua_S,"ShakyTiles3D","cc.ShakyTiles3D","cc.TiledGrid3DAction",nullptr); + tolua_cclass(tolua_S,"ShakyTiles3D","cc.ShakyTiles3D","cc.TiledGrid3DAction",nullptr); tolua_beginmodule(tolua_S,"ShakyTiles3D"); tolua_function(tolua_S,"create", lua_cocos2dx_ShakyTiles3D_create); @@ -28577,7 +28577,7 @@ static int lua_cocos2dx_ShatteredTiles3D_finalize(lua_State* tolua_S) int lua_register_cocos2dx_ShatteredTiles3D(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ShatteredTiles3D"); - tolua_cclass(tolua_S,"ShatteredTiles3D","cc.ShatteredTiles3D","cc.TiledGrid3DAction",nullptr); + tolua_cclass(tolua_S,"ShatteredTiles3D","cc.ShatteredTiles3D","cc.TiledGrid3DAction",nullptr); tolua_beginmodule(tolua_S,"ShatteredTiles3D"); tolua_function(tolua_S,"create", lua_cocos2dx_ShatteredTiles3D_create); @@ -28681,7 +28681,7 @@ static int lua_cocos2dx_ShuffleTiles_finalize(lua_State* tolua_S) int lua_register_cocos2dx_ShuffleTiles(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ShuffleTiles"); - tolua_cclass(tolua_S,"ShuffleTiles","cc.ShuffleTiles","cc.TiledGrid3DAction",nullptr); + tolua_cclass(tolua_S,"ShuffleTiles","cc.ShuffleTiles","cc.TiledGrid3DAction",nullptr); tolua_beginmodule(tolua_S,"ShuffleTiles"); tolua_function(tolua_S,"getDelta",lua_cocos2dx_ShuffleTiles_getDelta); @@ -28928,7 +28928,7 @@ static int lua_cocos2dx_FadeOutTRTiles_finalize(lua_State* tolua_S) int lua_register_cocos2dx_FadeOutTRTiles(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.FadeOutTRTiles"); - tolua_cclass(tolua_S,"FadeOutTRTiles","cc.FadeOutTRTiles","cc.TiledGrid3DAction",nullptr); + tolua_cclass(tolua_S,"FadeOutTRTiles","cc.FadeOutTRTiles","cc.TiledGrid3DAction",nullptr); tolua_beginmodule(tolua_S,"FadeOutTRTiles"); tolua_function(tolua_S,"turnOnTile",lua_cocos2dx_FadeOutTRTiles_turnOnTile); @@ -28987,7 +28987,7 @@ static int lua_cocos2dx_FadeOutBLTiles_finalize(lua_State* tolua_S) int lua_register_cocos2dx_FadeOutBLTiles(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.FadeOutBLTiles"); - tolua_cclass(tolua_S,"FadeOutBLTiles","cc.FadeOutBLTiles","cc.FadeOutTRTiles",nullptr); + tolua_cclass(tolua_S,"FadeOutBLTiles","cc.FadeOutBLTiles","cc.FadeOutTRTiles",nullptr); tolua_beginmodule(tolua_S,"FadeOutBLTiles"); tolua_function(tolua_S,"create", lua_cocos2dx_FadeOutBLTiles_create); @@ -29091,7 +29091,7 @@ static int lua_cocos2dx_FadeOutUpTiles_finalize(lua_State* tolua_S) int lua_register_cocos2dx_FadeOutUpTiles(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.FadeOutUpTiles"); - tolua_cclass(tolua_S,"FadeOutUpTiles","cc.FadeOutUpTiles","cc.FadeOutTRTiles",nullptr); + tolua_cclass(tolua_S,"FadeOutUpTiles","cc.FadeOutUpTiles","cc.FadeOutTRTiles",nullptr); tolua_beginmodule(tolua_S,"FadeOutUpTiles"); tolua_function(tolua_S,"transformTile",lua_cocos2dx_FadeOutUpTiles_transformTile); @@ -29147,7 +29147,7 @@ static int lua_cocos2dx_FadeOutDownTiles_finalize(lua_State* tolua_S) int lua_register_cocos2dx_FadeOutDownTiles(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.FadeOutDownTiles"); - tolua_cclass(tolua_S,"FadeOutDownTiles","cc.FadeOutDownTiles","cc.FadeOutUpTiles",nullptr); + tolua_cclass(tolua_S,"FadeOutDownTiles","cc.FadeOutDownTiles","cc.FadeOutUpTiles",nullptr); tolua_beginmodule(tolua_S,"FadeOutDownTiles"); tolua_function(tolua_S,"create", lua_cocos2dx_FadeOutDownTiles_create); @@ -29316,7 +29316,7 @@ static int lua_cocos2dx_TurnOffTiles_finalize(lua_State* tolua_S) int lua_register_cocos2dx_TurnOffTiles(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TurnOffTiles"); - tolua_cclass(tolua_S,"TurnOffTiles","cc.TurnOffTiles","cc.TiledGrid3DAction",nullptr); + tolua_cclass(tolua_S,"TurnOffTiles","cc.TurnOffTiles","cc.TiledGrid3DAction",nullptr); tolua_beginmodule(tolua_S,"TurnOffTiles"); tolua_function(tolua_S,"turnOnTile",lua_cocos2dx_TurnOffTiles_turnOnTile); @@ -29557,7 +29557,7 @@ static int lua_cocos2dx_WavesTiles3D_finalize(lua_State* tolua_S) int lua_register_cocos2dx_WavesTiles3D(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.WavesTiles3D"); - tolua_cclass(tolua_S,"WavesTiles3D","cc.WavesTiles3D","cc.TiledGrid3DAction",nullptr); + tolua_cclass(tolua_S,"WavesTiles3D","cc.WavesTiles3D","cc.TiledGrid3DAction",nullptr); tolua_beginmodule(tolua_S,"WavesTiles3D"); tolua_function(tolua_S,"getAmplitudeRate",lua_cocos2dx_WavesTiles3D_getAmplitudeRate); @@ -29800,7 +29800,7 @@ static int lua_cocos2dx_JumpTiles3D_finalize(lua_State* tolua_S) int lua_register_cocos2dx_JumpTiles3D(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.JumpTiles3D"); - tolua_cclass(tolua_S,"JumpTiles3D","cc.JumpTiles3D","cc.TiledGrid3DAction",nullptr); + tolua_cclass(tolua_S,"JumpTiles3D","cc.JumpTiles3D","cc.TiledGrid3DAction",nullptr); tolua_beginmodule(tolua_S,"JumpTiles3D"); tolua_function(tolua_S,"getAmplitudeRate",lua_cocos2dx_JumpTiles3D_getAmplitudeRate); @@ -29859,7 +29859,7 @@ static int lua_cocos2dx_SplitRows_finalize(lua_State* tolua_S) int lua_register_cocos2dx_SplitRows(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.SplitRows"); - tolua_cclass(tolua_S,"SplitRows","cc.SplitRows","cc.TiledGrid3DAction",nullptr); + tolua_cclass(tolua_S,"SplitRows","cc.SplitRows","cc.TiledGrid3DAction",nullptr); tolua_beginmodule(tolua_S,"SplitRows"); tolua_function(tolua_S,"create", lua_cocos2dx_SplitRows_create); @@ -29914,7 +29914,7 @@ static int lua_cocos2dx_SplitCols_finalize(lua_State* tolua_S) int lua_register_cocos2dx_SplitCols(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.SplitCols"); - tolua_cclass(tolua_S,"SplitCols","cc.SplitCols","cc.TiledGrid3DAction",nullptr); + tolua_cclass(tolua_S,"SplitCols","cc.SplitCols","cc.TiledGrid3DAction",nullptr); tolua_beginmodule(tolua_S,"SplitCols"); tolua_function(tolua_S,"create", lua_cocos2dx_SplitCols_create); @@ -29973,7 +29973,7 @@ static int lua_cocos2dx_ActionTween_finalize(lua_State* tolua_S) int lua_register_cocos2dx_ActionTween(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ActionTween"); - tolua_cclass(tolua_S,"ActionTween","cc.ActionTween","cc.ActionInterval",nullptr); + tolua_cclass(tolua_S,"ActionTween","cc.ActionTween","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"ActionTween"); tolua_function(tolua_S,"create", lua_cocos2dx_ActionTween_create); @@ -30170,7 +30170,7 @@ static int lua_cocos2dx_CardinalSplineTo_finalize(lua_State* tolua_S) int lua_register_cocos2dx_CardinalSplineTo(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.CardinalSplineTo"); - tolua_cclass(tolua_S,"CardinalSplineTo","cc.CardinalSplineTo","cc.ActionInterval",nullptr); + tolua_cclass(tolua_S,"CardinalSplineTo","cc.CardinalSplineTo","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"CardinalSplineTo"); tolua_function(tolua_S,"new",lua_cocos2dx_CardinalSplineTo_constructor); @@ -30227,7 +30227,7 @@ static int lua_cocos2dx_CardinalSplineBy_finalize(lua_State* tolua_S) int lua_register_cocos2dx_CardinalSplineBy(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.CardinalSplineBy"); - tolua_cclass(tolua_S,"CardinalSplineBy","cc.CardinalSplineBy","cc.CardinalSplineTo",nullptr); + tolua_cclass(tolua_S,"CardinalSplineBy","cc.CardinalSplineBy","cc.CardinalSplineTo",nullptr); tolua_beginmodule(tolua_S,"CardinalSplineBy"); tolua_function(tolua_S,"new",lua_cocos2dx_CardinalSplineBy_constructor); @@ -30297,7 +30297,7 @@ static int lua_cocos2dx_CatmullRomTo_finalize(lua_State* tolua_S) int lua_register_cocos2dx_CatmullRomTo(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.CatmullRomTo"); - tolua_cclass(tolua_S,"CatmullRomTo","cc.CatmullRomTo","cc.CardinalSplineTo",nullptr); + tolua_cclass(tolua_S,"CatmullRomTo","cc.CatmullRomTo","cc.CardinalSplineTo",nullptr); tolua_beginmodule(tolua_S,"CatmullRomTo"); tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_CatmullRomTo_initWithDuration); @@ -30367,7 +30367,7 @@ static int lua_cocos2dx_CatmullRomBy_finalize(lua_State* tolua_S) int lua_register_cocos2dx_CatmullRomBy(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.CatmullRomBy"); - tolua_cclass(tolua_S,"CatmullRomBy","cc.CatmullRomBy","cc.CardinalSplineBy",nullptr); + tolua_cclass(tolua_S,"CatmullRomBy","cc.CatmullRomBy","cc.CardinalSplineBy",nullptr); tolua_beginmodule(tolua_S,"CatmullRomBy"); tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_CatmullRomBy_initWithDuration); @@ -30791,7 +30791,7 @@ static int lua_cocos2dx_DrawNode_finalize(lua_State* tolua_S) int lua_register_cocos2dx_DrawNode(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.DrawNode"); - tolua_cclass(tolua_S,"DrawNode","cc.DrawNode","cc.Node",nullptr); + tolua_cclass(tolua_S,"DrawNode","cc.DrawNode","cc.Node",nullptr); tolua_beginmodule(tolua_S,"DrawNode"); tolua_function(tolua_S,"drawQuadraticBezier",lua_cocos2dx_DrawNode_drawQuadraticBezier); @@ -31477,7 +31477,7 @@ static int lua_cocos2dx_GLProgram_finalize(lua_State* tolua_S) int lua_register_cocos2dx_GLProgram(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.GLProgram"); - tolua_cclass(tolua_S,"GLProgram","cc.GLProgram","cc.Ref",nullptr); + tolua_cclass(tolua_S,"GLProgram","cc.GLProgram","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"GLProgram"); tolua_function(tolua_S,"new",lua_cocos2dx_GLProgram_constructor); @@ -32353,7 +32353,7 @@ static int lua_cocos2dx_SpriteBatchNode_finalize(lua_State* tolua_S) int lua_register_cocos2dx_SpriteBatchNode(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.SpriteBatchNode"); - tolua_cclass(tolua_S,"SpriteBatchNode","cc.SpriteBatchNode","cc.Node",nullptr); + tolua_cclass(tolua_S,"SpriteBatchNode","cc.SpriteBatchNode","cc.Node",nullptr); tolua_beginmodule(tolua_S,"SpriteBatchNode"); tolua_function(tolua_S,"appendChild",lua_cocos2dx_SpriteBatchNode_appendChild); @@ -34733,7 +34733,7 @@ static int lua_cocos2dx_Label_finalize(lua_State* tolua_S) int lua_register_cocos2dx_Label(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Label"); - tolua_cclass(tolua_S,"Label","cc.Label","cc.SpriteBatchNode",nullptr); + tolua_cclass(tolua_S,"Label","cc.Label","cc.SpriteBatchNode",nullptr); tolua_beginmodule(tolua_S,"Label"); tolua_function(tolua_S,"isClipMarginEnabled",lua_cocos2dx_Label_isClipMarginEnabled); @@ -34830,7 +34830,7 @@ static int lua_cocos2dx_Layer_finalize(lua_State* tolua_S) int lua_register_cocos2dx_Layer(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Layer"); - tolua_cclass(tolua_S,"Layer","cc.Layer","cc.Node",nullptr); + tolua_cclass(tolua_S,"Layer","cc.Layer","cc.Node",nullptr); tolua_beginmodule(tolua_S,"Layer"); tolua_function(tolua_S,"create", lua_cocos2dx_Layer_create); @@ -35055,7 +35055,7 @@ static int lua_cocos2dx_LayerColor_finalize(lua_State* tolua_S) int lua_register_cocos2dx_LayerColor(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.LayerColor"); - tolua_cclass(tolua_S,"LayerColor","cc.LayerColor","cc.Layer",nullptr); + tolua_cclass(tolua_S,"LayerColor","cc.LayerColor","cc.Layer",nullptr); tolua_beginmodule(tolua_S,"LayerColor"); tolua_function(tolua_S,"changeWidthAndHeight",lua_cocos2dx_LayerColor_changeWidthAndHeight); @@ -35685,7 +35685,7 @@ static int lua_cocos2dx_LayerGradient_finalize(lua_State* tolua_S) int lua_register_cocos2dx_LayerGradient(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.LayerGradient"); - tolua_cclass(tolua_S,"LayerGradient","cc.LayerGradient","cc.LayerColor",nullptr); + tolua_cclass(tolua_S,"LayerGradient","cc.LayerGradient","cc.LayerColor",nullptr); tolua_beginmodule(tolua_S,"LayerGradient"); tolua_function(tolua_S,"getStartColor",lua_cocos2dx_LayerGradient_getStartColor); @@ -35855,7 +35855,7 @@ static int lua_cocos2dx_LayerMultiplex_finalize(lua_State* tolua_S) int lua_register_cocos2dx_LayerMultiplex(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.LayerMultiplex"); - tolua_cclass(tolua_S,"LayerMultiplex","cc.LayerMultiplex","cc.Layer",nullptr); + tolua_cclass(tolua_S,"LayerMultiplex","cc.LayerMultiplex","cc.Layer",nullptr); tolua_beginmodule(tolua_S,"LayerMultiplex"); tolua_function(tolua_S,"switchToAndReleaseMe",lua_cocos2dx_LayerMultiplex_switchToAndReleaseMe); @@ -36016,7 +36016,7 @@ static int lua_cocos2dx_Scene_finalize(lua_State* tolua_S) 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_cclass(tolua_S,"Scene","cc.Scene","cc.Node",nullptr); tolua_beginmodule(tolua_S,"Scene"); tolua_function(tolua_S,"getPhysicsWorld",lua_cocos2dx_Scene_getPhysicsWorld); @@ -36227,7 +36227,7 @@ static int lua_cocos2dx_TransitionScene_finalize(lua_State* tolua_S) int lua_register_cocos2dx_TransitionScene(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionScene"); - tolua_cclass(tolua_S,"TransitionScene","cc.TransitionScene","cc.Scene",nullptr); + tolua_cclass(tolua_S,"TransitionScene","cc.TransitionScene","cc.Scene",nullptr); tolua_beginmodule(tolua_S,"TransitionScene"); tolua_function(tolua_S,"finish",lua_cocos2dx_TransitionScene_finish); @@ -36286,7 +36286,7 @@ static int lua_cocos2dx_TransitionSceneOriented_finalize(lua_State* tolua_S) int lua_register_cocos2dx_TransitionSceneOriented(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionSceneOriented"); - tolua_cclass(tolua_S,"TransitionSceneOriented","cc.TransitionSceneOriented","cc.TransitionScene",nullptr); + tolua_cclass(tolua_S,"TransitionSceneOriented","cc.TransitionSceneOriented","cc.TransitionScene",nullptr); tolua_beginmodule(tolua_S,"TransitionSceneOriented"); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionSceneOriented_create); @@ -36341,7 +36341,7 @@ static int lua_cocos2dx_TransitionRotoZoom_finalize(lua_State* tolua_S) int lua_register_cocos2dx_TransitionRotoZoom(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionRotoZoom"); - tolua_cclass(tolua_S,"TransitionRotoZoom","cc.TransitionRotoZoom","cc.TransitionScene",nullptr); + tolua_cclass(tolua_S,"TransitionRotoZoom","cc.TransitionRotoZoom","cc.TransitionScene",nullptr); tolua_beginmodule(tolua_S,"TransitionRotoZoom"); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionRotoZoom_create); @@ -36396,7 +36396,7 @@ static int lua_cocos2dx_TransitionJumpZoom_finalize(lua_State* tolua_S) int lua_register_cocos2dx_TransitionJumpZoom(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionJumpZoom"); - tolua_cclass(tolua_S,"TransitionJumpZoom","cc.TransitionJumpZoom","cc.TransitionScene",nullptr); + tolua_cclass(tolua_S,"TransitionJumpZoom","cc.TransitionJumpZoom","cc.TransitionScene",nullptr); tolua_beginmodule(tolua_S,"TransitionJumpZoom"); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionJumpZoom_create); @@ -36542,7 +36542,7 @@ static int lua_cocos2dx_TransitionMoveInL_finalize(lua_State* tolua_S) int lua_register_cocos2dx_TransitionMoveInL(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionMoveInL"); - tolua_cclass(tolua_S,"TransitionMoveInL","cc.TransitionMoveInL","cc.TransitionScene",nullptr); + tolua_cclass(tolua_S,"TransitionMoveInL","cc.TransitionMoveInL","cc.TransitionScene",nullptr); tolua_beginmodule(tolua_S,"TransitionMoveInL"); tolua_function(tolua_S,"action",lua_cocos2dx_TransitionMoveInL_action); @@ -36599,7 +36599,7 @@ static int lua_cocos2dx_TransitionMoveInR_finalize(lua_State* tolua_S) int lua_register_cocos2dx_TransitionMoveInR(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionMoveInR"); - tolua_cclass(tolua_S,"TransitionMoveInR","cc.TransitionMoveInR","cc.TransitionMoveInL",nullptr); + tolua_cclass(tolua_S,"TransitionMoveInR","cc.TransitionMoveInR","cc.TransitionMoveInL",nullptr); tolua_beginmodule(tolua_S,"TransitionMoveInR"); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionMoveInR_create); @@ -36654,7 +36654,7 @@ static int lua_cocos2dx_TransitionMoveInT_finalize(lua_State* tolua_S) int lua_register_cocos2dx_TransitionMoveInT(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionMoveInT"); - tolua_cclass(tolua_S,"TransitionMoveInT","cc.TransitionMoveInT","cc.TransitionMoveInL",nullptr); + tolua_cclass(tolua_S,"TransitionMoveInT","cc.TransitionMoveInT","cc.TransitionMoveInL",nullptr); tolua_beginmodule(tolua_S,"TransitionMoveInT"); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionMoveInT_create); @@ -36709,7 +36709,7 @@ static int lua_cocos2dx_TransitionMoveInB_finalize(lua_State* tolua_S) int lua_register_cocos2dx_TransitionMoveInB(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionMoveInB"); - tolua_cclass(tolua_S,"TransitionMoveInB","cc.TransitionMoveInB","cc.TransitionMoveInL",nullptr); + tolua_cclass(tolua_S,"TransitionMoveInB","cc.TransitionMoveInB","cc.TransitionMoveInL",nullptr); tolua_beginmodule(tolua_S,"TransitionMoveInB"); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionMoveInB_create); @@ -36855,7 +36855,7 @@ static int lua_cocos2dx_TransitionSlideInL_finalize(lua_State* tolua_S) int lua_register_cocos2dx_TransitionSlideInL(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionSlideInL"); - tolua_cclass(tolua_S,"TransitionSlideInL","cc.TransitionSlideInL","cc.TransitionScene",nullptr); + tolua_cclass(tolua_S,"TransitionSlideInL","cc.TransitionSlideInL","cc.TransitionScene",nullptr); tolua_beginmodule(tolua_S,"TransitionSlideInL"); tolua_function(tolua_S,"action",lua_cocos2dx_TransitionSlideInL_action); @@ -36956,7 +36956,7 @@ static int lua_cocos2dx_TransitionSlideInR_finalize(lua_State* tolua_S) int lua_register_cocos2dx_TransitionSlideInR(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionSlideInR"); - tolua_cclass(tolua_S,"TransitionSlideInR","cc.TransitionSlideInR","cc.TransitionSlideInL",nullptr); + tolua_cclass(tolua_S,"TransitionSlideInR","cc.TransitionSlideInR","cc.TransitionSlideInL",nullptr); tolua_beginmodule(tolua_S,"TransitionSlideInR"); tolua_function(tolua_S,"action",lua_cocos2dx_TransitionSlideInR_action); @@ -37056,7 +37056,7 @@ static int lua_cocos2dx_TransitionSlideInB_finalize(lua_State* tolua_S) int lua_register_cocos2dx_TransitionSlideInB(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionSlideInB"); - tolua_cclass(tolua_S,"TransitionSlideInB","cc.TransitionSlideInB","cc.TransitionSlideInL",nullptr); + tolua_cclass(tolua_S,"TransitionSlideInB","cc.TransitionSlideInB","cc.TransitionSlideInL",nullptr); tolua_beginmodule(tolua_S,"TransitionSlideInB"); tolua_function(tolua_S,"action",lua_cocos2dx_TransitionSlideInB_action); @@ -37156,7 +37156,7 @@ static int lua_cocos2dx_TransitionSlideInT_finalize(lua_State* tolua_S) int lua_register_cocos2dx_TransitionSlideInT(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionSlideInT"); - tolua_cclass(tolua_S,"TransitionSlideInT","cc.TransitionSlideInT","cc.TransitionSlideInL",nullptr); + tolua_cclass(tolua_S,"TransitionSlideInT","cc.TransitionSlideInT","cc.TransitionSlideInL",nullptr); tolua_beginmodule(tolua_S,"TransitionSlideInT"); tolua_function(tolua_S,"action",lua_cocos2dx_TransitionSlideInT_action); @@ -37259,7 +37259,7 @@ static int lua_cocos2dx_TransitionShrinkGrow_finalize(lua_State* tolua_S) int lua_register_cocos2dx_TransitionShrinkGrow(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionShrinkGrow"); - tolua_cclass(tolua_S,"TransitionShrinkGrow","cc.TransitionShrinkGrow","cc.TransitionScene",nullptr); + tolua_cclass(tolua_S,"TransitionShrinkGrow","cc.TransitionShrinkGrow","cc.TransitionScene",nullptr); tolua_beginmodule(tolua_S,"TransitionShrinkGrow"); tolua_function(tolua_S,"easeActionWithAction",lua_cocos2dx_TransitionShrinkGrow_easeActionWithAction); @@ -37337,7 +37337,7 @@ static int lua_cocos2dx_TransitionFlipX_finalize(lua_State* tolua_S) int lua_register_cocos2dx_TransitionFlipX(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionFlipX"); - tolua_cclass(tolua_S,"TransitionFlipX","cc.TransitionFlipX","cc.TransitionSceneOriented",nullptr); + tolua_cclass(tolua_S,"TransitionFlipX","cc.TransitionFlipX","cc.TransitionSceneOriented",nullptr); tolua_beginmodule(tolua_S,"TransitionFlipX"); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionFlipX_create); @@ -37414,7 +37414,7 @@ static int lua_cocos2dx_TransitionFlipY_finalize(lua_State* tolua_S) int lua_register_cocos2dx_TransitionFlipY(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionFlipY"); - tolua_cclass(tolua_S,"TransitionFlipY","cc.TransitionFlipY","cc.TransitionSceneOriented",nullptr); + tolua_cclass(tolua_S,"TransitionFlipY","cc.TransitionFlipY","cc.TransitionSceneOriented",nullptr); tolua_beginmodule(tolua_S,"TransitionFlipY"); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionFlipY_create); @@ -37491,7 +37491,7 @@ static int lua_cocos2dx_TransitionFlipAngular_finalize(lua_State* tolua_S) int lua_register_cocos2dx_TransitionFlipAngular(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionFlipAngular"); - tolua_cclass(tolua_S,"TransitionFlipAngular","cc.TransitionFlipAngular","cc.TransitionSceneOriented",nullptr); + tolua_cclass(tolua_S,"TransitionFlipAngular","cc.TransitionFlipAngular","cc.TransitionSceneOriented",nullptr); tolua_beginmodule(tolua_S,"TransitionFlipAngular"); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionFlipAngular_create); @@ -37568,7 +37568,7 @@ static int lua_cocos2dx_TransitionZoomFlipX_finalize(lua_State* tolua_S) int lua_register_cocos2dx_TransitionZoomFlipX(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionZoomFlipX"); - tolua_cclass(tolua_S,"TransitionZoomFlipX","cc.TransitionZoomFlipX","cc.TransitionSceneOriented",nullptr); + tolua_cclass(tolua_S,"TransitionZoomFlipX","cc.TransitionZoomFlipX","cc.TransitionSceneOriented",nullptr); tolua_beginmodule(tolua_S,"TransitionZoomFlipX"); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionZoomFlipX_create); @@ -37645,7 +37645,7 @@ static int lua_cocos2dx_TransitionZoomFlipY_finalize(lua_State* tolua_S) int lua_register_cocos2dx_TransitionZoomFlipY(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionZoomFlipY"); - tolua_cclass(tolua_S,"TransitionZoomFlipY","cc.TransitionZoomFlipY","cc.TransitionSceneOriented",nullptr); + tolua_cclass(tolua_S,"TransitionZoomFlipY","cc.TransitionZoomFlipY","cc.TransitionSceneOriented",nullptr); tolua_beginmodule(tolua_S,"TransitionZoomFlipY"); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionZoomFlipY_create); @@ -37722,7 +37722,7 @@ static int lua_cocos2dx_TransitionZoomFlipAngular_finalize(lua_State* tolua_S) int lua_register_cocos2dx_TransitionZoomFlipAngular(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionZoomFlipAngular"); - tolua_cclass(tolua_S,"TransitionZoomFlipAngular","cc.TransitionZoomFlipAngular","cc.TransitionSceneOriented",nullptr); + tolua_cclass(tolua_S,"TransitionZoomFlipAngular","cc.TransitionZoomFlipAngular","cc.TransitionSceneOriented",nullptr); tolua_beginmodule(tolua_S,"TransitionZoomFlipAngular"); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionZoomFlipAngular_create); @@ -37799,7 +37799,7 @@ static int lua_cocos2dx_TransitionFade_finalize(lua_State* tolua_S) int lua_register_cocos2dx_TransitionFade(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionFade"); - tolua_cclass(tolua_S,"TransitionFade","cc.TransitionFade","cc.TransitionScene",nullptr); + tolua_cclass(tolua_S,"TransitionFade","cc.TransitionFade","cc.TransitionScene",nullptr); tolua_beginmodule(tolua_S,"TransitionFade"); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionFade_create); @@ -37854,7 +37854,7 @@ static int lua_cocos2dx_TransitionCrossFade_finalize(lua_State* tolua_S) int lua_register_cocos2dx_TransitionCrossFade(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionCrossFade"); - tolua_cclass(tolua_S,"TransitionCrossFade","cc.TransitionCrossFade","cc.TransitionScene",nullptr); + tolua_cclass(tolua_S,"TransitionCrossFade","cc.TransitionCrossFade","cc.TransitionScene",nullptr); tolua_beginmodule(tolua_S,"TransitionCrossFade"); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionCrossFade_create); @@ -37956,7 +37956,7 @@ static int lua_cocos2dx_TransitionTurnOffTiles_finalize(lua_State* tolua_S) int lua_register_cocos2dx_TransitionTurnOffTiles(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionTurnOffTiles"); - tolua_cclass(tolua_S,"TransitionTurnOffTiles","cc.TransitionTurnOffTiles","cc.TransitionScene",nullptr); + tolua_cclass(tolua_S,"TransitionTurnOffTiles","cc.TransitionTurnOffTiles","cc.TransitionScene",nullptr); tolua_beginmodule(tolua_S,"TransitionTurnOffTiles"); tolua_function(tolua_S,"easeActionWithAction",lua_cocos2dx_TransitionTurnOffTiles_easeActionWithAction); @@ -38103,7 +38103,7 @@ static int lua_cocos2dx_TransitionSplitCols_finalize(lua_State* tolua_S) int lua_register_cocos2dx_TransitionSplitCols(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionSplitCols"); - tolua_cclass(tolua_S,"TransitionSplitCols","cc.TransitionSplitCols","cc.TransitionScene",nullptr); + tolua_cclass(tolua_S,"TransitionSplitCols","cc.TransitionSplitCols","cc.TransitionScene",nullptr); tolua_beginmodule(tolua_S,"TransitionSplitCols"); tolua_function(tolua_S,"action",lua_cocos2dx_TransitionSplitCols_action); @@ -38160,7 +38160,7 @@ static int lua_cocos2dx_TransitionSplitRows_finalize(lua_State* tolua_S) int lua_register_cocos2dx_TransitionSplitRows(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionSplitRows"); - tolua_cclass(tolua_S,"TransitionSplitRows","cc.TransitionSplitRows","cc.TransitionSplitCols",nullptr); + tolua_cclass(tolua_S,"TransitionSplitRows","cc.TransitionSplitRows","cc.TransitionSplitCols",nullptr); tolua_beginmodule(tolua_S,"TransitionSplitRows"); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionSplitRows_create); @@ -38309,7 +38309,7 @@ static int lua_cocos2dx_TransitionFadeTR_finalize(lua_State* tolua_S) int lua_register_cocos2dx_TransitionFadeTR(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionFadeTR"); - tolua_cclass(tolua_S,"TransitionFadeTR","cc.TransitionFadeTR","cc.TransitionScene",nullptr); + tolua_cclass(tolua_S,"TransitionFadeTR","cc.TransitionFadeTR","cc.TransitionScene",nullptr); tolua_beginmodule(tolua_S,"TransitionFadeTR"); tolua_function(tolua_S,"easeActionWithAction",lua_cocos2dx_TransitionFadeTR_easeActionWithAction); @@ -38366,7 +38366,7 @@ static int lua_cocos2dx_TransitionFadeBL_finalize(lua_State* tolua_S) int lua_register_cocos2dx_TransitionFadeBL(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionFadeBL"); - tolua_cclass(tolua_S,"TransitionFadeBL","cc.TransitionFadeBL","cc.TransitionFadeTR",nullptr); + tolua_cclass(tolua_S,"TransitionFadeBL","cc.TransitionFadeBL","cc.TransitionFadeTR",nullptr); tolua_beginmodule(tolua_S,"TransitionFadeBL"); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionFadeBL_create); @@ -38421,7 +38421,7 @@ static int lua_cocos2dx_TransitionFadeUp_finalize(lua_State* tolua_S) int lua_register_cocos2dx_TransitionFadeUp(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionFadeUp"); - tolua_cclass(tolua_S,"TransitionFadeUp","cc.TransitionFadeUp","cc.TransitionFadeTR",nullptr); + tolua_cclass(tolua_S,"TransitionFadeUp","cc.TransitionFadeUp","cc.TransitionFadeTR",nullptr); tolua_beginmodule(tolua_S,"TransitionFadeUp"); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionFadeUp_create); @@ -38476,7 +38476,7 @@ static int lua_cocos2dx_TransitionFadeDown_finalize(lua_State* tolua_S) int lua_register_cocos2dx_TransitionFadeDown(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionFadeDown"); - tolua_cclass(tolua_S,"TransitionFadeDown","cc.TransitionFadeDown","cc.TransitionFadeTR",nullptr); + tolua_cclass(tolua_S,"TransitionFadeDown","cc.TransitionFadeDown","cc.TransitionFadeTR",nullptr); tolua_beginmodule(tolua_S,"TransitionFadeDown"); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionFadeDown_create); @@ -38667,7 +38667,7 @@ static int lua_cocos2dx_TransitionPageTurn_finalize(lua_State* tolua_S) int lua_register_cocos2dx_TransitionPageTurn(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionPageTurn"); - tolua_cclass(tolua_S,"TransitionPageTurn","cc.TransitionPageTurn","cc.TransitionScene",nullptr); + tolua_cclass(tolua_S,"TransitionPageTurn","cc.TransitionPageTurn","cc.TransitionScene",nullptr); tolua_beginmodule(tolua_S,"TransitionPageTurn"); tolua_function(tolua_S,"new",lua_cocos2dx_TransitionPageTurn_constructor); @@ -38759,7 +38759,7 @@ static int lua_cocos2dx_TransitionProgress_finalize(lua_State* tolua_S) int lua_register_cocos2dx_TransitionProgress(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionProgress"); - tolua_cclass(tolua_S,"TransitionProgress","cc.TransitionProgress","cc.TransitionScene",nullptr); + tolua_cclass(tolua_S,"TransitionProgress","cc.TransitionProgress","cc.TransitionScene",nullptr); tolua_beginmodule(tolua_S,"TransitionProgress"); tolua_function(tolua_S,"new",lua_cocos2dx_TransitionProgress_constructor); @@ -38815,7 +38815,7 @@ static int lua_cocos2dx_TransitionProgressRadialCCW_finalize(lua_State* tolua_S) int lua_register_cocos2dx_TransitionProgressRadialCCW(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionProgressRadialCCW"); - tolua_cclass(tolua_S,"TransitionProgressRadialCCW","cc.TransitionProgressRadialCCW","cc.TransitionProgress",nullptr); + tolua_cclass(tolua_S,"TransitionProgressRadialCCW","cc.TransitionProgressRadialCCW","cc.TransitionProgress",nullptr); tolua_beginmodule(tolua_S,"TransitionProgressRadialCCW"); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionProgressRadialCCW_create); @@ -38870,7 +38870,7 @@ static int lua_cocos2dx_TransitionProgressRadialCW_finalize(lua_State* tolua_S) int lua_register_cocos2dx_TransitionProgressRadialCW(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionProgressRadialCW"); - tolua_cclass(tolua_S,"TransitionProgressRadialCW","cc.TransitionProgressRadialCW","cc.TransitionProgress",nullptr); + tolua_cclass(tolua_S,"TransitionProgressRadialCW","cc.TransitionProgressRadialCW","cc.TransitionProgress",nullptr); tolua_beginmodule(tolua_S,"TransitionProgressRadialCW"); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionProgressRadialCW_create); @@ -38925,7 +38925,7 @@ static int lua_cocos2dx_TransitionProgressHorizontal_finalize(lua_State* tolua_S int lua_register_cocos2dx_TransitionProgressHorizontal(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionProgressHorizontal"); - tolua_cclass(tolua_S,"TransitionProgressHorizontal","cc.TransitionProgressHorizontal","cc.TransitionProgress",nullptr); + tolua_cclass(tolua_S,"TransitionProgressHorizontal","cc.TransitionProgressHorizontal","cc.TransitionProgress",nullptr); tolua_beginmodule(tolua_S,"TransitionProgressHorizontal"); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionProgressHorizontal_create); @@ -38980,7 +38980,7 @@ static int lua_cocos2dx_TransitionProgressVertical_finalize(lua_State* tolua_S) int lua_register_cocos2dx_TransitionProgressVertical(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionProgressVertical"); - tolua_cclass(tolua_S,"TransitionProgressVertical","cc.TransitionProgressVertical","cc.TransitionProgress",nullptr); + tolua_cclass(tolua_S,"TransitionProgressVertical","cc.TransitionProgressVertical","cc.TransitionProgress",nullptr); tolua_beginmodule(tolua_S,"TransitionProgressVertical"); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionProgressVertical_create); @@ -39035,7 +39035,7 @@ static int lua_cocos2dx_TransitionProgressInOut_finalize(lua_State* tolua_S) int lua_register_cocos2dx_TransitionProgressInOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionProgressInOut"); - tolua_cclass(tolua_S,"TransitionProgressInOut","cc.TransitionProgressInOut","cc.TransitionProgress",nullptr); + tolua_cclass(tolua_S,"TransitionProgressInOut","cc.TransitionProgressInOut","cc.TransitionProgress",nullptr); tolua_beginmodule(tolua_S,"TransitionProgressInOut"); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionProgressInOut_create); @@ -39090,7 +39090,7 @@ static int lua_cocos2dx_TransitionProgressOutIn_finalize(lua_State* tolua_S) int lua_register_cocos2dx_TransitionProgressOutIn(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionProgressOutIn"); - tolua_cclass(tolua_S,"TransitionProgressOutIn","cc.TransitionProgressOutIn","cc.TransitionProgress",nullptr); + tolua_cclass(tolua_S,"TransitionProgressOutIn","cc.TransitionProgressOutIn","cc.TransitionProgress",nullptr); tolua_beginmodule(tolua_S,"TransitionProgressOutIn"); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionProgressOutIn_create); @@ -39417,7 +39417,7 @@ static int lua_cocos2dx_MenuItem_finalize(lua_State* tolua_S) int lua_register_cocos2dx_MenuItem(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.MenuItem"); - tolua_cclass(tolua_S,"MenuItem","cc.MenuItem","cc.Node",nullptr); + tolua_cclass(tolua_S,"MenuItem","cc.MenuItem","cc.Node",nullptr); tolua_beginmodule(tolua_S,"MenuItem"); tolua_function(tolua_S,"setEnabled",lua_cocos2dx_MenuItem_setEnabled); @@ -39669,7 +39669,7 @@ static int lua_cocos2dx_MenuItemLabel_finalize(lua_State* tolua_S) int lua_register_cocos2dx_MenuItemLabel(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.MenuItemLabel"); - tolua_cclass(tolua_S,"MenuItemLabel","cc.MenuItemLabel","cc.MenuItem",nullptr); + tolua_cclass(tolua_S,"MenuItemLabel","cc.MenuItemLabel","cc.MenuItem",nullptr); tolua_beginmodule(tolua_S,"MenuItemLabel"); tolua_function(tolua_S,"getDisabledColor",lua_cocos2dx_MenuItemLabel_getDisabledColor); @@ -39693,7 +39693,7 @@ static int lua_cocos2dx_MenuItemAtlasFont_finalize(lua_State* tolua_S) int lua_register_cocos2dx_MenuItemAtlasFont(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.MenuItemAtlasFont"); - tolua_cclass(tolua_S,"MenuItemAtlasFont","cc.MenuItemAtlasFont","cc.MenuItemLabel",nullptr); + tolua_cclass(tolua_S,"MenuItemAtlasFont","cc.MenuItemAtlasFont","cc.MenuItemLabel",nullptr); tolua_beginmodule(tolua_S,"MenuItemAtlasFont"); tolua_endmodule(tolua_S); @@ -40018,7 +40018,7 @@ static int lua_cocos2dx_MenuItemFont_finalize(lua_State* tolua_S) int lua_register_cocos2dx_MenuItemFont(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.MenuItemFont"); - tolua_cclass(tolua_S,"MenuItemFont","cc.MenuItemFont","cc.MenuItemLabel",nullptr); + tolua_cclass(tolua_S,"MenuItemFont","cc.MenuItemFont","cc.MenuItemLabel",nullptr); tolua_beginmodule(tolua_S,"MenuItemFont"); tolua_function(tolua_S,"getFontSizeObj",lua_cocos2dx_MenuItemFont_getFontSizeObj); @@ -40447,7 +40447,7 @@ static int lua_cocos2dx_MenuItemSprite_finalize(lua_State* tolua_S) int lua_register_cocos2dx_MenuItemSprite(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.MenuItemSprite"); - tolua_cclass(tolua_S,"MenuItemSprite","cc.MenuItemSprite","cc.MenuItem",nullptr); + tolua_cclass(tolua_S,"MenuItemSprite","cc.MenuItemSprite","cc.MenuItem",nullptr); tolua_beginmodule(tolua_S,"MenuItemSprite"); tolua_function(tolua_S,"setEnabled",lua_cocos2dx_MenuItemSprite_setEnabled); @@ -40613,7 +40613,7 @@ static int lua_cocos2dx_MenuItemImage_finalize(lua_State* tolua_S) int lua_register_cocos2dx_MenuItemImage(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.MenuItemImage"); - tolua_cclass(tolua_S,"MenuItemImage","cc.MenuItemImage","cc.MenuItemSprite",nullptr); + tolua_cclass(tolua_S,"MenuItemImage","cc.MenuItemImage","cc.MenuItemSprite",nullptr); tolua_beginmodule(tolua_S,"MenuItemImage"); tolua_function(tolua_S,"setDisabledSpriteFrame",lua_cocos2dx_MenuItemImage_setDisabledSpriteFrame); @@ -40861,7 +40861,7 @@ static int lua_cocos2dx_MenuItemToggle_finalize(lua_State* tolua_S) int lua_register_cocos2dx_MenuItemToggle(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.MenuItemToggle"); - tolua_cclass(tolua_S,"MenuItemToggle","cc.MenuItemToggle","cc.MenuItem",nullptr); + tolua_cclass(tolua_S,"MenuItemToggle","cc.MenuItemToggle","cc.MenuItem",nullptr); tolua_beginmodule(tolua_S,"MenuItemToggle"); tolua_function(tolua_S,"setSubItems",lua_cocos2dx_MenuItemToggle_setSubItems); @@ -41153,7 +41153,7 @@ static int lua_cocos2dx_Menu_finalize(lua_State* tolua_S) int lua_register_cocos2dx_Menu(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Menu"); - tolua_cclass(tolua_S,"Menu","cc.Menu","cc.Layer",nullptr); + tolua_cclass(tolua_S,"Menu","cc.Menu","cc.Layer",nullptr); tolua_beginmodule(tolua_S,"Menu"); tolua_function(tolua_S,"setEnabled",lua_cocos2dx_Menu_setEnabled); @@ -41493,7 +41493,7 @@ static int lua_cocos2dx_ClippingNode_finalize(lua_State* tolua_S) int lua_register_cocos2dx_ClippingNode(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ClippingNode"); - tolua_cclass(tolua_S,"ClippingNode","cc.ClippingNode","cc.Node",nullptr); + tolua_cclass(tolua_S,"ClippingNode","cc.ClippingNode","cc.Node",nullptr); tolua_beginmodule(tolua_S,"ClippingNode"); tolua_function(tolua_S,"isInverted",lua_cocos2dx_ClippingNode_isInverted); @@ -41950,7 +41950,7 @@ static int lua_cocos2dx_MotionStreak_finalize(lua_State* tolua_S) int lua_register_cocos2dx_MotionStreak(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.MotionStreak"); - tolua_cclass(tolua_S,"MotionStreak","cc.MotionStreak","cc.Node",nullptr); + tolua_cclass(tolua_S,"MotionStreak","cc.MotionStreak","cc.Node",nullptr); tolua_beginmodule(tolua_S,"MotionStreak"); tolua_function(tolua_S,"reset",lua_cocos2dx_MotionStreak_reset); @@ -43333,7 +43333,7 @@ static int lua_cocos2dx_Sprite_finalize(lua_State* tolua_S) int lua_register_cocos2dx_Sprite(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Sprite"); - tolua_cclass(tolua_S,"Sprite","cc.Sprite","cc.Node",nullptr); + tolua_cclass(tolua_S,"Sprite","cc.Sprite","cc.Node",nullptr); tolua_beginmodule(tolua_S,"Sprite"); tolua_function(tolua_S,"setSpriteFrame",lua_cocos2dx_Sprite_setSpriteFrame); @@ -43961,7 +43961,7 @@ static int lua_cocos2dx_ProgressTimer_finalize(lua_State* tolua_S) int lua_register_cocos2dx_ProgressTimer(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ProgressTimer"); - tolua_cclass(tolua_S,"ProgressTimer","cc.ProgressTimer","cc.Node",nullptr); + tolua_cclass(tolua_S,"ProgressTimer","cc.ProgressTimer","cc.Node",nullptr); tolua_beginmodule(tolua_S,"ProgressTimer"); tolua_function(tolua_S,"isReverseDirection",lua_cocos2dx_ProgressTimer_isReverseDirection); @@ -44575,7 +44575,7 @@ static int lua_cocos2dx_Image_finalize(lua_State* tolua_S) int lua_register_cocos2dx_Image(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Image"); - tolua_cclass(tolua_S,"Image","cc.Image","cc.Ref",nullptr); + tolua_cclass(tolua_S,"Image","cc.Image","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"Image"); tolua_function(tolua_S,"new",lua_cocos2dx_Image_constructor); @@ -45971,7 +45971,7 @@ static int lua_cocos2dx_RenderTexture_finalize(lua_State* tolua_S) int lua_register_cocos2dx_RenderTexture(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.RenderTexture"); - tolua_cclass(tolua_S,"RenderTexture","cc.RenderTexture","cc.Node",nullptr); + tolua_cclass(tolua_S,"RenderTexture","cc.RenderTexture","cc.Node",nullptr); tolua_beginmodule(tolua_S,"RenderTexture"); tolua_function(tolua_S,"new",lua_cocos2dx_RenderTexture_constructor); @@ -46186,7 +46186,7 @@ static int lua_cocos2dx_NodeGrid_finalize(lua_State* tolua_S) int lua_register_cocos2dx_NodeGrid(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.NodeGrid"); - tolua_cclass(tolua_S,"NodeGrid","cc.NodeGrid","cc.Node",nullptr); + tolua_cclass(tolua_S,"NodeGrid","cc.NodeGrid","cc.Node",nullptr); tolua_beginmodule(tolua_S,"NodeGrid"); tolua_function(tolua_S,"setTarget",lua_cocos2dx_NodeGrid_setTarget); @@ -46669,7 +46669,7 @@ static int lua_cocos2dx_ParticleBatchNode_finalize(lua_State* tolua_S) int lua_register_cocos2dx_ParticleBatchNode(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ParticleBatchNode"); - tolua_cclass(tolua_S,"ParticleBatchNode","cc.ParticleBatchNode","cc.Node",nullptr); + tolua_cclass(tolua_S,"ParticleBatchNode","cc.ParticleBatchNode","cc.Node",nullptr); tolua_beginmodule(tolua_S,"ParticleBatchNode"); tolua_function(tolua_S,"setTexture",lua_cocos2dx_ParticleBatchNode_setTexture); @@ -51166,7 +51166,7 @@ static int lua_cocos2dx_ParticleSystem_finalize(lua_State* tolua_S) int lua_register_cocos2dx_ParticleSystem(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ParticleSystem"); - tolua_cclass(tolua_S,"ParticleSystem","cc.ParticleSystem","cc.Node",nullptr); + tolua_cclass(tolua_S,"ParticleSystem","cc.ParticleSystem","cc.Node",nullptr); tolua_beginmodule(tolua_S,"ParticleSystem"); tolua_function(tolua_S,"getStartSizeVar",lua_cocos2dx_ParticleSystem_getStartSizeVar); @@ -51471,7 +51471,7 @@ static int lua_cocos2dx_ParticleSystemQuad_finalize(lua_State* tolua_S) int lua_register_cocos2dx_ParticleSystemQuad(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ParticleSystemQuad"); - tolua_cclass(tolua_S,"ParticleSystemQuad","cc.ParticleSystemQuad","cc.ParticleSystem",nullptr); + tolua_cclass(tolua_S,"ParticleSystemQuad","cc.ParticleSystemQuad","cc.ParticleSystem",nullptr); tolua_beginmodule(tolua_S,"ParticleSystemQuad"); tolua_function(tolua_S,"setDisplayFrame",lua_cocos2dx_ParticleSystemQuad_setDisplayFrame); @@ -51558,7 +51558,7 @@ static int lua_cocos2dx_ParticleFire_finalize(lua_State* tolua_S) int lua_register_cocos2dx_ParticleFire(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ParticleFire"); - tolua_cclass(tolua_S,"ParticleFire","cc.ParticleFire","cc.ParticleSystemQuad",nullptr); + tolua_cclass(tolua_S,"ParticleFire","cc.ParticleFire","cc.ParticleSystemQuad",nullptr); tolua_beginmodule(tolua_S,"ParticleFire"); tolua_function(tolua_S,"create", lua_cocos2dx_ParticleFire_create); @@ -51643,7 +51643,7 @@ static int lua_cocos2dx_ParticleFireworks_finalize(lua_State* tolua_S) int lua_register_cocos2dx_ParticleFireworks(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ParticleFireworks"); - tolua_cclass(tolua_S,"ParticleFireworks","cc.ParticleFireworks","cc.ParticleSystemQuad",nullptr); + tolua_cclass(tolua_S,"ParticleFireworks","cc.ParticleFireworks","cc.ParticleSystemQuad",nullptr); tolua_beginmodule(tolua_S,"ParticleFireworks"); tolua_function(tolua_S,"create", lua_cocos2dx_ParticleFireworks_create); @@ -51728,7 +51728,7 @@ static int lua_cocos2dx_ParticleSun_finalize(lua_State* tolua_S) int lua_register_cocos2dx_ParticleSun(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ParticleSun"); - tolua_cclass(tolua_S,"ParticleSun","cc.ParticleSun","cc.ParticleSystemQuad",nullptr); + tolua_cclass(tolua_S,"ParticleSun","cc.ParticleSun","cc.ParticleSystemQuad",nullptr); tolua_beginmodule(tolua_S,"ParticleSun"); tolua_function(tolua_S,"create", lua_cocos2dx_ParticleSun_create); @@ -51813,7 +51813,7 @@ static int lua_cocos2dx_ParticleGalaxy_finalize(lua_State* tolua_S) int lua_register_cocos2dx_ParticleGalaxy(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ParticleGalaxy"); - tolua_cclass(tolua_S,"ParticleGalaxy","cc.ParticleGalaxy","cc.ParticleSystemQuad",nullptr); + tolua_cclass(tolua_S,"ParticleGalaxy","cc.ParticleGalaxy","cc.ParticleSystemQuad",nullptr); tolua_beginmodule(tolua_S,"ParticleGalaxy"); tolua_function(tolua_S,"create", lua_cocos2dx_ParticleGalaxy_create); @@ -51898,7 +51898,7 @@ static int lua_cocos2dx_ParticleFlower_finalize(lua_State* tolua_S) int lua_register_cocos2dx_ParticleFlower(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ParticleFlower"); - tolua_cclass(tolua_S,"ParticleFlower","cc.ParticleFlower","cc.ParticleSystemQuad",nullptr); + tolua_cclass(tolua_S,"ParticleFlower","cc.ParticleFlower","cc.ParticleSystemQuad",nullptr); tolua_beginmodule(tolua_S,"ParticleFlower"); tolua_function(tolua_S,"create", lua_cocos2dx_ParticleFlower_create); @@ -51983,7 +51983,7 @@ static int lua_cocos2dx_ParticleMeteor_finalize(lua_State* tolua_S) int lua_register_cocos2dx_ParticleMeteor(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ParticleMeteor"); - tolua_cclass(tolua_S,"ParticleMeteor","cc.ParticleMeteor","cc.ParticleSystemQuad",nullptr); + tolua_cclass(tolua_S,"ParticleMeteor","cc.ParticleMeteor","cc.ParticleSystemQuad",nullptr); tolua_beginmodule(tolua_S,"ParticleMeteor"); tolua_function(tolua_S,"create", lua_cocos2dx_ParticleMeteor_create); @@ -52068,7 +52068,7 @@ static int lua_cocos2dx_ParticleSpiral_finalize(lua_State* tolua_S) int lua_register_cocos2dx_ParticleSpiral(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ParticleSpiral"); - tolua_cclass(tolua_S,"ParticleSpiral","cc.ParticleSpiral","cc.ParticleSystemQuad",nullptr); + tolua_cclass(tolua_S,"ParticleSpiral","cc.ParticleSpiral","cc.ParticleSystemQuad",nullptr); tolua_beginmodule(tolua_S,"ParticleSpiral"); tolua_function(tolua_S,"create", lua_cocos2dx_ParticleSpiral_create); @@ -52153,7 +52153,7 @@ static int lua_cocos2dx_ParticleExplosion_finalize(lua_State* tolua_S) int lua_register_cocos2dx_ParticleExplosion(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ParticleExplosion"); - tolua_cclass(tolua_S,"ParticleExplosion","cc.ParticleExplosion","cc.ParticleSystemQuad",nullptr); + tolua_cclass(tolua_S,"ParticleExplosion","cc.ParticleExplosion","cc.ParticleSystemQuad",nullptr); tolua_beginmodule(tolua_S,"ParticleExplosion"); tolua_function(tolua_S,"create", lua_cocos2dx_ParticleExplosion_create); @@ -52238,7 +52238,7 @@ static int lua_cocos2dx_ParticleSmoke_finalize(lua_State* tolua_S) int lua_register_cocos2dx_ParticleSmoke(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ParticleSmoke"); - tolua_cclass(tolua_S,"ParticleSmoke","cc.ParticleSmoke","cc.ParticleSystemQuad",nullptr); + tolua_cclass(tolua_S,"ParticleSmoke","cc.ParticleSmoke","cc.ParticleSystemQuad",nullptr); tolua_beginmodule(tolua_S,"ParticleSmoke"); tolua_function(tolua_S,"create", lua_cocos2dx_ParticleSmoke_create); @@ -52323,7 +52323,7 @@ static int lua_cocos2dx_ParticleSnow_finalize(lua_State* tolua_S) int lua_register_cocos2dx_ParticleSnow(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ParticleSnow"); - tolua_cclass(tolua_S,"ParticleSnow","cc.ParticleSnow","cc.ParticleSystemQuad",nullptr); + tolua_cclass(tolua_S,"ParticleSnow","cc.ParticleSnow","cc.ParticleSystemQuad",nullptr); tolua_beginmodule(tolua_S,"ParticleSnow"); tolua_function(tolua_S,"create", lua_cocos2dx_ParticleSnow_create); @@ -52408,7 +52408,7 @@ static int lua_cocos2dx_ParticleRain_finalize(lua_State* tolua_S) int lua_register_cocos2dx_ParticleRain(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ParticleRain"); - tolua_cclass(tolua_S,"ParticleRain","cc.ParticleRain","cc.ParticleSystemQuad",nullptr); + tolua_cclass(tolua_S,"ParticleRain","cc.ParticleRain","cc.ParticleSystemQuad",nullptr); tolua_beginmodule(tolua_S,"ParticleRain"); tolua_function(tolua_S,"create", lua_cocos2dx_ParticleRain_create); @@ -53257,7 +53257,7 @@ static int lua_cocos2dx_GridBase_finalize(lua_State* tolua_S) int lua_register_cocos2dx_GridBase(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.GridBase"); - tolua_cclass(tolua_S,"GridBase","cc.GridBase","cc.Ref",nullptr); + tolua_cclass(tolua_S,"GridBase","cc.GridBase","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"GridBase"); tolua_function(tolua_S,"setGridSize",lua_cocos2dx_GridBase_setGridSize); @@ -53382,7 +53382,7 @@ static int lua_cocos2dx_Grid3D_finalize(lua_State* tolua_S) int lua_register_cocos2dx_Grid3D(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Grid3D"); - tolua_cclass(tolua_S,"Grid3D","cc.Grid3D","cc.GridBase",nullptr); + tolua_cclass(tolua_S,"Grid3D","cc.Grid3D","cc.GridBase",nullptr); tolua_beginmodule(tolua_S,"Grid3D"); tolua_function(tolua_S,"new",lua_cocos2dx_Grid3D_constructor); @@ -53491,7 +53491,7 @@ static int lua_cocos2dx_TiledGrid3D_finalize(lua_State* tolua_S) int lua_register_cocos2dx_TiledGrid3D(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TiledGrid3D"); - tolua_cclass(tolua_S,"TiledGrid3D","cc.TiledGrid3D","cc.GridBase",nullptr); + tolua_cclass(tolua_S,"TiledGrid3D","cc.TiledGrid3D","cc.GridBase",nullptr); tolua_beginmodule(tolua_S,"TiledGrid3D"); tolua_function(tolua_S,"new",lua_cocos2dx_TiledGrid3D_constructor); @@ -53789,7 +53789,7 @@ static int lua_cocos2dx_GLProgramCache_finalize(lua_State* tolua_S) int lua_register_cocos2dx_GLProgramCache(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.GLProgramCache"); - tolua_cclass(tolua_S,"GLProgramCache","cc.GLProgramCache","cc.Ref",nullptr); + tolua_cclass(tolua_S,"GLProgramCache","cc.GLProgramCache","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"GLProgramCache"); tolua_function(tolua_S,"new",lua_cocos2dx_GLProgramCache_constructor); @@ -54400,7 +54400,7 @@ static int lua_cocos2dx_TextureCache_finalize(lua_State* tolua_S) int lua_register_cocos2dx_TextureCache(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TextureCache"); - tolua_cclass(tolua_S,"TextureCache","cc.TextureCache","cc.Ref",nullptr); + tolua_cclass(tolua_S,"TextureCache","cc.TextureCache","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"TextureCache"); tolua_function(tolua_S,"new",lua_cocos2dx_TextureCache_constructor); @@ -55825,7 +55825,7 @@ static int lua_cocos2dx_GLView_finalize(lua_State* tolua_S) int lua_register_cocos2dx_GLView(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.GLView"); - tolua_cclass(tolua_S,"GLView","cc.GLView","cc.GLViewProtocol",nullptr); + tolua_cclass(tolua_S,"GLView","cc.GLView","cc.GLViewProtocol",nullptr); tolua_beginmodule(tolua_S,"GLView"); tolua_function(tolua_S,"createWithRect", lua_cocos2dx_GLView_createWithRect); @@ -56223,7 +56223,7 @@ static int lua_cocos2dx_AnimationCache_finalize(lua_State* tolua_S) int lua_register_cocos2dx_AnimationCache(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.AnimationCache"); - tolua_cclass(tolua_S,"AnimationCache","cc.AnimationCache","cc.Ref",nullptr); + tolua_cclass(tolua_S,"AnimationCache","cc.AnimationCache","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"AnimationCache"); tolua_function(tolua_S,"new",lua_cocos2dx_AnimationCache_constructor); @@ -56748,7 +56748,7 @@ static int lua_cocos2dx_SpriteFrameCache_finalize(lua_State* tolua_S) int lua_register_cocos2dx_SpriteFrameCache(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.SpriteFrameCache"); - tolua_cclass(tolua_S,"SpriteFrameCache","cc.SpriteFrameCache","cc.Ref",nullptr); + tolua_cclass(tolua_S,"SpriteFrameCache","cc.SpriteFrameCache","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"SpriteFrameCache"); tolua_function(tolua_S,"addSpriteFrames",lua_cocos2dx_SpriteFrameCache_addSpriteFramesWithFile); @@ -56910,7 +56910,7 @@ static int lua_cocos2dx_ParallaxNode_finalize(lua_State* tolua_S) int lua_register_cocos2dx_ParallaxNode(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ParallaxNode"); - tolua_cclass(tolua_S,"ParallaxNode","cc.ParallaxNode","cc.Node",nullptr); + tolua_cclass(tolua_S,"ParallaxNode","cc.ParallaxNode","cc.Node",nullptr); tolua_beginmodule(tolua_S,"ParallaxNode"); tolua_function(tolua_S,"addChild",lua_cocos2dx_ParallaxNode_addChild); @@ -57426,7 +57426,7 @@ static int lua_cocos2dx_TMXObjectGroup_finalize(lua_State* tolua_S) int lua_register_cocos2dx_TMXObjectGroup(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TMXObjectGroup"); - tolua_cclass(tolua_S,"TMXObjectGroup","cc.TMXObjectGroup","cc.Ref",nullptr); + tolua_cclass(tolua_S,"TMXObjectGroup","cc.TMXObjectGroup","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"TMXObjectGroup"); tolua_function(tolua_S,"new",lua_cocos2dx_TMXObjectGroup_constructor); @@ -57580,7 +57580,7 @@ static int lua_cocos2dx_TMXLayerInfo_finalize(lua_State* tolua_S) int lua_register_cocos2dx_TMXLayerInfo(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TMXLayerInfo"); - tolua_cclass(tolua_S,"TMXLayerInfo","cc.TMXLayerInfo","cc.Ref",nullptr); + tolua_cclass(tolua_S,"TMXLayerInfo","cc.TMXLayerInfo","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"TMXLayerInfo"); tolua_function(tolua_S,"new",lua_cocos2dx_TMXLayerInfo_constructor); @@ -57683,7 +57683,7 @@ static int lua_cocos2dx_TMXTilesetInfo_finalize(lua_State* tolua_S) int lua_register_cocos2dx_TMXTilesetInfo(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TMXTilesetInfo"); - tolua_cclass(tolua_S,"TMXTilesetInfo","cc.TMXTilesetInfo","cc.Ref",nullptr); + tolua_cclass(tolua_S,"TMXTilesetInfo","cc.TMXTilesetInfo","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"TMXTilesetInfo"); tolua_function(tolua_S,"new",lua_cocos2dx_TMXTilesetInfo_constructor); @@ -60328,7 +60328,7 @@ static int lua_cocos2dx_TMXLayer_finalize(lua_State* tolua_S) int lua_register_cocos2dx_TMXLayer(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TMXLayer"); - tolua_cclass(tolua_S,"TMXLayer","cc.TMXLayer","cc.SpriteBatchNode",nullptr); + tolua_cclass(tolua_S,"TMXLayer","cc.TMXLayer","cc.SpriteBatchNode",nullptr); tolua_beginmodule(tolua_S,"TMXLayer"); tolua_function(tolua_S,"new",lua_cocos2dx_TMXLayer_constructor); @@ -61031,7 +61031,7 @@ static int lua_cocos2dx_TMXTiledMap_finalize(lua_State* tolua_S) int lua_register_cocos2dx_TMXTiledMap(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TMXTiledMap"); - tolua_cclass(tolua_S,"TMXTiledMap","cc.TMXTiledMap","cc.Node",nullptr); + tolua_cclass(tolua_S,"TMXTiledMap","cc.TMXTiledMap","cc.Node",nullptr); tolua_beginmodule(tolua_S,"TMXTiledMap"); tolua_function(tolua_S,"setObjectGroups",lua_cocos2dx_TMXTiledMap_setObjectGroups); @@ -61333,7 +61333,7 @@ static int lua_cocos2dx_TileMapAtlas_finalize(lua_State* tolua_S) int lua_register_cocos2dx_TileMapAtlas(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TileMapAtlas"); - tolua_cclass(tolua_S,"TileMapAtlas","cc.TileMapAtlas","cc.AtlasNode",nullptr); + tolua_cclass(tolua_S,"TileMapAtlas","cc.TileMapAtlas","cc.AtlasNode",nullptr); tolua_beginmodule(tolua_S,"TileMapAtlas"); tolua_function(tolua_S,"new",lua_cocos2dx_TileMapAtlas_constructor); @@ -61749,7 +61749,7 @@ static int lua_cocos2dx_Component_finalize(lua_State* tolua_S) int lua_register_cocos2dx_Component(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Component"); - tolua_cclass(tolua_S,"Component","cc.Component","cc.Ref",nullptr); + tolua_cclass(tolua_S,"Component","cc.Component","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"Component"); tolua_function(tolua_S,"setEnabled",lua_cocos2dx_Component_setEnabled); @@ -62015,7 +62015,7 @@ static int lua_cocos2dx_Sprite3D_finalize(lua_State* tolua_S) int lua_register_cocos2dx_Sprite3D(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Sprite3D"); - tolua_cclass(tolua_S,"Sprite3D","cc.Sprite3D","cc.Node",nullptr); + tolua_cclass(tolua_S,"Sprite3D","cc.Sprite3D","cc.Node",nullptr); tolua_beginmodule(tolua_S,"Sprite3D"); tolua_function(tolua_S,"setTexture",lua_cocos2dx_Sprite3D_setTexture); @@ -62484,7 +62484,7 @@ static int lua_cocos2dx_Mesh_finalize(lua_State* tolua_S) int lua_register_cocos2dx_Mesh(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Mesh"); - tolua_cclass(tolua_S,"Mesh","cc.Mesh","cc.Ref",nullptr); + tolua_cclass(tolua_S,"Mesh","cc.Mesh","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"Mesh"); tolua_function(tolua_S,"restore",lua_cocos2dx_Mesh_restore); @@ -64147,7 +64147,7 @@ static int lua_cocos2dx_ProtectedNode_finalize(lua_State* tolua_S) int lua_register_cocos2dx_ProtectedNode(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ProtectedNode"); - tolua_cclass(tolua_S,"ProtectedNode","cc.ProtectedNode","cc.Node",nullptr); + tolua_cclass(tolua_S,"ProtectedNode","cc.ProtectedNode","cc.Node",nullptr); tolua_beginmodule(tolua_S,"ProtectedNode"); tolua_function(tolua_S,"addProtectedChild",lua_cocos2dx_ProtectedNode_addProtectedChild); @@ -64265,7 +64265,7 @@ static int lua_cocos2dx_Animation3D_finalize(lua_State* tolua_S) int lua_register_cocos2dx_Animation3D(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Animation3D"); - tolua_cclass(tolua_S,"Animation3D","cc.Animation3D","cc.Ref",nullptr); + tolua_cclass(tolua_S,"Animation3D","cc.Animation3D","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"Animation3D"); tolua_function(tolua_S,"getDuration",lua_cocos2dx_Animation3D_getDuration); @@ -64499,7 +64499,7 @@ static int lua_cocos2dx_Animate3D_finalize(lua_State* tolua_S) int lua_register_cocos2dx_Animate3D(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Animate3D"); - tolua_cclass(tolua_S,"Animate3D","cc.Animate3D","cc.ActionInterval",nullptr); + tolua_cclass(tolua_S,"Animate3D","cc.Animate3D","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"Animate3D"); tolua_function(tolua_S,"setPlayBack",lua_cocos2dx_Animate3D_setPlayBack); diff --git a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_extension_auto.cpp b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_extension_auto.cpp index c11ecfce45..6a66e82f68 100644 --- a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_extension_auto.cpp +++ b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_extension_auto.cpp @@ -1312,7 +1312,7 @@ static int lua_cocos2dx_extension_Scale9Sprite_finalize(lua_State* tolua_S) int lua_register_cocos2dx_extension_Scale9Sprite(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Scale9Sprite"); - tolua_cclass(tolua_S,"Scale9Sprite","cc.Scale9Sprite","cc.Node",nullptr); + tolua_cclass(tolua_S,"Scale9Sprite","cc.Scale9Sprite","cc.Node",nullptr); tolua_beginmodule(tolua_S,"Scale9Sprite"); tolua_function(tolua_S,"new",lua_cocos2dx_extension_Scale9Sprite_constructor); @@ -2125,7 +2125,7 @@ static int lua_cocos2dx_extension_Control_finalize(lua_State* tolua_S) int lua_register_cocos2dx_extension_Control(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Control"); - tolua_cclass(tolua_S,"Control","cc.Control","cc.Layer",nullptr); + tolua_cclass(tolua_S,"Control","cc.Control","cc.Layer",nullptr); tolua_beginmodule(tolua_S,"Control"); tolua_function(tolua_S,"setEnabled",lua_cocos2dx_extension_Control_setEnabled); @@ -4045,7 +4045,7 @@ static int lua_cocos2dx_extension_ControlButton_finalize(lua_State* tolua_S) int lua_register_cocos2dx_extension_ControlButton(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ControlButton"); - tolua_cclass(tolua_S,"ControlButton","cc.ControlButton","cc.Control",nullptr); + tolua_cclass(tolua_S,"ControlButton","cc.ControlButton","cc.Control",nullptr); tolua_beginmodule(tolua_S,"ControlButton"); tolua_function(tolua_S,"isPushed",lua_cocos2dx_extension_ControlButton_isPushed); @@ -4673,7 +4673,7 @@ static int lua_cocos2dx_extension_ControlHuePicker_finalize(lua_State* tolua_S) int lua_register_cocos2dx_extension_ControlHuePicker(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ControlHuePicker"); - tolua_cclass(tolua_S,"ControlHuePicker","cc.ControlHuePicker","cc.Control",nullptr); + tolua_cclass(tolua_S,"ControlHuePicker","cc.ControlHuePicker","cc.Control",nullptr); tolua_beginmodule(tolua_S,"ControlHuePicker"); tolua_function(tolua_S,"new",lua_cocos2dx_extension_ControlHuePicker_constructor); @@ -5178,7 +5178,7 @@ static int lua_cocos2dx_extension_ControlSaturationBrightnessPicker_finalize(lua int lua_register_cocos2dx_extension_ControlSaturationBrightnessPicker(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ControlSaturationBrightnessPicker"); - tolua_cclass(tolua_S,"ControlSaturationBrightnessPicker","cc.ControlSaturationBrightnessPicker","cc.Control",nullptr); + tolua_cclass(tolua_S,"ControlSaturationBrightnessPicker","cc.ControlSaturationBrightnessPicker","cc.Control",nullptr); tolua_beginmodule(tolua_S,"ControlSaturationBrightnessPicker"); tolua_function(tolua_S,"new",lua_cocos2dx_extension_ControlSaturationBrightnessPicker_constructor); @@ -5777,7 +5777,7 @@ static int lua_cocos2dx_extension_ControlColourPicker_finalize(lua_State* tolua_ int lua_register_cocos2dx_extension_ControlColourPicker(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ControlColourPicker"); - tolua_cclass(tolua_S,"ControlColourPicker","cc.ControlColourPicker","cc.Control",nullptr); + tolua_cclass(tolua_S,"ControlColourPicker","cc.ControlColourPicker","cc.Control",nullptr); tolua_beginmodule(tolua_S,"ControlColourPicker"); tolua_function(tolua_S,"new",lua_cocos2dx_extension_ControlColourPicker_constructor); @@ -6717,7 +6717,7 @@ static int lua_cocos2dx_extension_ControlPotentiometer_finalize(lua_State* tolua int lua_register_cocos2dx_extension_ControlPotentiometer(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ControlPotentiometer"); - tolua_cclass(tolua_S,"ControlPotentiometer","cc.ControlPotentiometer","cc.Control",nullptr); + tolua_cclass(tolua_S,"ControlPotentiometer","cc.ControlPotentiometer","cc.Control",nullptr); tolua_beginmodule(tolua_S,"ControlPotentiometer"); tolua_function(tolua_S,"new",lua_cocos2dx_extension_ControlPotentiometer_constructor); @@ -7962,7 +7962,7 @@ static int lua_cocos2dx_extension_ControlSlider_finalize(lua_State* tolua_S) int lua_register_cocos2dx_extension_ControlSlider(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ControlSlider"); - tolua_cclass(tolua_S,"ControlSlider","cc.ControlSlider","cc.Control",nullptr); + tolua_cclass(tolua_S,"ControlSlider","cc.ControlSlider","cc.Control",nullptr); tolua_beginmodule(tolua_S,"ControlSlider"); tolua_function(tolua_S,"new",lua_cocos2dx_extension_ControlSlider_constructor); @@ -9030,7 +9030,7 @@ static int lua_cocos2dx_extension_ControlStepper_finalize(lua_State* tolua_S) int lua_register_cocos2dx_extension_ControlStepper(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ControlStepper"); - tolua_cclass(tolua_S,"ControlStepper","cc.ControlStepper","cc.Control",nullptr); + tolua_cclass(tolua_S,"ControlStepper","cc.ControlStepper","cc.Control",nullptr); tolua_beginmodule(tolua_S,"ControlStepper"); tolua_function(tolua_S,"new",lua_cocos2dx_extension_ControlStepper_constructor); @@ -9503,7 +9503,7 @@ static int lua_cocos2dx_extension_ControlSwitch_finalize(lua_State* tolua_S) int lua_register_cocos2dx_extension_ControlSwitch(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ControlSwitch"); - tolua_cclass(tolua_S,"ControlSwitch","cc.ControlSwitch","cc.Control",nullptr); + tolua_cclass(tolua_S,"ControlSwitch","cc.ControlSwitch","cc.Control",nullptr); tolua_beginmodule(tolua_S,"ControlSwitch"); tolua_function(tolua_S,"new",lua_cocos2dx_extension_ControlSwitch_constructor); @@ -11176,7 +11176,7 @@ static int lua_cocos2dx_extension_ScrollView_finalize(lua_State* tolua_S) int lua_register_cocos2dx_extension_ScrollView(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ScrollView"); - tolua_cclass(tolua_S,"ScrollView","cc.ScrollView","cc.Layer",nullptr); + tolua_cclass(tolua_S,"ScrollView","cc.ScrollView","cc.Layer",nullptr); tolua_beginmodule(tolua_S,"ScrollView"); tolua_function(tolua_S,"new",lua_cocos2dx_extension_ScrollView_constructor); @@ -11428,7 +11428,7 @@ static int lua_cocos2dx_extension_TableViewCell_finalize(lua_State* tolua_S) int lua_register_cocos2dx_extension_TableViewCell(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TableViewCell"); - tolua_cclass(tolua_S,"TableViewCell","cc.TableViewCell","cc.Node",nullptr); + tolua_cclass(tolua_S,"TableViewCell","cc.TableViewCell","cc.Node",nullptr); tolua_beginmodule(tolua_S,"TableViewCell"); tolua_function(tolua_S,"new",lua_cocos2dx_extension_TableViewCell_constructor); @@ -12044,7 +12044,7 @@ static int lua_cocos2dx_extension_TableView_finalize(lua_State* tolua_S) int lua_register_cocos2dx_extension_TableView(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TableView"); - tolua_cclass(tolua_S,"TableView","cc.TableView","cc.ScrollView",nullptr); + tolua_cclass(tolua_S,"TableView","cc.TableView","cc.ScrollView",nullptr); tolua_beginmodule(tolua_S,"TableView"); tolua_function(tolua_S,"new",lua_cocos2dx_extension_TableView_constructor); @@ -13007,7 +13007,7 @@ static int lua_cocos2dx_extension_EditBox_finalize(lua_State* tolua_S) int lua_register_cocos2dx_extension_EditBox(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EditBox"); - tolua_cclass(tolua_S,"EditBox","cc.EditBox","cc.ControlButton",nullptr); + tolua_cclass(tolua_S,"EditBox","cc.EditBox","cc.ControlButton",nullptr); tolua_beginmodule(tolua_S,"EditBox"); tolua_function(tolua_S,"new",lua_cocos2dx_extension_EditBox_constructor); @@ -13720,7 +13720,7 @@ static int lua_cocos2dx_extension_AssetsManager_finalize(lua_State* tolua_S) int lua_register_cocos2dx_extension_AssetsManager(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.AssetsManager"); - tolua_cclass(tolua_S,"AssetsManager","cc.AssetsManager","cc.Node",nullptr); + tolua_cclass(tolua_S,"AssetsManager","cc.AssetsManager","cc.Node",nullptr); tolua_beginmodule(tolua_S,"AssetsManager"); tolua_function(tolua_S,"new",lua_cocos2dx_extension_AssetsManager_constructor); @@ -15438,7 +15438,7 @@ static int lua_cocos2dx_extension_CCBAnimationManager_finalize(lua_State* tolua_ int lua_register_cocos2dx_extension_CCBAnimationManager(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.CCBAnimationManager"); - tolua_cclass(tolua_S,"CCBAnimationManager","cc.CCBAnimationManager","cc.Ref",nullptr); + tolua_cclass(tolua_S,"CCBAnimationManager","cc.CCBAnimationManager","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"CCBAnimationManager"); tolua_function(tolua_S,"new",lua_cocos2dx_extension_CCBAnimationManager_constructor); @@ -16466,7 +16466,7 @@ static int lua_cocos2dx_extension_CCBReader_finalize(lua_State* tolua_S) int lua_register_cocos2dx_extension_CCBReader(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.CCBReader"); - tolua_cclass(tolua_S,"CCBReader","cc.CCBReader","cc.Ref",nullptr); + tolua_cclass(tolua_S,"CCBReader","cc.CCBReader","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"CCBReader"); tolua_function(tolua_S,"new",lua_cocos2dx_extension_CCBReader_constructor); diff --git a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_physics_auto.cpp b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_physics_auto.cpp index e691807433..cf3d79938c 100644 --- a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_physics_auto.cpp +++ b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_physics_auto.cpp @@ -2169,7 +2169,7 @@ static int lua_cocos2dx_physics_PhysicsShape_finalize(lua_State* tolua_S) int lua_register_cocos2dx_physics_PhysicsShape(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.PhysicsShape"); - tolua_cclass(tolua_S,"PhysicsShape","cc.PhysicsShape","cc.Ref",nullptr); + tolua_cclass(tolua_S,"PhysicsShape","cc.PhysicsShape","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"PhysicsShape"); tolua_function(tolua_S,"getFriction",lua_cocos2dx_physics_PhysicsShape_getFriction); @@ -2402,7 +2402,7 @@ static int lua_cocos2dx_physics_PhysicsShapeCircle_finalize(lua_State* tolua_S) int lua_register_cocos2dx_physics_PhysicsShapeCircle(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.PhysicsShapeCircle"); - tolua_cclass(tolua_S,"PhysicsShapeCircle","cc.PhysicsShapeCircle","cc.PhysicsShape",nullptr); + tolua_cclass(tolua_S,"PhysicsShapeCircle","cc.PhysicsShapeCircle","cc.PhysicsShape",nullptr); tolua_beginmodule(tolua_S,"PhysicsShapeCircle"); tolua_function(tolua_S,"getRadius",lua_cocos2dx_physics_PhysicsShapeCircle_getRadius); @@ -2654,7 +2654,7 @@ static int lua_cocos2dx_physics_PhysicsShapeBox_finalize(lua_State* tolua_S) int lua_register_cocos2dx_physics_PhysicsShapeBox(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.PhysicsShapeBox"); - tolua_cclass(tolua_S,"PhysicsShapeBox","cc.PhysicsShapeBox","cc.PhysicsShape",nullptr); + tolua_cclass(tolua_S,"PhysicsShapeBox","cc.PhysicsShapeBox","cc.PhysicsShape",nullptr); tolua_beginmodule(tolua_S,"PhysicsShapeBox"); tolua_function(tolua_S,"getPointsCount",lua_cocos2dx_physics_PhysicsShapeBox_getPointsCount); @@ -2769,7 +2769,7 @@ static int lua_cocos2dx_physics_PhysicsShapePolygon_finalize(lua_State* tolua_S) int lua_register_cocos2dx_physics_PhysicsShapePolygon(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.PhysicsShapePolygon"); - tolua_cclass(tolua_S,"PhysicsShapePolygon","cc.PhysicsShapePolygon","cc.PhysicsShape",nullptr); + tolua_cclass(tolua_S,"PhysicsShapePolygon","cc.PhysicsShapePolygon","cc.PhysicsShape",nullptr); tolua_beginmodule(tolua_S,"PhysicsShapePolygon"); tolua_function(tolua_S,"getPointsCount",lua_cocos2dx_physics_PhysicsShapePolygon_getPointsCount); @@ -2943,7 +2943,7 @@ static int lua_cocos2dx_physics_PhysicsShapeEdgeSegment_finalize(lua_State* tolu int lua_register_cocos2dx_physics_PhysicsShapeEdgeSegment(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.PhysicsShapeEdgeSegment"); - tolua_cclass(tolua_S,"PhysicsShapeEdgeSegment","cc.PhysicsShapeEdgeSegment","cc.PhysicsShape",nullptr); + tolua_cclass(tolua_S,"PhysicsShapeEdgeSegment","cc.PhysicsShapeEdgeSegment","cc.PhysicsShape",nullptr); tolua_beginmodule(tolua_S,"PhysicsShapeEdgeSegment"); tolua_function(tolua_S,"getPointB",lua_cocos2dx_physics_PhysicsShapeEdgeSegment_getPointB); @@ -3084,7 +3084,7 @@ static int lua_cocos2dx_physics_PhysicsShapeEdgeBox_finalize(lua_State* tolua_S) int lua_register_cocos2dx_physics_PhysicsShapeEdgeBox(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.PhysicsShapeEdgeBox"); - tolua_cclass(tolua_S,"PhysicsShapeEdgeBox","cc.PhysicsShapeEdgeBox","cc.PhysicsShape",nullptr); + tolua_cclass(tolua_S,"PhysicsShapeEdgeBox","cc.PhysicsShapeEdgeBox","cc.PhysicsShape",nullptr); tolua_beginmodule(tolua_S,"PhysicsShapeEdgeBox"); tolua_function(tolua_S,"getPointsCount",lua_cocos2dx_physics_PhysicsShapeEdgeBox_getPointsCount); @@ -3149,7 +3149,7 @@ static int lua_cocos2dx_physics_PhysicsShapeEdgePolygon_finalize(lua_State* tolu int lua_register_cocos2dx_physics_PhysicsShapeEdgePolygon(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.PhysicsShapeEdgePolygon"); - tolua_cclass(tolua_S,"PhysicsShapeEdgePolygon","cc.PhysicsShapeEdgePolygon","cc.PhysicsShape",nullptr); + tolua_cclass(tolua_S,"PhysicsShapeEdgePolygon","cc.PhysicsShapeEdgePolygon","cc.PhysicsShape",nullptr); tolua_beginmodule(tolua_S,"PhysicsShapeEdgePolygon"); tolua_function(tolua_S,"getPointsCount",lua_cocos2dx_physics_PhysicsShapeEdgePolygon_getPointsCount); @@ -3213,7 +3213,7 @@ static int lua_cocos2dx_physics_PhysicsShapeEdgeChain_finalize(lua_State* tolua_ int lua_register_cocos2dx_physics_PhysicsShapeEdgeChain(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.PhysicsShapeEdgeChain"); - tolua_cclass(tolua_S,"PhysicsShapeEdgeChain","cc.PhysicsShapeEdgeChain","cc.PhysicsShape",nullptr); + tolua_cclass(tolua_S,"PhysicsShapeEdgeChain","cc.PhysicsShapeEdgeChain","cc.PhysicsShape",nullptr); tolua_beginmodule(tolua_S,"PhysicsShapeEdgeChain"); tolua_function(tolua_S,"getPointsCount",lua_cocos2dx_physics_PhysicsShapeEdgeChain_getPointsCount); @@ -6386,7 +6386,7 @@ static int lua_cocos2dx_physics_PhysicsBody_finalize(lua_State* tolua_S) int lua_register_cocos2dx_physics_PhysicsBody(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.PhysicsBody"); - tolua_cclass(tolua_S,"PhysicsBody","cc.PhysicsBody","cc.Ref",nullptr); + tolua_cclass(tolua_S,"PhysicsBody","cc.PhysicsBody","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"PhysicsBody"); tolua_function(tolua_S,"isGravityEnabled",lua_cocos2dx_physics_PhysicsBody_isGravityEnabled); @@ -6691,7 +6691,7 @@ static int lua_cocos2dx_physics_PhysicsContact_finalize(lua_State* tolua_S) int lua_register_cocos2dx_physics_PhysicsContact(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.PhysicsContact"); - tolua_cclass(tolua_S,"PhysicsContact","cc.PhysicsContact","cc.EventCustom",nullptr); + tolua_cclass(tolua_S,"PhysicsContact","cc.PhysicsContact","cc.EventCustom",nullptr); tolua_beginmodule(tolua_S,"PhysicsContact"); tolua_function(tolua_S,"getContactData",lua_cocos2dx_physics_PhysicsContact_getContactData); @@ -7239,7 +7239,7 @@ static int lua_cocos2dx_physics_EventListenerPhysicsContact_finalize(lua_State* int lua_register_cocos2dx_physics_EventListenerPhysicsContact(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventListenerPhysicsContact"); - tolua_cclass(tolua_S,"EventListenerPhysicsContact","cc.EventListenerPhysicsContact","cc.EventListenerCustom",nullptr); + tolua_cclass(tolua_S,"EventListenerPhysicsContact","cc.EventListenerPhysicsContact","cc.EventListenerCustom",nullptr); tolua_beginmodule(tolua_S,"EventListenerPhysicsContact"); tolua_function(tolua_S,"create", lua_cocos2dx_physics_EventListenerPhysicsContact_create); @@ -7344,7 +7344,7 @@ static int lua_cocos2dx_physics_EventListenerPhysicsContactWithBodies_finalize(l int lua_register_cocos2dx_physics_EventListenerPhysicsContactWithBodies(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventListenerPhysicsContactWithBodies"); - tolua_cclass(tolua_S,"EventListenerPhysicsContactWithBodies","cc.EventListenerPhysicsContactWithBodies","cc.EventListenerPhysicsContact",nullptr); + tolua_cclass(tolua_S,"EventListenerPhysicsContactWithBodies","cc.EventListenerPhysicsContactWithBodies","cc.EventListenerPhysicsContact",nullptr); tolua_beginmodule(tolua_S,"EventListenerPhysicsContactWithBodies"); tolua_function(tolua_S,"hitTest",lua_cocos2dx_physics_EventListenerPhysicsContactWithBodies_hitTest); @@ -7450,7 +7450,7 @@ static int lua_cocos2dx_physics_EventListenerPhysicsContactWithShapes_finalize(l int lua_register_cocos2dx_physics_EventListenerPhysicsContactWithShapes(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventListenerPhysicsContactWithShapes"); - tolua_cclass(tolua_S,"EventListenerPhysicsContactWithShapes","cc.EventListenerPhysicsContactWithShapes","cc.EventListenerPhysicsContact",nullptr); + tolua_cclass(tolua_S,"EventListenerPhysicsContactWithShapes","cc.EventListenerPhysicsContactWithShapes","cc.EventListenerPhysicsContact",nullptr); tolua_beginmodule(tolua_S,"EventListenerPhysicsContactWithShapes"); tolua_function(tolua_S,"hitTest",lua_cocos2dx_physics_EventListenerPhysicsContactWithShapes_hitTest); @@ -7554,7 +7554,7 @@ static int lua_cocos2dx_physics_EventListenerPhysicsContactWithGroup_finalize(lu int lua_register_cocos2dx_physics_EventListenerPhysicsContactWithGroup(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventListenerPhysicsContactWithGroup"); - tolua_cclass(tolua_S,"EventListenerPhysicsContactWithGroup","cc.EventListenerPhysicsContactWithGroup","cc.EventListenerPhysicsContact",nullptr); + tolua_cclass(tolua_S,"EventListenerPhysicsContactWithGroup","cc.EventListenerPhysicsContactWithGroup","cc.EventListenerPhysicsContact",nullptr); tolua_beginmodule(tolua_S,"EventListenerPhysicsContactWithGroup"); tolua_function(tolua_S,"hitTest",lua_cocos2dx_physics_EventListenerPhysicsContactWithGroup_hitTest); @@ -8211,7 +8211,7 @@ static int lua_cocos2dx_physics_PhysicsJointFixed_finalize(lua_State* tolua_S) int lua_register_cocos2dx_physics_PhysicsJointFixed(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.PhysicsJointFixed"); - tolua_cclass(tolua_S,"PhysicsJointFixed","cc.PhysicsJointFixed","cc.PhysicsJoint",nullptr); + tolua_cclass(tolua_S,"PhysicsJointFixed","cc.PhysicsJointFixed","cc.PhysicsJoint",nullptr); tolua_beginmodule(tolua_S,"PhysicsJointFixed"); tolua_function(tolua_S,"construct", lua_cocos2dx_physics_PhysicsJointFixed_construct); @@ -8663,7 +8663,7 @@ static int lua_cocos2dx_physics_PhysicsJointLimit_finalize(lua_State* tolua_S) int lua_register_cocos2dx_physics_PhysicsJointLimit(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.PhysicsJointLimit"); - tolua_cclass(tolua_S,"PhysicsJointLimit","cc.PhysicsJointLimit","cc.PhysicsJoint",nullptr); + tolua_cclass(tolua_S,"PhysicsJointLimit","cc.PhysicsJointLimit","cc.PhysicsJoint",nullptr); tolua_beginmodule(tolua_S,"PhysicsJointLimit"); tolua_function(tolua_S,"setAnchr2",lua_cocos2dx_physics_PhysicsJointLimit_setAnchr2); @@ -8728,7 +8728,7 @@ static int lua_cocos2dx_physics_PhysicsJointPin_finalize(lua_State* tolua_S) int lua_register_cocos2dx_physics_PhysicsJointPin(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.PhysicsJointPin"); - tolua_cclass(tolua_S,"PhysicsJointPin","cc.PhysicsJointPin","cc.PhysicsJoint",nullptr); + tolua_cclass(tolua_S,"PhysicsJointPin","cc.PhysicsJointPin","cc.PhysicsJoint",nullptr); tolua_beginmodule(tolua_S,"PhysicsJointPin"); tolua_function(tolua_S,"construct", lua_cocos2dx_physics_PhysicsJointPin_construct); @@ -8877,7 +8877,7 @@ static int lua_cocos2dx_physics_PhysicsJointDistance_finalize(lua_State* tolua_S int lua_register_cocos2dx_physics_PhysicsJointDistance(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.PhysicsJointDistance"); - tolua_cclass(tolua_S,"PhysicsJointDistance","cc.PhysicsJointDistance","cc.PhysicsJoint",nullptr); + tolua_cclass(tolua_S,"PhysicsJointDistance","cc.PhysicsJointDistance","cc.PhysicsJoint",nullptr); tolua_beginmodule(tolua_S,"PhysicsJointDistance"); tolua_function(tolua_S,"setDistance",lua_cocos2dx_physics_PhysicsJointDistance_setDistance); @@ -9392,7 +9392,7 @@ static int lua_cocos2dx_physics_PhysicsJointSpring_finalize(lua_State* tolua_S) int lua_register_cocos2dx_physics_PhysicsJointSpring(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.PhysicsJointSpring"); - tolua_cclass(tolua_S,"PhysicsJointSpring","cc.PhysicsJointSpring","cc.PhysicsJoint",nullptr); + tolua_cclass(tolua_S,"PhysicsJointSpring","cc.PhysicsJointSpring","cc.PhysicsJoint",nullptr); tolua_beginmodule(tolua_S,"PhysicsJointSpring"); tolua_function(tolua_S,"setAnchr2",lua_cocos2dx_physics_PhysicsJointSpring_setAnchr2); @@ -9733,7 +9733,7 @@ static int lua_cocos2dx_physics_PhysicsJointGroove_finalize(lua_State* tolua_S) int lua_register_cocos2dx_physics_PhysicsJointGroove(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.PhysicsJointGroove"); - tolua_cclass(tolua_S,"PhysicsJointGroove","cc.PhysicsJointGroove","cc.PhysicsJoint",nullptr); + tolua_cclass(tolua_S,"PhysicsJointGroove","cc.PhysicsJointGroove","cc.PhysicsJoint",nullptr); tolua_beginmodule(tolua_S,"PhysicsJointGroove"); tolua_function(tolua_S,"setAnchr2",lua_cocos2dx_physics_PhysicsJointGroove_setAnchr2); @@ -10068,7 +10068,7 @@ static int lua_cocos2dx_physics_PhysicsJointRotarySpring_finalize(lua_State* tol int lua_register_cocos2dx_physics_PhysicsJointRotarySpring(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.PhysicsJointRotarySpring"); - tolua_cclass(tolua_S,"PhysicsJointRotarySpring","cc.PhysicsJointRotarySpring","cc.PhysicsJoint",nullptr); + tolua_cclass(tolua_S,"PhysicsJointRotarySpring","cc.PhysicsJointRotarySpring","cc.PhysicsJoint",nullptr); tolua_beginmodule(tolua_S,"PhysicsJointRotarySpring"); tolua_function(tolua_S,"getDamping",lua_cocos2dx_physics_PhysicsJointRotarySpring_getDamping); @@ -10334,7 +10334,7 @@ static int lua_cocos2dx_physics_PhysicsJointRotaryLimit_finalize(lua_State* tolu int lua_register_cocos2dx_physics_PhysicsJointRotaryLimit(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.PhysicsJointRotaryLimit"); - tolua_cclass(tolua_S,"PhysicsJointRotaryLimit","cc.PhysicsJointRotaryLimit","cc.PhysicsJoint",nullptr); + tolua_cclass(tolua_S,"PhysicsJointRotaryLimit","cc.PhysicsJointRotaryLimit","cc.PhysicsJoint",nullptr); tolua_beginmodule(tolua_S,"PhysicsJointRotaryLimit"); tolua_function(tolua_S,"getMax",lua_cocos2dx_physics_PhysicsJointRotaryLimit_getMax); @@ -10667,7 +10667,7 @@ static int lua_cocos2dx_physics_PhysicsJointRatchet_finalize(lua_State* tolua_S) int lua_register_cocos2dx_physics_PhysicsJointRatchet(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.PhysicsJointRatchet"); - tolua_cclass(tolua_S,"PhysicsJointRatchet","cc.PhysicsJointRatchet","cc.PhysicsJoint",nullptr); + tolua_cclass(tolua_S,"PhysicsJointRatchet","cc.PhysicsJointRatchet","cc.PhysicsJoint",nullptr); tolua_beginmodule(tolua_S,"PhysicsJointRatchet"); tolua_function(tolua_S,"getAngle",lua_cocos2dx_physics_PhysicsJointRatchet_getAngle); @@ -10912,7 +10912,7 @@ static int lua_cocos2dx_physics_PhysicsJointGear_finalize(lua_State* tolua_S) int lua_register_cocos2dx_physics_PhysicsJointGear(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.PhysicsJointGear"); - tolua_cclass(tolua_S,"PhysicsJointGear","cc.PhysicsJointGear","cc.PhysicsJoint",nullptr); + tolua_cclass(tolua_S,"PhysicsJointGear","cc.PhysicsJointGear","cc.PhysicsJoint",nullptr); tolua_beginmodule(tolua_S,"PhysicsJointGear"); tolua_function(tolua_S,"setRatio",lua_cocos2dx_physics_PhysicsJointGear_setRatio); @@ -11063,7 +11063,7 @@ static int lua_cocos2dx_physics_PhysicsJointMotor_finalize(lua_State* tolua_S) int lua_register_cocos2dx_physics_PhysicsJointMotor(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.PhysicsJointMotor"); - tolua_cclass(tolua_S,"PhysicsJointMotor","cc.PhysicsJointMotor","cc.PhysicsJoint",nullptr); + tolua_cclass(tolua_S,"PhysicsJointMotor","cc.PhysicsJointMotor","cc.PhysicsJoint",nullptr); tolua_beginmodule(tolua_S,"PhysicsJointMotor"); tolua_function(tolua_S,"setRate",lua_cocos2dx_physics_PhysicsJointMotor_setRate); diff --git a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_spine_auto.cpp b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_spine_auto.cpp index 15371f935e..55c306c217 100644 --- a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_spine_auto.cpp +++ b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_spine_auto.cpp @@ -329,7 +329,7 @@ static int lua_cocos2dx_spine_Skeleton_finalize(lua_State* tolua_S) int lua_register_cocos2dx_spine_Skeleton(lua_State* tolua_S) { tolua_usertype(tolua_S,"sp.Skeleton"); - tolua_cclass(tolua_S,"Skeleton","sp.Skeleton","cc.Node",nullptr); + tolua_cclass(tolua_S,"Skeleton","sp.Skeleton","cc.Node",nullptr); tolua_beginmodule(tolua_S,"Skeleton"); tolua_function(tolua_S,"setToSetupPose",lua_cocos2dx_spine_Skeleton_setToSetupPose); @@ -558,7 +558,7 @@ static int lua_cocos2dx_spine_SkeletonAnimation_finalize(lua_State* tolua_S) int lua_register_cocos2dx_spine_SkeletonAnimation(lua_State* tolua_S) { tolua_usertype(tolua_S,"sp.SkeletonAnimation"); - tolua_cclass(tolua_S,"SkeletonAnimation","sp.SkeletonAnimation","sp.Skeleton",nullptr); + tolua_cclass(tolua_S,"SkeletonAnimation","sp.SkeletonAnimation","sp.Skeleton",nullptr); tolua_beginmodule(tolua_S,"SkeletonAnimation"); tolua_function(tolua_S,"setMix",lua_cocos2dx_spine_SkeletonAnimation_setMix); diff --git a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_studio_auto.cpp b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_studio_auto.cpp index e3f6fbc01b..d1d6801e3f 100644 --- a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_studio_auto.cpp +++ b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_studio_auto.cpp @@ -5,6 +5,1609 @@ +int lua_cocos2dx_studio_ActionFrame_getAction(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ActionFrame* cobj = nullptr; + bool ok = true; +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionFrame",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (cocostudio::ActionFrame*)tolua_tousertype(tolua_S,1,0); +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionFrame_getAction'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 2) { + double arg0; + ok &= luaval_to_number(tolua_S, 2,&arg0); + + if (!ok) { break; } + cocostudio::ActionFrame* arg1; + ok &= luaval_to_object(tolua_S, 3, "ccs.ActionFrame",&arg1); + + if (!ok) { break; } + cocos2d::ActionInterval* ret = cobj->getAction(arg0, arg1); + object_to_luaval(tolua_S, "cc.ActionInterval",(cocos2d::ActionInterval*)ret); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 1) { + double arg0; + ok &= luaval_to_number(tolua_S, 2,&arg0); + + if (!ok) { break; } + cocos2d::ActionInterval* ret = cobj->getAction(arg0); + object_to_luaval(tolua_S, "cc.ActionInterval",(cocos2d::ActionInterval*)ret); + return 1; + } + }while(0); + ok = true; + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getAction",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionFrame_getAction'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ActionFrame_getFrameType(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ActionFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ActionFrame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionFrame_getFrameType'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + int ret = cobj->getFrameType(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getFrameType",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionFrame_getFrameType'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ActionFrame_setFrameTime(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ActionFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ActionFrame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionFrame_setFrameTime'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0); + if(!ok) + return 0; + cobj->setFrameTime(arg0); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setFrameTime",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionFrame_setFrameTime'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ActionFrame_setEasingType(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ActionFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ActionFrame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionFrame_setEasingType'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0); + if(!ok) + return 0; + cobj->setEasingType(arg0); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setEasingType",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionFrame_setEasingType'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ActionFrame_getFrameTime(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ActionFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ActionFrame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionFrame_getFrameTime'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + double ret = cobj->getFrameTime(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getFrameTime",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionFrame_getFrameTime'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ActionFrame_getFrameIndex(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ActionFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ActionFrame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionFrame_getFrameIndex'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + int ret = cobj->getFrameIndex(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getFrameIndex",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionFrame_getFrameIndex'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ActionFrame_setFrameType(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ActionFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ActionFrame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionFrame_setFrameType'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0); + if(!ok) + return 0; + cobj->setFrameType(arg0); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setFrameType",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionFrame_setFrameType'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ActionFrame_setFrameIndex(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ActionFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ActionFrame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionFrame_setFrameIndex'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0); + if(!ok) + return 0; + cobj->setFrameIndex(arg0); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setFrameIndex",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionFrame_setFrameIndex'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ActionFrame_setEasingParameter(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ActionFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ActionFrame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionFrame_setEasingParameter'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::vector > arg0; + + ok &= luaval_to_std_vector_float(tolua_S, 2, &arg0); + if(!ok) + return 0; + cobj->setEasingParameter(arg0); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setEasingParameter",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionFrame_setEasingParameter'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ActionFrame_getEasingType(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ActionFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ActionFrame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionFrame_getEasingType'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + int ret = cobj->getEasingType(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getEasingType",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionFrame_getEasingType'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ActionFrame_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ActionFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + cobj = new cocostudio::ActionFrame(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ccs.ActionFrame"); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "ActionFrame",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionFrame_constructor'.",&tolua_err); +#endif + + return 0; +} + +static int lua_cocos2dx_studio_ActionFrame_finalize(lua_State* tolua_S) +{ + printf("luabindings: finalizing LUA object (ActionFrame)"); + return 0; +} + +int lua_register_cocos2dx_studio_ActionFrame(lua_State* tolua_S) +{ + tolua_usertype(tolua_S,"ccs.ActionFrame"); + tolua_cclass(tolua_S,"ActionFrame","ccs.ActionFrame","cc.Ref",nullptr); + + tolua_beginmodule(tolua_S,"ActionFrame"); + tolua_function(tolua_S,"new",lua_cocos2dx_studio_ActionFrame_constructor); + tolua_function(tolua_S,"getAction",lua_cocos2dx_studio_ActionFrame_getAction); + tolua_function(tolua_S,"getFrameType",lua_cocos2dx_studio_ActionFrame_getFrameType); + tolua_function(tolua_S,"setFrameTime",lua_cocos2dx_studio_ActionFrame_setFrameTime); + tolua_function(tolua_S,"setEasingType",lua_cocos2dx_studio_ActionFrame_setEasingType); + tolua_function(tolua_S,"getFrameTime",lua_cocos2dx_studio_ActionFrame_getFrameTime); + tolua_function(tolua_S,"getFrameIndex",lua_cocos2dx_studio_ActionFrame_getFrameIndex); + tolua_function(tolua_S,"setFrameType",lua_cocos2dx_studio_ActionFrame_setFrameType); + tolua_function(tolua_S,"setFrameIndex",lua_cocos2dx_studio_ActionFrame_setFrameIndex); + tolua_function(tolua_S,"setEasingParameter",lua_cocos2dx_studio_ActionFrame_setEasingParameter); + tolua_function(tolua_S,"getEasingType",lua_cocos2dx_studio_ActionFrame_getEasingType); + tolua_endmodule(tolua_S); + std::string typeName = typeid(cocostudio::ActionFrame).name(); + g_luaType[typeName] = "ccs.ActionFrame"; + g_typeCast["ActionFrame"] = "ccs.ActionFrame"; + return 1; +} + +int lua_cocos2dx_studio_ActionMoveFrame_setPosition(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ActionMoveFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionMoveFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ActionMoveFrame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionMoveFrame_setPosition'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocos2d::Vec2 arg0; + + ok &= luaval_to_vec2(tolua_S, 2, &arg0); + if(!ok) + return 0; + cobj->setPosition(arg0); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setPosition",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionMoveFrame_setPosition'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ActionMoveFrame_getAction(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ActionMoveFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionMoveFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ActionMoveFrame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionMoveFrame_getAction'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0); + if(!ok) + return 0; + cocos2d::ActionInterval* ret = cobj->getAction(arg0); + object_to_luaval(tolua_S, "cc.ActionInterval",(cocos2d::ActionInterval*)ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getAction",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionMoveFrame_getAction'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ActionMoveFrame_getPosition(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ActionMoveFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionMoveFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ActionMoveFrame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionMoveFrame_getPosition'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + cocos2d::Vec2 ret = cobj->getPosition(); + vec2_to_luaval(tolua_S, ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getPosition",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionMoveFrame_getPosition'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ActionMoveFrame_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ActionMoveFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + cobj = new cocostudio::ActionMoveFrame(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ccs.ActionMoveFrame"); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "ActionMoveFrame",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionMoveFrame_constructor'.",&tolua_err); +#endif + + return 0; +} + +static int lua_cocos2dx_studio_ActionMoveFrame_finalize(lua_State* tolua_S) +{ + printf("luabindings: finalizing LUA object (ActionMoveFrame)"); + return 0; +} + +int lua_register_cocos2dx_studio_ActionMoveFrame(lua_State* tolua_S) +{ + tolua_usertype(tolua_S,"ccs.ActionMoveFrame"); + tolua_cclass(tolua_S,"ActionMoveFrame","ccs.ActionMoveFrame","ccs.ActionFrame",nullptr); + + tolua_beginmodule(tolua_S,"ActionMoveFrame"); + tolua_function(tolua_S,"new",lua_cocos2dx_studio_ActionMoveFrame_constructor); + tolua_function(tolua_S,"setPosition",lua_cocos2dx_studio_ActionMoveFrame_setPosition); + tolua_function(tolua_S,"getAction",lua_cocos2dx_studio_ActionMoveFrame_getAction); + tolua_function(tolua_S,"getPosition",lua_cocos2dx_studio_ActionMoveFrame_getPosition); + tolua_endmodule(tolua_S); + std::string typeName = typeid(cocostudio::ActionMoveFrame).name(); + g_luaType[typeName] = "ccs.ActionMoveFrame"; + g_typeCast["ActionMoveFrame"] = "ccs.ActionMoveFrame"; + return 1; +} + +int lua_cocos2dx_studio_ActionScaleFrame_setScaleY(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ActionScaleFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionScaleFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ActionScaleFrame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionScaleFrame_setScaleY'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0); + if(!ok) + return 0; + cobj->setScaleY(arg0); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setScaleY",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionScaleFrame_setScaleY'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ActionScaleFrame_setScaleX(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ActionScaleFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionScaleFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ActionScaleFrame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionScaleFrame_setScaleX'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0); + if(!ok) + return 0; + cobj->setScaleX(arg0); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setScaleX",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionScaleFrame_setScaleX'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ActionScaleFrame_getScaleY(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ActionScaleFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionScaleFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ActionScaleFrame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionScaleFrame_getScaleY'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + double ret = cobj->getScaleY(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getScaleY",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionScaleFrame_getScaleY'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ActionScaleFrame_getScaleX(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ActionScaleFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionScaleFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ActionScaleFrame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionScaleFrame_getScaleX'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + double ret = cobj->getScaleX(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getScaleX",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionScaleFrame_getScaleX'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ActionScaleFrame_getAction(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ActionScaleFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionScaleFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ActionScaleFrame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionScaleFrame_getAction'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0); + if(!ok) + return 0; + cocos2d::ActionInterval* ret = cobj->getAction(arg0); + object_to_luaval(tolua_S, "cc.ActionInterval",(cocos2d::ActionInterval*)ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getAction",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionScaleFrame_getAction'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ActionScaleFrame_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ActionScaleFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + cobj = new cocostudio::ActionScaleFrame(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ccs.ActionScaleFrame"); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "ActionScaleFrame",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionScaleFrame_constructor'.",&tolua_err); +#endif + + return 0; +} + +static int lua_cocos2dx_studio_ActionScaleFrame_finalize(lua_State* tolua_S) +{ + printf("luabindings: finalizing LUA object (ActionScaleFrame)"); + return 0; +} + +int lua_register_cocos2dx_studio_ActionScaleFrame(lua_State* tolua_S) +{ + tolua_usertype(tolua_S,"ccs.ActionScaleFrame"); + tolua_cclass(tolua_S,"ActionScaleFrame","ccs.ActionScaleFrame","ccs.ActionFrame",nullptr); + + tolua_beginmodule(tolua_S,"ActionScaleFrame"); + tolua_function(tolua_S,"new",lua_cocos2dx_studio_ActionScaleFrame_constructor); + tolua_function(tolua_S,"setScaleY",lua_cocos2dx_studio_ActionScaleFrame_setScaleY); + tolua_function(tolua_S,"setScaleX",lua_cocos2dx_studio_ActionScaleFrame_setScaleX); + tolua_function(tolua_S,"getScaleY",lua_cocos2dx_studio_ActionScaleFrame_getScaleY); + tolua_function(tolua_S,"getScaleX",lua_cocos2dx_studio_ActionScaleFrame_getScaleX); + tolua_function(tolua_S,"getAction",lua_cocos2dx_studio_ActionScaleFrame_getAction); + tolua_endmodule(tolua_S); + std::string typeName = typeid(cocostudio::ActionScaleFrame).name(); + g_luaType[typeName] = "ccs.ActionScaleFrame"; + g_typeCast["ActionScaleFrame"] = "ccs.ActionScaleFrame"; + return 1; +} + +int lua_cocos2dx_studio_ActionRotationFrame_setRotation(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ActionRotationFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionRotationFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ActionRotationFrame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionRotationFrame_setRotation'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0); + if(!ok) + return 0; + cobj->setRotation(arg0); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setRotation",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionRotationFrame_setRotation'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ActionRotationFrame_getAction(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ActionRotationFrame* cobj = nullptr; + bool ok = true; +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionRotationFrame",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (cocostudio::ActionRotationFrame*)tolua_tousertype(tolua_S,1,0); +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionRotationFrame_getAction'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 2) { + double arg0; + ok &= luaval_to_number(tolua_S, 2,&arg0); + + if (!ok) { break; } + cocostudio::ActionFrame* arg1; + ok &= luaval_to_object(tolua_S, 3, "ccs.ActionFrame",&arg1); + + if (!ok) { break; } + cocos2d::ActionInterval* ret = cobj->getAction(arg0, arg1); + object_to_luaval(tolua_S, "cc.ActionInterval",(cocos2d::ActionInterval*)ret); + return 1; + } + }while(0); + ok = true; + do{ + if (argc == 1) { + double arg0; + ok &= luaval_to_number(tolua_S, 2,&arg0); + + if (!ok) { break; } + cocos2d::ActionInterval* ret = cobj->getAction(arg0); + object_to_luaval(tolua_S, "cc.ActionInterval",(cocos2d::ActionInterval*)ret); + return 1; + } + }while(0); + ok = true; + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getAction",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionRotationFrame_getAction'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ActionRotationFrame_getRotation(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ActionRotationFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionRotationFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ActionRotationFrame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionRotationFrame_getRotation'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + double ret = cobj->getRotation(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getRotation",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionRotationFrame_getRotation'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ActionRotationFrame_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ActionRotationFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + cobj = new cocostudio::ActionRotationFrame(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ccs.ActionRotationFrame"); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "ActionRotationFrame",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionRotationFrame_constructor'.",&tolua_err); +#endif + + return 0; +} + +static int lua_cocos2dx_studio_ActionRotationFrame_finalize(lua_State* tolua_S) +{ + printf("luabindings: finalizing LUA object (ActionRotationFrame)"); + return 0; +} + +int lua_register_cocos2dx_studio_ActionRotationFrame(lua_State* tolua_S) +{ + tolua_usertype(tolua_S,"ccs.ActionRotationFrame"); + tolua_cclass(tolua_S,"ActionRotationFrame","ccs.ActionRotationFrame","ccs.ActionFrame",nullptr); + + tolua_beginmodule(tolua_S,"ActionRotationFrame"); + tolua_function(tolua_S,"new",lua_cocos2dx_studio_ActionRotationFrame_constructor); + tolua_function(tolua_S,"setRotation",lua_cocos2dx_studio_ActionRotationFrame_setRotation); + tolua_function(tolua_S,"getAction",lua_cocos2dx_studio_ActionRotationFrame_getAction); + tolua_function(tolua_S,"getRotation",lua_cocos2dx_studio_ActionRotationFrame_getRotation); + tolua_endmodule(tolua_S); + std::string typeName = typeid(cocostudio::ActionRotationFrame).name(); + g_luaType[typeName] = "ccs.ActionRotationFrame"; + g_typeCast["ActionRotationFrame"] = "ccs.ActionRotationFrame"; + return 1; +} + +int lua_cocos2dx_studio_ActionFadeFrame_getOpacity(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ActionFadeFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionFadeFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ActionFadeFrame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionFadeFrame_getOpacity'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + int ret = cobj->getOpacity(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getOpacity",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionFadeFrame_getOpacity'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ActionFadeFrame_getAction(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ActionFadeFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionFadeFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ActionFadeFrame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionFadeFrame_getAction'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0); + if(!ok) + return 0; + cocos2d::ActionInterval* ret = cobj->getAction(arg0); + object_to_luaval(tolua_S, "cc.ActionInterval",(cocos2d::ActionInterval*)ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getAction",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionFadeFrame_getAction'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ActionFadeFrame_setOpacity(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ActionFadeFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionFadeFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ActionFadeFrame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionFadeFrame_setOpacity'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0); + if(!ok) + return 0; + cobj->setOpacity(arg0); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setOpacity",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionFadeFrame_setOpacity'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ActionFadeFrame_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ActionFadeFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + cobj = new cocostudio::ActionFadeFrame(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ccs.ActionFadeFrame"); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "ActionFadeFrame",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionFadeFrame_constructor'.",&tolua_err); +#endif + + return 0; +} + +static int lua_cocos2dx_studio_ActionFadeFrame_finalize(lua_State* tolua_S) +{ + printf("luabindings: finalizing LUA object (ActionFadeFrame)"); + return 0; +} + +int lua_register_cocos2dx_studio_ActionFadeFrame(lua_State* tolua_S) +{ + tolua_usertype(tolua_S,"ccs.ActionFadeFrame"); + tolua_cclass(tolua_S,"ActionFadeFrame","ccs.ActionFadeFrame","ccs.ActionFrame",nullptr); + + tolua_beginmodule(tolua_S,"ActionFadeFrame"); + tolua_function(tolua_S,"new",lua_cocos2dx_studio_ActionFadeFrame_constructor); + tolua_function(tolua_S,"getOpacity",lua_cocos2dx_studio_ActionFadeFrame_getOpacity); + tolua_function(tolua_S,"getAction",lua_cocos2dx_studio_ActionFadeFrame_getAction); + tolua_function(tolua_S,"setOpacity",lua_cocos2dx_studio_ActionFadeFrame_setOpacity); + tolua_endmodule(tolua_S); + std::string typeName = typeid(cocostudio::ActionFadeFrame).name(); + g_luaType[typeName] = "ccs.ActionFadeFrame"; + g_typeCast["ActionFadeFrame"] = "ccs.ActionFadeFrame"; + return 1; +} + +int lua_cocos2dx_studio_ActionTintFrame_getColor(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ActionTintFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionTintFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ActionTintFrame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionTintFrame_getColor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + cocos2d::Color3B ret = cobj->getColor(); + color3b_to_luaval(tolua_S, ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getColor",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionTintFrame_getColor'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ActionTintFrame_getAction(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ActionTintFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionTintFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ActionTintFrame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionTintFrame_getAction'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0); + if(!ok) + return 0; + cocos2d::ActionInterval* ret = cobj->getAction(arg0); + object_to_luaval(tolua_S, "cc.ActionInterval",(cocos2d::ActionInterval*)ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getAction",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionTintFrame_getAction'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ActionTintFrame_setColor(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ActionTintFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionTintFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::ActionTintFrame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionTintFrame_setColor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocos2d::Color3B arg0; + + ok &= luaval_to_color3b(tolua_S, 2, &arg0); + if(!ok) + return 0; + cobj->setColor(arg0); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setColor",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionTintFrame_setColor'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ActionTintFrame_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::ActionTintFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + cobj = new cocostudio::ActionTintFrame(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ccs.ActionTintFrame"); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "ActionTintFrame",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionTintFrame_constructor'.",&tolua_err); +#endif + + return 0; +} + +static int lua_cocos2dx_studio_ActionTintFrame_finalize(lua_State* tolua_S) +{ + printf("luabindings: finalizing LUA object (ActionTintFrame)"); + return 0; +} + +int lua_register_cocos2dx_studio_ActionTintFrame(lua_State* tolua_S) +{ + tolua_usertype(tolua_S,"ccs.ActionTintFrame"); + tolua_cclass(tolua_S,"ActionTintFrame","ccs.ActionTintFrame","ccs.ActionFrame",nullptr); + + tolua_beginmodule(tolua_S,"ActionTintFrame"); + tolua_function(tolua_S,"new",lua_cocos2dx_studio_ActionTintFrame_constructor); + tolua_function(tolua_S,"getColor",lua_cocos2dx_studio_ActionTintFrame_getColor); + tolua_function(tolua_S,"getAction",lua_cocos2dx_studio_ActionTintFrame_getAction); + tolua_function(tolua_S,"setColor",lua_cocos2dx_studio_ActionTintFrame_setColor); + tolua_endmodule(tolua_S); + std::string typeName = typeid(cocostudio::ActionTintFrame).name(); + g_luaType[typeName] = "ccs.ActionTintFrame"; + g_typeCast["ActionTintFrame"] = "ccs.ActionTintFrame"; + return 1; +} + int lua_cocos2dx_studio_ActionObject_setCurrentTime(lua_State* tolua_S) { int argc = 0; @@ -867,7 +2470,7 @@ static int lua_cocos2dx_studio_ActionObject_finalize(lua_State* tolua_S) int lua_register_cocos2dx_studio_ActionObject(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccs.ActionObject"); - tolua_cclass(tolua_S,"ActionObject","ccs.ActionObject","cc.Ref",nullptr); + tolua_cclass(tolua_S,"ActionObject","ccs.ActionObject","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"ActionObject"); tolua_function(tolua_S,"new",lua_cocos2dx_studio_ActionObject_constructor); @@ -1181,7 +2784,7 @@ static int lua_cocos2dx_studio_ActionManagerEx_finalize(lua_State* tolua_S) int lua_register_cocos2dx_studio_ActionManagerEx(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccs.ActionManagerEx"); - tolua_cclass(tolua_S,"ActionManagerEx","ccs.ActionManagerEx","cc.Ref",nullptr); + tolua_cclass(tolua_S,"ActionManagerEx","ccs.ActionManagerEx","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"ActionManagerEx"); tolua_function(tolua_S,"playActionByName",lua_cocos2dx_studio_ActionManagerEx_playActionByName); @@ -1361,7 +2964,7 @@ static int lua_cocos2dx_studio_BaseData_finalize(lua_State* tolua_S) int lua_register_cocos2dx_studio_BaseData(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccs.BaseData"); - tolua_cclass(tolua_S,"BaseData","ccs.BaseData","cc.Ref",nullptr); + tolua_cclass(tolua_S,"BaseData","ccs.BaseData","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"BaseData"); tolua_function(tolua_S,"new",lua_cocos2dx_studio_BaseData_constructor); @@ -1528,7 +3131,7 @@ static int lua_cocos2dx_studio_DisplayData_finalize(lua_State* tolua_S) int lua_register_cocos2dx_studio_DisplayData(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccs.DisplayData"); - tolua_cclass(tolua_S,"DisplayData","ccs.DisplayData","cc.Ref",nullptr); + tolua_cclass(tolua_S,"DisplayData","ccs.DisplayData","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"DisplayData"); tolua_function(tolua_S,"new",lua_cocos2dx_studio_DisplayData_constructor); @@ -1662,7 +3265,7 @@ static int lua_cocos2dx_studio_SpriteDisplayData_finalize(lua_State* tolua_S) int lua_register_cocos2dx_studio_SpriteDisplayData(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccs.SpriteDisplayData"); - tolua_cclass(tolua_S,"SpriteDisplayData","ccs.SpriteDisplayData","ccs.DisplayData",nullptr); + tolua_cclass(tolua_S,"SpriteDisplayData","ccs.SpriteDisplayData","ccs.DisplayData",nullptr); tolua_beginmodule(tolua_S,"SpriteDisplayData"); tolua_function(tolua_S,"new",lua_cocos2dx_studio_SpriteDisplayData_constructor); @@ -1749,7 +3352,7 @@ static int lua_cocos2dx_studio_ArmatureDisplayData_finalize(lua_State* tolua_S) int lua_register_cocos2dx_studio_ArmatureDisplayData(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccs.ArmatureDisplayData"); - tolua_cclass(tolua_S,"ArmatureDisplayData","ccs.ArmatureDisplayData","ccs.DisplayData",nullptr); + tolua_cclass(tolua_S,"ArmatureDisplayData","ccs.ArmatureDisplayData","ccs.DisplayData",nullptr); tolua_beginmodule(tolua_S,"ArmatureDisplayData"); tolua_function(tolua_S,"new",lua_cocos2dx_studio_ArmatureDisplayData_constructor); @@ -1835,7 +3438,7 @@ static int lua_cocos2dx_studio_ParticleDisplayData_finalize(lua_State* tolua_S) int lua_register_cocos2dx_studio_ParticleDisplayData(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccs.ParticleDisplayData"); - tolua_cclass(tolua_S,"ParticleDisplayData","ccs.ParticleDisplayData","ccs.DisplayData",nullptr); + tolua_cclass(tolua_S,"ParticleDisplayData","ccs.ParticleDisplayData","ccs.DisplayData",nullptr); tolua_beginmodule(tolua_S,"ParticleDisplayData"); tolua_function(tolua_S,"new",lua_cocos2dx_studio_ParticleDisplayData_constructor); @@ -2058,7 +3661,7 @@ static int lua_cocos2dx_studio_BoneData_finalize(lua_State* tolua_S) int lua_register_cocos2dx_studio_BoneData(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccs.BoneData"); - tolua_cclass(tolua_S,"BoneData","ccs.BoneData","ccs.BaseData",nullptr); + tolua_cclass(tolua_S,"BoneData","ccs.BoneData","ccs.BaseData",nullptr); tolua_beginmodule(tolua_S,"BoneData"); tolua_function(tolua_S,"new",lua_cocos2dx_studio_BoneData_constructor); @@ -2284,7 +3887,7 @@ static int lua_cocos2dx_studio_ArmatureData_finalize(lua_State* tolua_S) int lua_register_cocos2dx_studio_ArmatureData(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccs.ArmatureData"); - tolua_cclass(tolua_S,"ArmatureData","ccs.ArmatureData","cc.Ref",nullptr); + tolua_cclass(tolua_S,"ArmatureData","ccs.ArmatureData","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"ArmatureData"); tolua_function(tolua_S,"new",lua_cocos2dx_studio_ArmatureData_constructor); @@ -2419,7 +4022,7 @@ static int lua_cocos2dx_studio_FrameData_finalize(lua_State* tolua_S) int lua_register_cocos2dx_studio_FrameData(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccs.FrameData"); - tolua_cclass(tolua_S,"FrameData","ccs.FrameData","ccs.BaseData",nullptr); + tolua_cclass(tolua_S,"FrameData","ccs.FrameData","ccs.BaseData",nullptr); tolua_beginmodule(tolua_S,"FrameData"); tolua_function(tolua_S,"new",lua_cocos2dx_studio_FrameData_constructor); @@ -2643,7 +4246,7 @@ static int lua_cocos2dx_studio_MovementBoneData_finalize(lua_State* tolua_S) int lua_register_cocos2dx_studio_MovementBoneData(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccs.MovementBoneData"); - tolua_cclass(tolua_S,"MovementBoneData","ccs.MovementBoneData","cc.Ref",nullptr); + tolua_cclass(tolua_S,"MovementBoneData","ccs.MovementBoneData","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"MovementBoneData"); tolua_function(tolua_S,"new",lua_cocos2dx_studio_MovementBoneData_constructor); @@ -2825,7 +4428,7 @@ static int lua_cocos2dx_studio_MovementData_finalize(lua_State* tolua_S) int lua_register_cocos2dx_studio_MovementData(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccs.MovementData"); - tolua_cclass(tolua_S,"MovementData","ccs.MovementData","cc.Ref",nullptr); + tolua_cclass(tolua_S,"MovementData","ccs.MovementData","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"MovementData"); tolua_function(tolua_S,"new",lua_cocos2dx_studio_MovementData_constructor); @@ -3050,7 +4653,7 @@ static int lua_cocos2dx_studio_AnimationData_finalize(lua_State* tolua_S) int lua_register_cocos2dx_studio_AnimationData(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccs.AnimationData"); - tolua_cclass(tolua_S,"AnimationData","ccs.AnimationData","cc.Ref",nullptr); + tolua_cclass(tolua_S,"AnimationData","ccs.AnimationData","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"AnimationData"); tolua_function(tolua_S,"new",lua_cocos2dx_studio_AnimationData_constructor); @@ -3229,7 +4832,7 @@ static int lua_cocos2dx_studio_ContourData_finalize(lua_State* tolua_S) int lua_register_cocos2dx_studio_ContourData(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccs.ContourData"); - tolua_cclass(tolua_S,"ContourData","ccs.ContourData","cc.Ref",nullptr); + tolua_cclass(tolua_S,"ContourData","ccs.ContourData","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"ContourData"); tolua_function(tolua_S,"new",lua_cocos2dx_studio_ContourData_constructor); @@ -3454,7 +5057,7 @@ static int lua_cocos2dx_studio_TextureData_finalize(lua_State* tolua_S) int lua_register_cocos2dx_studio_TextureData(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccs.TextureData"); - tolua_cclass(tolua_S,"TextureData","ccs.TextureData","cc.Ref",nullptr); + tolua_cclass(tolua_S,"TextureData","ccs.TextureData","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"TextureData"); tolua_function(tolua_S,"new",lua_cocos2dx_studio_TextureData_constructor); @@ -3832,7 +5435,7 @@ static int lua_cocos2dx_studio_Tween_finalize(lua_State* tolua_S) int lua_register_cocos2dx_studio_Tween(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccs.Tween"); - tolua_cclass(tolua_S,"Tween","ccs.Tween","ccs.ProcessBase",nullptr); + tolua_cclass(tolua_S,"Tween","ccs.Tween","ccs.ProcessBase",nullptr); tolua_beginmodule(tolua_S,"Tween"); tolua_function(tolua_S,"new",lua_cocos2dx_studio_Tween_constructor); @@ -4769,7 +6372,7 @@ static int lua_cocos2dx_studio_DisplayManager_finalize(lua_State* tolua_S) int lua_register_cocos2dx_studio_DisplayManager(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccs.DisplayManager"); - tolua_cclass(tolua_S,"DisplayManager","ccs.DisplayManager","cc.Ref",nullptr); + tolua_cclass(tolua_S,"DisplayManager","ccs.DisplayManager","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"DisplayManager"); tolua_function(tolua_S,"new",lua_cocos2dx_studio_DisplayManager_constructor); @@ -6306,7 +7909,7 @@ static int lua_cocos2dx_studio_Bone_finalize(lua_State* tolua_S) int lua_register_cocos2dx_studio_Bone(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccs.Bone"); - tolua_cclass(tolua_S,"Bone","ccs.Bone","cc.Node",nullptr); + tolua_cclass(tolua_S,"Bone","ccs.Bone","cc.Node",nullptr); tolua_beginmodule(tolua_S,"Bone"); tolua_function(tolua_S,"new",lua_cocos2dx_studio_Bone_constructor); @@ -6433,7 +8036,7 @@ static int lua_cocos2dx_studio_BatchNode_finalize(lua_State* tolua_S) int lua_register_cocos2dx_studio_BatchNode(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccs.BatchNode"); - tolua_cclass(tolua_S,"BatchNode","ccs.BatchNode","cc.Node",nullptr); + tolua_cclass(tolua_S,"BatchNode","ccs.BatchNode","cc.Node",nullptr); tolua_beginmodule(tolua_S,"BatchNode"); tolua_function(tolua_S,"init",lua_cocos2dx_studio_BatchNode_init); @@ -7403,7 +9006,7 @@ static int lua_cocos2dx_studio_ArmatureAnimation_finalize(lua_State* tolua_S) int lua_register_cocos2dx_studio_ArmatureAnimation(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccs.ArmatureAnimation"); - tolua_cclass(tolua_S,"ArmatureAnimation","ccs.ArmatureAnimation","ccs.ProcessBase",nullptr); + tolua_cclass(tolua_S,"ArmatureAnimation","ccs.ArmatureAnimation","ccs.ProcessBase",nullptr); tolua_beginmodule(tolua_S,"ArmatureAnimation"); tolua_function(tolua_S,"new",lua_cocos2dx_studio_ArmatureAnimation_constructor); @@ -8368,7 +9971,7 @@ static int lua_cocos2dx_studio_ArmatureDataManager_finalize(lua_State* tolua_S) int lua_register_cocos2dx_studio_ArmatureDataManager(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccs.ArmatureDataManager"); - tolua_cclass(tolua_S,"ArmatureDataManager","ccs.ArmatureDataManager","cc.Ref",nullptr); + tolua_cclass(tolua_S,"ArmatureDataManager","ccs.ArmatureDataManager","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"ArmatureDataManager"); tolua_function(tolua_S,"getAnimationDatas",lua_cocos2dx_studio_ArmatureDataManager_getAnimationDatas); @@ -9436,7 +11039,7 @@ static int lua_cocos2dx_studio_Armature_finalize(lua_State* tolua_S) int lua_register_cocos2dx_studio_Armature(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccs.Armature"); - tolua_cclass(tolua_S,"Armature","ccs.Armature","cc.Node",nullptr); + tolua_cclass(tolua_S,"Armature","ccs.Armature","cc.Node",nullptr); tolua_beginmodule(tolua_S,"Armature"); tolua_function(tolua_S,"new",lua_cocos2dx_studio_Armature_constructor); @@ -9904,7 +11507,7 @@ static int lua_cocos2dx_studio_Skin_finalize(lua_State* tolua_S) int lua_register_cocos2dx_studio_Skin(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccs.Skin"); - tolua_cclass(tolua_S,"Skin","ccs.Skin","cc.Sprite",nullptr); + tolua_cclass(tolua_S,"Skin","ccs.Skin","cc.Sprite",nullptr); tolua_beginmodule(tolua_S,"Skin"); tolua_function(tolua_S,"new",lua_cocos2dx_studio_Skin_constructor); @@ -10482,7 +12085,7 @@ static int lua_cocos2dx_studio_ComAttribute_finalize(lua_State* tolua_S) int lua_register_cocos2dx_studio_ComAttribute(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccs.ComAttribute"); - tolua_cclass(tolua_S,"ComAttribute","ccs.ComAttribute","cc.Component",nullptr); + tolua_cclass(tolua_S,"ComAttribute","ccs.ComAttribute","cc.Component",nullptr); tolua_beginmodule(tolua_S,"ComAttribute"); tolua_function(tolua_S,"getFloat",lua_cocos2dx_studio_ComAttribute_getFloat); @@ -11779,7 +13382,7 @@ static int lua_cocos2dx_studio_ComAudio_finalize(lua_State* tolua_S) int lua_register_cocos2dx_studio_ComAudio(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccs.ComAudio"); - tolua_cclass(tolua_S,"ComAudio","ccs.ComAudio","cc.Component",nullptr); + tolua_cclass(tolua_S,"ComAudio","ccs.ComAudio","cc.Component",nullptr); tolua_beginmodule(tolua_S,"ComAudio"); tolua_function(tolua_S,"stopAllEffects",lua_cocos2dx_studio_ComAudio_stopAllEffects); @@ -11922,7 +13525,7 @@ static int lua_cocos2dx_studio_ComController_finalize(lua_State* tolua_S) int lua_register_cocos2dx_studio_ComController(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccs.ComController"); - tolua_cclass(tolua_S,"ComController","ccs.ComController","cc.Component",nullptr); + tolua_cclass(tolua_S,"ComController","ccs.ComController","cc.Component",nullptr); tolua_beginmodule(tolua_S,"ComController"); tolua_function(tolua_S,"new",lua_cocos2dx_studio_ComController_constructor); @@ -12113,7 +13716,7 @@ static int lua_cocos2dx_studio_ComRender_finalize(lua_State* tolua_S) int lua_register_cocos2dx_studio_ComRender(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccs.ComRender"); - tolua_cclass(tolua_S,"ComRender","ccs.ComRender","cc.Component",nullptr); + tolua_cclass(tolua_S,"ComRender","ccs.ComRender","cc.Component",nullptr); tolua_beginmodule(tolua_S,"ComRender"); tolua_function(tolua_S,"setNode",lua_cocos2dx_studio_ComRender_setNode); @@ -12428,7 +14031,7 @@ static int lua_cocos2dx_studio_GUIReader_finalize(lua_State* tolua_S) int lua_register_cocos2dx_studio_GUIReader(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccs.GUIReader"); - tolua_cclass(tolua_S,"GUIReader","ccs.GUIReader","cc.Ref",nullptr); + tolua_cclass(tolua_S,"GUIReader","ccs.GUIReader","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"GUIReader"); tolua_function(tolua_S,"setFilePath",lua_cocos2dx_studio_GUIReader_setFilePath); @@ -12765,6 +14368,4696 @@ int lua_register_cocos2dx_studio_SceneReader(lua_State* tolua_S) return 1; } +int lua_cocos2dx_studio_NodeReader_setJsonPath(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::NodeReader* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.NodeReader",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::NodeReader*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_NodeReader_setJsonPath'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string arg0; + + ok &= luaval_to_std_string(tolua_S, 2,&arg0); + if(!ok) + return 0; + cobj->setJsonPath(arg0); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setJsonPath",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_NodeReader_setJsonPath'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_NodeReader_createNode(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::NodeReader* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.NodeReader",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::NodeReader*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_NodeReader_createNode'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string arg0; + + ok &= luaval_to_std_string(tolua_S, 2,&arg0); + if(!ok) + return 0; + cocos2d::Node* ret = cobj->createNode(arg0); + object_to_luaval(tolua_S, "cc.Node",(cocos2d::Node*)ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "createNode",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_NodeReader_createNode'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_NodeReader_loadNodeWithFile(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::NodeReader* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.NodeReader",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::NodeReader*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_NodeReader_loadNodeWithFile'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string arg0; + + ok &= luaval_to_std_string(tolua_S, 2,&arg0); + if(!ok) + return 0; + cocos2d::Node* ret = cobj->loadNodeWithFile(arg0); + object_to_luaval(tolua_S, "cc.Node",(cocos2d::Node*)ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "loadNodeWithFile",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_NodeReader_loadNodeWithFile'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_NodeReader_purge(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::NodeReader* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.NodeReader",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::NodeReader*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_NodeReader_purge'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + cobj->purge(); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "purge",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_NodeReader_purge'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_NodeReader_init(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::NodeReader* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.NodeReader",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::NodeReader*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_NodeReader_init'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + cobj->init(); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "init",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_NodeReader_init'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_NodeReader_loadNodeWithContent(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::NodeReader* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.NodeReader",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::NodeReader*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_NodeReader_loadNodeWithContent'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string arg0; + + ok &= luaval_to_std_string(tolua_S, 2,&arg0); + if(!ok) + return 0; + cocos2d::Node* ret = cobj->loadNodeWithContent(arg0); + object_to_luaval(tolua_S, "cc.Node",(cocos2d::Node*)ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "loadNodeWithContent",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_NodeReader_loadNodeWithContent'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_NodeReader_isRecordJsonPath(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::NodeReader* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.NodeReader",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::NodeReader*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_NodeReader_isRecordJsonPath'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + bool ret = cobj->isRecordJsonPath(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "isRecordJsonPath",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_NodeReader_isRecordJsonPath'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_NodeReader_getJsonPath(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::NodeReader* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.NodeReader",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::NodeReader*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_NodeReader_getJsonPath'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + std::string ret = cobj->getJsonPath(); + tolua_pushcppstring(tolua_S,ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getJsonPath",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_NodeReader_getJsonPath'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_NodeReader_setRecordJsonPath(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::NodeReader* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.NodeReader",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::NodeReader*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_NodeReader_setRecordJsonPath'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0); + if(!ok) + return 0; + cobj->setRecordJsonPath(arg0); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setRecordJsonPath",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_NodeReader_setRecordJsonPath'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_NodeReader_destroyInstance(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,"ccs.NodeReader",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 0) + { + if(!ok) + return 0; + cocostudio::timeline::NodeReader::destroyInstance(); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "destroyInstance",argc, 0); + return 0; +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_NodeReader_destroyInstance'.",&tolua_err); +#endif + return 0; +} +int lua_cocos2dx_studio_NodeReader_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::NodeReader* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + cobj = new cocostudio::timeline::NodeReader(); + tolua_pushusertype(tolua_S,(void*)cobj,"ccs.NodeReader"); + tolua_register_gc(tolua_S,lua_gettop(tolua_S)); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "NodeReader",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_NodeReader_constructor'.",&tolua_err); +#endif + + return 0; +} + +static int lua_cocos2dx_studio_NodeReader_finalize(lua_State* tolua_S) +{ + printf("luabindings: finalizing LUA object (NodeReader)"); + return 0; +} + +int lua_register_cocos2dx_studio_NodeReader(lua_State* tolua_S) +{ + tolua_usertype(tolua_S,"ccs.NodeReader"); + tolua_cclass(tolua_S,"NodeReader","ccs.NodeReader","",nullptr); + + tolua_beginmodule(tolua_S,"NodeReader"); + tolua_function(tolua_S,"new",lua_cocos2dx_studio_NodeReader_constructor); + tolua_function(tolua_S,"setJsonPath",lua_cocos2dx_studio_NodeReader_setJsonPath); + tolua_function(tolua_S,"createNode",lua_cocos2dx_studio_NodeReader_createNode); + tolua_function(tolua_S,"loadNodeWithFile",lua_cocos2dx_studio_NodeReader_loadNodeWithFile); + tolua_function(tolua_S,"purge",lua_cocos2dx_studio_NodeReader_purge); + tolua_function(tolua_S,"init",lua_cocos2dx_studio_NodeReader_init); + tolua_function(tolua_S,"loadNodeWithContent",lua_cocos2dx_studio_NodeReader_loadNodeWithContent); + tolua_function(tolua_S,"isRecordJsonPath",lua_cocos2dx_studio_NodeReader_isRecordJsonPath); + tolua_function(tolua_S,"getJsonPath",lua_cocos2dx_studio_NodeReader_getJsonPath); + tolua_function(tolua_S,"setRecordJsonPath",lua_cocos2dx_studio_NodeReader_setRecordJsonPath); + tolua_function(tolua_S,"destroyInstance", lua_cocos2dx_studio_NodeReader_destroyInstance); + tolua_endmodule(tolua_S); + std::string typeName = typeid(cocostudio::timeline::NodeReader).name(); + g_luaType[typeName] = "ccs.NodeReader"; + g_typeCast["NodeReader"] = "ccs.NodeReader"; + return 1; +} + +int lua_cocos2dx_studio_ActionTimelineCache_createAction(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ActionTimelineCache* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimelineCache",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ActionTimelineCache*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionTimelineCache_createAction'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string arg0; + + ok &= luaval_to_std_string(tolua_S, 2,&arg0); + if(!ok) + return 0; + cocostudio::timeline::ActionTimeline* ret = cobj->createAction(arg0); + object_to_luaval(tolua_S, "ccs.ActionTimeline",(cocostudio::timeline::ActionTimeline*)ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "createAction",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionTimelineCache_createAction'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ActionTimelineCache_purge(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ActionTimelineCache* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimelineCache",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ActionTimelineCache*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionTimelineCache_purge'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + cobj->purge(); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "purge",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionTimelineCache_purge'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ActionTimelineCache_init(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ActionTimelineCache* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimelineCache",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ActionTimelineCache*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionTimelineCache_init'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + cobj->init(); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "init",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionTimelineCache_init'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ActionTimelineCache_loadAnimationActionWithContent(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ActionTimelineCache* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimelineCache",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ActionTimelineCache*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionTimelineCache_loadAnimationActionWithContent'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + std::string arg0; + std::string arg1; + + ok &= luaval_to_std_string(tolua_S, 2,&arg0); + + ok &= luaval_to_std_string(tolua_S, 3,&arg1); + if(!ok) + return 0; + cocostudio::timeline::ActionTimeline* ret = cobj->loadAnimationActionWithContent(arg0, arg1); + object_to_luaval(tolua_S, "ccs.ActionTimeline",(cocostudio::timeline::ActionTimeline*)ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "loadAnimationActionWithContent",argc, 2); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionTimelineCache_loadAnimationActionWithContent'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ActionTimelineCache_loadAnimationActionWithFile(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ActionTimelineCache* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimelineCache",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ActionTimelineCache*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionTimelineCache_loadAnimationActionWithFile'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string arg0; + + ok &= luaval_to_std_string(tolua_S, 2,&arg0); + if(!ok) + return 0; + cocostudio::timeline::ActionTimeline* ret = cobj->loadAnimationActionWithFile(arg0); + object_to_luaval(tolua_S, "ccs.ActionTimeline",(cocostudio::timeline::ActionTimeline*)ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "loadAnimationActionWithFile",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionTimelineCache_loadAnimationActionWithFile'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ActionTimelineCache_removeAction(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ActionTimelineCache* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimelineCache",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ActionTimelineCache*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionTimelineCache_removeAction'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string arg0; + + ok &= luaval_to_std_string(tolua_S, 2,&arg0); + if(!ok) + return 0; + cobj->removeAction(arg0); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "removeAction",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionTimelineCache_removeAction'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ActionTimelineCache_destroyInstance(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,"ccs.ActionTimelineCache",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 0) + { + if(!ok) + return 0; + cocostudio::timeline::ActionTimelineCache::destroyInstance(); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "destroyInstance",argc, 0); + return 0; +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionTimelineCache_destroyInstance'.",&tolua_err); +#endif + return 0; +} +static int lua_cocos2dx_studio_ActionTimelineCache_finalize(lua_State* tolua_S) +{ + printf("luabindings: finalizing LUA object (ActionTimelineCache)"); + return 0; +} + +int lua_register_cocos2dx_studio_ActionTimelineCache(lua_State* tolua_S) +{ + tolua_usertype(tolua_S,"ccs.ActionTimelineCache"); + tolua_cclass(tolua_S,"ActionTimelineCache","ccs.ActionTimelineCache","",nullptr); + + tolua_beginmodule(tolua_S,"ActionTimelineCache"); + tolua_function(tolua_S,"createAction",lua_cocos2dx_studio_ActionTimelineCache_createAction); + tolua_function(tolua_S,"purge",lua_cocos2dx_studio_ActionTimelineCache_purge); + tolua_function(tolua_S,"init",lua_cocos2dx_studio_ActionTimelineCache_init); + tolua_function(tolua_S,"loadAnimationActionWithContent",lua_cocos2dx_studio_ActionTimelineCache_loadAnimationActionWithContent); + tolua_function(tolua_S,"loadAnimationActionWithFile",lua_cocos2dx_studio_ActionTimelineCache_loadAnimationActionWithFile); + tolua_function(tolua_S,"removeAction",lua_cocos2dx_studio_ActionTimelineCache_removeAction); + tolua_function(tolua_S,"destroyInstance", lua_cocos2dx_studio_ActionTimelineCache_destroyInstance); + tolua_endmodule(tolua_S); + std::string typeName = typeid(cocostudio::timeline::ActionTimelineCache).name(); + g_luaType[typeName] = "ccs.ActionTimelineCache"; + g_typeCast["ActionTimelineCache"] = "ccs.ActionTimelineCache"; + return 1; +} + +int lua_cocos2dx_studio_Frame_clone(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::Frame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Frame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::Frame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Frame_clone'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + cocostudio::timeline::Frame* ret = cobj->clone(); + object_to_luaval(tolua_S, "ccs.Frame",(cocostudio::timeline::Frame*)ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "clone",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Frame_clone'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_Frame_setNode(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::Frame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Frame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::Frame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Frame_setNode'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocos2d::Node* arg0; + + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); + if(!ok) + return 0; + cobj->setNode(arg0); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setNode",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Frame_setNode'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_Frame_setTimeline(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::Frame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Frame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::Frame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Frame_setTimeline'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocostudio::timeline::Timeline* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ccs.Timeline",&arg0); + if(!ok) + return 0; + cobj->setTimeline(arg0); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setTimeline",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Frame_setTimeline'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_Frame_getFrameIndex(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::Frame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Frame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::Frame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Frame_getFrameIndex'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + unsigned int ret = cobj->getFrameIndex(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getFrameIndex",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Frame_getFrameIndex'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_Frame_apply(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::Frame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Frame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::Frame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Frame_apply'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0); + if(!ok) + return 0; + cobj->apply(arg0); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "apply",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Frame_apply'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_Frame_isTween(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::Frame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Frame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::Frame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Frame_isTween'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + bool ret = cobj->isTween(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "isTween",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Frame_isTween'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_Frame_setFrameIndex(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::Frame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Frame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::Frame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Frame_setFrameIndex'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + unsigned int arg0; + + ok &= luaval_to_uint32(tolua_S, 2,&arg0); + if(!ok) + return 0; + cobj->setFrameIndex(arg0); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setFrameIndex",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Frame_setFrameIndex'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_Frame_setTween(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::Frame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Frame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::Frame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Frame_setTween'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0); + if(!ok) + return 0; + cobj->setTween(arg0); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setTween",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Frame_setTween'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_Frame_getTimeline(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::Frame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Frame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::Frame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Frame_getTimeline'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + cocostudio::timeline::Timeline* ret = cobj->getTimeline(); + object_to_luaval(tolua_S, "ccs.Timeline",(cocostudio::timeline::Timeline*)ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getTimeline",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Frame_getTimeline'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_Frame_getNode(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::Frame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Frame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::Frame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Frame_getNode'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + cocos2d::Node* ret = cobj->getNode(); + object_to_luaval(tolua_S, "cc.Node",(cocos2d::Node*)ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getNode",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Frame_getNode'.",&tolua_err); +#endif + + return 0; +} +static int lua_cocos2dx_studio_Frame_finalize(lua_State* tolua_S) +{ + printf("luabindings: finalizing LUA object (Frame)"); + return 0; +} + +int lua_register_cocos2dx_studio_Frame(lua_State* tolua_S) +{ + tolua_usertype(tolua_S,"ccs.Frame"); + tolua_cclass(tolua_S,"Frame","ccs.Frame","cc.Ref",nullptr); + + tolua_beginmodule(tolua_S,"Frame"); + tolua_function(tolua_S,"clone",lua_cocos2dx_studio_Frame_clone); + tolua_function(tolua_S,"setNode",lua_cocos2dx_studio_Frame_setNode); + tolua_function(tolua_S,"setTimeline",lua_cocos2dx_studio_Frame_setTimeline); + tolua_function(tolua_S,"getFrameIndex",lua_cocos2dx_studio_Frame_getFrameIndex); + tolua_function(tolua_S,"apply",lua_cocos2dx_studio_Frame_apply); + tolua_function(tolua_S,"isTween",lua_cocos2dx_studio_Frame_isTween); + tolua_function(tolua_S,"setFrameIndex",lua_cocos2dx_studio_Frame_setFrameIndex); + tolua_function(tolua_S,"setTween",lua_cocos2dx_studio_Frame_setTween); + tolua_function(tolua_S,"getTimeline",lua_cocos2dx_studio_Frame_getTimeline); + tolua_function(tolua_S,"getNode",lua_cocos2dx_studio_Frame_getNode); + tolua_endmodule(tolua_S); + std::string typeName = typeid(cocostudio::timeline::Frame).name(); + g_luaType[typeName] = "ccs.Frame"; + g_typeCast["Frame"] = "ccs.Frame"; + return 1; +} + +int lua_cocos2dx_studio_VisibleFrame_isVisible(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::VisibleFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.VisibleFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::VisibleFrame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_VisibleFrame_isVisible'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + bool ret = cobj->isVisible(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "isVisible",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_VisibleFrame_isVisible'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_VisibleFrame_setVisible(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::VisibleFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.VisibleFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::VisibleFrame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_VisibleFrame_setVisible'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + bool arg0; + + ok &= luaval_to_boolean(tolua_S, 2,&arg0); + if(!ok) + return 0; + cobj->setVisible(arg0); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setVisible",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_VisibleFrame_setVisible'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_VisibleFrame_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,"ccs.VisibleFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 0) + { + if(!ok) + return 0; + cocostudio::timeline::VisibleFrame* ret = cocostudio::timeline::VisibleFrame::create(); + object_to_luaval(tolua_S, "ccs.VisibleFrame",(cocostudio::timeline::VisibleFrame*)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_studio_VisibleFrame_create'.",&tolua_err); +#endif + return 0; +} +int lua_cocos2dx_studio_VisibleFrame_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::VisibleFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + cobj = new cocostudio::timeline::VisibleFrame(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ccs.VisibleFrame"); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "VisibleFrame",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_VisibleFrame_constructor'.",&tolua_err); +#endif + + return 0; +} + +static int lua_cocos2dx_studio_VisibleFrame_finalize(lua_State* tolua_S) +{ + printf("luabindings: finalizing LUA object (VisibleFrame)"); + return 0; +} + +int lua_register_cocos2dx_studio_VisibleFrame(lua_State* tolua_S) +{ + tolua_usertype(tolua_S,"ccs.VisibleFrame"); + tolua_cclass(tolua_S,"VisibleFrame","ccs.VisibleFrame","ccs.Frame",nullptr); + + tolua_beginmodule(tolua_S,"VisibleFrame"); + tolua_function(tolua_S,"new",lua_cocos2dx_studio_VisibleFrame_constructor); + tolua_function(tolua_S,"isVisible",lua_cocos2dx_studio_VisibleFrame_isVisible); + tolua_function(tolua_S,"setVisible",lua_cocos2dx_studio_VisibleFrame_setVisible); + tolua_function(tolua_S,"create", lua_cocos2dx_studio_VisibleFrame_create); + tolua_endmodule(tolua_S); + std::string typeName = typeid(cocostudio::timeline::VisibleFrame).name(); + g_luaType[typeName] = "ccs.VisibleFrame"; + g_typeCast["VisibleFrame"] = "ccs.VisibleFrame"; + return 1; +} + +int lua_cocos2dx_studio_TextureFrame_getTextureName(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::TextureFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.TextureFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::TextureFrame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_TextureFrame_getTextureName'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + std::string ret = cobj->getTextureName(); + tolua_pushcppstring(tolua_S,ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getTextureName",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_TextureFrame_getTextureName'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_TextureFrame_setNode(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::TextureFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.TextureFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::TextureFrame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_TextureFrame_setNode'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocos2d::Node* arg0; + + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); + if(!ok) + return 0; + cobj->setNode(arg0); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setNode",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_TextureFrame_setNode'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_TextureFrame_setTextureName(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::TextureFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.TextureFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::TextureFrame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_TextureFrame_setTextureName'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string arg0; + + ok &= luaval_to_std_string(tolua_S, 2,&arg0); + if(!ok) + return 0; + cobj->setTextureName(arg0); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setTextureName",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_TextureFrame_setTextureName'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_TextureFrame_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,"ccs.TextureFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 0) + { + if(!ok) + return 0; + cocostudio::timeline::TextureFrame* ret = cocostudio::timeline::TextureFrame::create(); + object_to_luaval(tolua_S, "ccs.TextureFrame",(cocostudio::timeline::TextureFrame*)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_studio_TextureFrame_create'.",&tolua_err); +#endif + return 0; +} +int lua_cocos2dx_studio_TextureFrame_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::TextureFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + cobj = new cocostudio::timeline::TextureFrame(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ccs.TextureFrame"); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "TextureFrame",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_TextureFrame_constructor'.",&tolua_err); +#endif + + return 0; +} + +static int lua_cocos2dx_studio_TextureFrame_finalize(lua_State* tolua_S) +{ + printf("luabindings: finalizing LUA object (TextureFrame)"); + return 0; +} + +int lua_register_cocos2dx_studio_TextureFrame(lua_State* tolua_S) +{ + tolua_usertype(tolua_S,"ccs.TextureFrame"); + tolua_cclass(tolua_S,"TextureFrame","ccs.TextureFrame","ccs.Frame",nullptr); + + tolua_beginmodule(tolua_S,"TextureFrame"); + tolua_function(tolua_S,"new",lua_cocos2dx_studio_TextureFrame_constructor); + tolua_function(tolua_S,"getTextureName",lua_cocos2dx_studio_TextureFrame_getTextureName); + tolua_function(tolua_S,"setNode",lua_cocos2dx_studio_TextureFrame_setNode); + tolua_function(tolua_S,"setTextureName",lua_cocos2dx_studio_TextureFrame_setTextureName); + tolua_function(tolua_S,"create", lua_cocos2dx_studio_TextureFrame_create); + tolua_endmodule(tolua_S); + std::string typeName = typeid(cocostudio::timeline::TextureFrame).name(); + g_luaType[typeName] = "ccs.TextureFrame"; + g_typeCast["TextureFrame"] = "ccs.TextureFrame"; + return 1; +} + +int lua_cocos2dx_studio_RotationFrame_setRotation(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::RotationFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.RotationFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::RotationFrame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_RotationFrame_setRotation'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0); + if(!ok) + return 0; + cobj->setRotation(arg0); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setRotation",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_RotationFrame_setRotation'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_RotationFrame_getRotation(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::RotationFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.RotationFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::RotationFrame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_RotationFrame_getRotation'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + double ret = cobj->getRotation(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getRotation",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_RotationFrame_getRotation'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_RotationFrame_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,"ccs.RotationFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 0) + { + if(!ok) + return 0; + cocostudio::timeline::RotationFrame* ret = cocostudio::timeline::RotationFrame::create(); + object_to_luaval(tolua_S, "ccs.RotationFrame",(cocostudio::timeline::RotationFrame*)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_studio_RotationFrame_create'.",&tolua_err); +#endif + return 0; +} +int lua_cocos2dx_studio_RotationFrame_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::RotationFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + cobj = new cocostudio::timeline::RotationFrame(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ccs.RotationFrame"); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "RotationFrame",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_RotationFrame_constructor'.",&tolua_err); +#endif + + return 0; +} + +static int lua_cocos2dx_studio_RotationFrame_finalize(lua_State* tolua_S) +{ + printf("luabindings: finalizing LUA object (RotationFrame)"); + return 0; +} + +int lua_register_cocos2dx_studio_RotationFrame(lua_State* tolua_S) +{ + tolua_usertype(tolua_S,"ccs.RotationFrame"); + tolua_cclass(tolua_S,"RotationFrame","ccs.RotationFrame","ccs.Frame",nullptr); + + tolua_beginmodule(tolua_S,"RotationFrame"); + tolua_function(tolua_S,"new",lua_cocos2dx_studio_RotationFrame_constructor); + tolua_function(tolua_S,"setRotation",lua_cocos2dx_studio_RotationFrame_setRotation); + tolua_function(tolua_S,"getRotation",lua_cocos2dx_studio_RotationFrame_getRotation); + tolua_function(tolua_S,"create", lua_cocos2dx_studio_RotationFrame_create); + tolua_endmodule(tolua_S); + std::string typeName = typeid(cocostudio::timeline::RotationFrame).name(); + g_luaType[typeName] = "ccs.RotationFrame"; + g_typeCast["RotationFrame"] = "ccs.RotationFrame"; + return 1; +} + +int lua_cocos2dx_studio_SkewFrame_getSkewY(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::SkewFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.SkewFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::SkewFrame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_SkewFrame_getSkewY'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + double ret = cobj->getSkewY(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getSkewY",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_SkewFrame_getSkewY'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_SkewFrame_setSkewX(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::SkewFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.SkewFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::SkewFrame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_SkewFrame_setSkewX'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0); + if(!ok) + return 0; + cobj->setSkewX(arg0); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setSkewX",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_SkewFrame_setSkewX'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_SkewFrame_setSkewY(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::SkewFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.SkewFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::SkewFrame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_SkewFrame_setSkewY'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0); + if(!ok) + return 0; + cobj->setSkewY(arg0); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setSkewY",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_SkewFrame_setSkewY'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_SkewFrame_getSkewX(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::SkewFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.SkewFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::SkewFrame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_SkewFrame_getSkewX'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + double ret = cobj->getSkewX(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getSkewX",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_SkewFrame_getSkewX'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_SkewFrame_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,"ccs.SkewFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 0) + { + if(!ok) + return 0; + cocostudio::timeline::SkewFrame* ret = cocostudio::timeline::SkewFrame::create(); + object_to_luaval(tolua_S, "ccs.SkewFrame",(cocostudio::timeline::SkewFrame*)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_studio_SkewFrame_create'.",&tolua_err); +#endif + return 0; +} +int lua_cocos2dx_studio_SkewFrame_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::SkewFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + cobj = new cocostudio::timeline::SkewFrame(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ccs.SkewFrame"); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "SkewFrame",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_SkewFrame_constructor'.",&tolua_err); +#endif + + return 0; +} + +static int lua_cocos2dx_studio_SkewFrame_finalize(lua_State* tolua_S) +{ + printf("luabindings: finalizing LUA object (SkewFrame)"); + return 0; +} + +int lua_register_cocos2dx_studio_SkewFrame(lua_State* tolua_S) +{ + tolua_usertype(tolua_S,"ccs.SkewFrame"); + tolua_cclass(tolua_S,"SkewFrame","ccs.SkewFrame","ccs.Frame",nullptr); + + tolua_beginmodule(tolua_S,"SkewFrame"); + tolua_function(tolua_S,"new",lua_cocos2dx_studio_SkewFrame_constructor); + tolua_function(tolua_S,"getSkewY",lua_cocos2dx_studio_SkewFrame_getSkewY); + tolua_function(tolua_S,"setSkewX",lua_cocos2dx_studio_SkewFrame_setSkewX); + tolua_function(tolua_S,"setSkewY",lua_cocos2dx_studio_SkewFrame_setSkewY); + tolua_function(tolua_S,"getSkewX",lua_cocos2dx_studio_SkewFrame_getSkewX); + tolua_function(tolua_S,"create", lua_cocos2dx_studio_SkewFrame_create); + tolua_endmodule(tolua_S); + std::string typeName = typeid(cocostudio::timeline::SkewFrame).name(); + g_luaType[typeName] = "ccs.SkewFrame"; + g_typeCast["SkewFrame"] = "ccs.SkewFrame"; + return 1; +} + +int lua_cocos2dx_studio_RotationSkewFrame_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,"ccs.RotationSkewFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 0) + { + if(!ok) + return 0; + cocostudio::timeline::RotationSkewFrame* ret = cocostudio::timeline::RotationSkewFrame::create(); + object_to_luaval(tolua_S, "ccs.RotationSkewFrame",(cocostudio::timeline::RotationSkewFrame*)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_studio_RotationSkewFrame_create'.",&tolua_err); +#endif + return 0; +} +int lua_cocos2dx_studio_RotationSkewFrame_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::RotationSkewFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + cobj = new cocostudio::timeline::RotationSkewFrame(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ccs.RotationSkewFrame"); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "RotationSkewFrame",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_RotationSkewFrame_constructor'.",&tolua_err); +#endif + + return 0; +} + +static int lua_cocos2dx_studio_RotationSkewFrame_finalize(lua_State* tolua_S) +{ + printf("luabindings: finalizing LUA object (RotationSkewFrame)"); + return 0; +} + +int lua_register_cocos2dx_studio_RotationSkewFrame(lua_State* tolua_S) +{ + tolua_usertype(tolua_S,"ccs.RotationSkewFrame"); + tolua_cclass(tolua_S,"RotationSkewFrame","ccs.RotationSkewFrame","ccs.SkewFrame",nullptr); + + tolua_beginmodule(tolua_S,"RotationSkewFrame"); + tolua_function(tolua_S,"new",lua_cocos2dx_studio_RotationSkewFrame_constructor); + tolua_function(tolua_S,"create", lua_cocos2dx_studio_RotationSkewFrame_create); + tolua_endmodule(tolua_S); + std::string typeName = typeid(cocostudio::timeline::RotationSkewFrame).name(); + g_luaType[typeName] = "ccs.RotationSkewFrame"; + g_typeCast["RotationSkewFrame"] = "ccs.RotationSkewFrame"; + return 1; +} + +int lua_cocos2dx_studio_PositionFrame_getX(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::PositionFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.PositionFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::PositionFrame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_PositionFrame_getX'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + double ret = cobj->getX(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getX",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_PositionFrame_getX'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_PositionFrame_getY(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::PositionFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.PositionFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::PositionFrame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_PositionFrame_getY'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + double ret = cobj->getY(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getY",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_PositionFrame_getY'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_PositionFrame_setPosition(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::PositionFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.PositionFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::PositionFrame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_PositionFrame_setPosition'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocos2d::Point arg0; + + ok &= luaval_to_point(tolua_S, 2, &arg0); + if(!ok) + return 0; + cobj->setPosition(arg0); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setPosition",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_PositionFrame_setPosition'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_PositionFrame_setX(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::PositionFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.PositionFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::PositionFrame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_PositionFrame_setX'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0); + if(!ok) + return 0; + cobj->setX(arg0); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setX",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_PositionFrame_setX'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_PositionFrame_setY(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::PositionFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.PositionFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::PositionFrame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_PositionFrame_setY'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0); + if(!ok) + return 0; + cobj->setY(arg0); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setY",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_PositionFrame_setY'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_PositionFrame_getPosition(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::PositionFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.PositionFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::PositionFrame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_PositionFrame_getPosition'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + cocos2d::Point ret = cobj->getPosition(); + point_to_luaval(tolua_S, ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getPosition",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_PositionFrame_getPosition'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_PositionFrame_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,"ccs.PositionFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 0) + { + if(!ok) + return 0; + cocostudio::timeline::PositionFrame* ret = cocostudio::timeline::PositionFrame::create(); + object_to_luaval(tolua_S, "ccs.PositionFrame",(cocostudio::timeline::PositionFrame*)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_studio_PositionFrame_create'.",&tolua_err); +#endif + return 0; +} +int lua_cocos2dx_studio_PositionFrame_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::PositionFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + cobj = new cocostudio::timeline::PositionFrame(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ccs.PositionFrame"); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "PositionFrame",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_PositionFrame_constructor'.",&tolua_err); +#endif + + return 0; +} + +static int lua_cocos2dx_studio_PositionFrame_finalize(lua_State* tolua_S) +{ + printf("luabindings: finalizing LUA object (PositionFrame)"); + return 0; +} + +int lua_register_cocos2dx_studio_PositionFrame(lua_State* tolua_S) +{ + tolua_usertype(tolua_S,"ccs.PositionFrame"); + tolua_cclass(tolua_S,"PositionFrame","ccs.PositionFrame","ccs.Frame",nullptr); + + tolua_beginmodule(tolua_S,"PositionFrame"); + tolua_function(tolua_S,"new",lua_cocos2dx_studio_PositionFrame_constructor); + tolua_function(tolua_S,"getX",lua_cocos2dx_studio_PositionFrame_getX); + tolua_function(tolua_S,"getY",lua_cocos2dx_studio_PositionFrame_getY); + tolua_function(tolua_S,"setPosition",lua_cocos2dx_studio_PositionFrame_setPosition); + tolua_function(tolua_S,"setX",lua_cocos2dx_studio_PositionFrame_setX); + tolua_function(tolua_S,"setY",lua_cocos2dx_studio_PositionFrame_setY); + tolua_function(tolua_S,"getPosition",lua_cocos2dx_studio_PositionFrame_getPosition); + tolua_function(tolua_S,"create", lua_cocos2dx_studio_PositionFrame_create); + tolua_endmodule(tolua_S); + std::string typeName = typeid(cocostudio::timeline::PositionFrame).name(); + g_luaType[typeName] = "ccs.PositionFrame"; + g_typeCast["PositionFrame"] = "ccs.PositionFrame"; + return 1; +} + +int lua_cocos2dx_studio_ScaleFrame_setScaleY(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ScaleFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ScaleFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ScaleFrame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ScaleFrame_setScaleY'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0); + if(!ok) + return 0; + cobj->setScaleY(arg0); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setScaleY",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ScaleFrame_setScaleY'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ScaleFrame_setScaleX(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ScaleFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ScaleFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ScaleFrame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ScaleFrame_setScaleX'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0); + if(!ok) + return 0; + cobj->setScaleX(arg0); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setScaleX",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ScaleFrame_setScaleX'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ScaleFrame_getScaleY(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ScaleFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ScaleFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ScaleFrame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ScaleFrame_getScaleY'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + double ret = cobj->getScaleY(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getScaleY",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ScaleFrame_getScaleY'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ScaleFrame_getScaleX(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ScaleFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ScaleFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ScaleFrame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ScaleFrame_getScaleX'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + double ret = cobj->getScaleX(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getScaleX",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ScaleFrame_getScaleX'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ScaleFrame_setScale(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ScaleFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ScaleFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ScaleFrame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ScaleFrame_setScale'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0); + if(!ok) + return 0; + cobj->setScale(arg0); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setScale",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ScaleFrame_setScale'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ScaleFrame_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,"ccs.ScaleFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 0) + { + if(!ok) + return 0; + cocostudio::timeline::ScaleFrame* ret = cocostudio::timeline::ScaleFrame::create(); + object_to_luaval(tolua_S, "ccs.ScaleFrame",(cocostudio::timeline::ScaleFrame*)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_studio_ScaleFrame_create'.",&tolua_err); +#endif + return 0; +} +int lua_cocos2dx_studio_ScaleFrame_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ScaleFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + cobj = new cocostudio::timeline::ScaleFrame(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ccs.ScaleFrame"); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "ScaleFrame",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ScaleFrame_constructor'.",&tolua_err); +#endif + + return 0; +} + +static int lua_cocos2dx_studio_ScaleFrame_finalize(lua_State* tolua_S) +{ + printf("luabindings: finalizing LUA object (ScaleFrame)"); + return 0; +} + +int lua_register_cocos2dx_studio_ScaleFrame(lua_State* tolua_S) +{ + tolua_usertype(tolua_S,"ccs.ScaleFrame"); + tolua_cclass(tolua_S,"ScaleFrame","ccs.ScaleFrame","ccs.Frame",nullptr); + + tolua_beginmodule(tolua_S,"ScaleFrame"); + tolua_function(tolua_S,"new",lua_cocos2dx_studio_ScaleFrame_constructor); + tolua_function(tolua_S,"setScaleY",lua_cocos2dx_studio_ScaleFrame_setScaleY); + tolua_function(tolua_S,"setScaleX",lua_cocos2dx_studio_ScaleFrame_setScaleX); + tolua_function(tolua_S,"getScaleY",lua_cocos2dx_studio_ScaleFrame_getScaleY); + tolua_function(tolua_S,"getScaleX",lua_cocos2dx_studio_ScaleFrame_getScaleX); + tolua_function(tolua_S,"setScale",lua_cocos2dx_studio_ScaleFrame_setScale); + tolua_function(tolua_S,"create", lua_cocos2dx_studio_ScaleFrame_create); + tolua_endmodule(tolua_S); + std::string typeName = typeid(cocostudio::timeline::ScaleFrame).name(); + g_luaType[typeName] = "ccs.ScaleFrame"; + g_typeCast["ScaleFrame"] = "ccs.ScaleFrame"; + return 1; +} + +int lua_cocos2dx_studio_AnchorPointFrame_setAnchorPoint(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::AnchorPointFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.AnchorPointFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::AnchorPointFrame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_AnchorPointFrame_setAnchorPoint'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocos2d::Point arg0; + + ok &= luaval_to_point(tolua_S, 2, &arg0); + if(!ok) + return 0; + cobj->setAnchorPoint(arg0); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setAnchorPoint",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_AnchorPointFrame_setAnchorPoint'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_AnchorPointFrame_getAnchorPoint(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::AnchorPointFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.AnchorPointFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::AnchorPointFrame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_AnchorPointFrame_getAnchorPoint'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + cocos2d::Point ret = cobj->getAnchorPoint(); + point_to_luaval(tolua_S, ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getAnchorPoint",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_AnchorPointFrame_getAnchorPoint'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_AnchorPointFrame_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,"ccs.AnchorPointFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 0) + { + if(!ok) + return 0; + cocostudio::timeline::AnchorPointFrame* ret = cocostudio::timeline::AnchorPointFrame::create(); + object_to_luaval(tolua_S, "ccs.AnchorPointFrame",(cocostudio::timeline::AnchorPointFrame*)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_studio_AnchorPointFrame_create'.",&tolua_err); +#endif + return 0; +} +int lua_cocos2dx_studio_AnchorPointFrame_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::AnchorPointFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + cobj = new cocostudio::timeline::AnchorPointFrame(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ccs.AnchorPointFrame"); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "AnchorPointFrame",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_AnchorPointFrame_constructor'.",&tolua_err); +#endif + + return 0; +} + +static int lua_cocos2dx_studio_AnchorPointFrame_finalize(lua_State* tolua_S) +{ + printf("luabindings: finalizing LUA object (AnchorPointFrame)"); + return 0; +} + +int lua_register_cocos2dx_studio_AnchorPointFrame(lua_State* tolua_S) +{ + tolua_usertype(tolua_S,"ccs.AnchorPointFrame"); + tolua_cclass(tolua_S,"AnchorPointFrame","ccs.AnchorPointFrame","ccs.Frame",nullptr); + + tolua_beginmodule(tolua_S,"AnchorPointFrame"); + tolua_function(tolua_S,"new",lua_cocos2dx_studio_AnchorPointFrame_constructor); + tolua_function(tolua_S,"setAnchorPoint",lua_cocos2dx_studio_AnchorPointFrame_setAnchorPoint); + tolua_function(tolua_S,"getAnchorPoint",lua_cocos2dx_studio_AnchorPointFrame_getAnchorPoint); + tolua_function(tolua_S,"create", lua_cocos2dx_studio_AnchorPointFrame_create); + tolua_endmodule(tolua_S); + std::string typeName = typeid(cocostudio::timeline::AnchorPointFrame).name(); + g_luaType[typeName] = "ccs.AnchorPointFrame"; + g_typeCast["AnchorPointFrame"] = "ccs.AnchorPointFrame"; + return 1; +} + +int lua_cocos2dx_studio_InnerActionFrame_getInnerActionType(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::InnerActionFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.InnerActionFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::InnerActionFrame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_InnerActionFrame_getInnerActionType'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + int ret = (int)cobj->getInnerActionType(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getInnerActionType",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_InnerActionFrame_getInnerActionType'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_InnerActionFrame_setStartFrameIndex(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::InnerActionFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.InnerActionFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::InnerActionFrame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_InnerActionFrame_setStartFrameIndex'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0); + if(!ok) + return 0; + cobj->setStartFrameIndex(arg0); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setStartFrameIndex",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_InnerActionFrame_setStartFrameIndex'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_InnerActionFrame_setInnerActionType(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::InnerActionFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.InnerActionFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::InnerActionFrame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_InnerActionFrame_setInnerActionType'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocostudio::timeline::InnerActionType arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0); + if(!ok) + return 0; + cobj->setInnerActionType(arg0); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setInnerActionType",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_InnerActionFrame_setInnerActionType'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_InnerActionFrame_getStartFrameIndex(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::InnerActionFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.InnerActionFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::InnerActionFrame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_InnerActionFrame_getStartFrameIndex'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + int ret = cobj->getStartFrameIndex(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getStartFrameIndex",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_InnerActionFrame_getStartFrameIndex'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_InnerActionFrame_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,"ccs.InnerActionFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 0) + { + if(!ok) + return 0; + cocostudio::timeline::InnerActionFrame* ret = cocostudio::timeline::InnerActionFrame::create(); + object_to_luaval(tolua_S, "ccs.InnerActionFrame",(cocostudio::timeline::InnerActionFrame*)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_studio_InnerActionFrame_create'.",&tolua_err); +#endif + return 0; +} +int lua_cocos2dx_studio_InnerActionFrame_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::InnerActionFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + cobj = new cocostudio::timeline::InnerActionFrame(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ccs.InnerActionFrame"); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "InnerActionFrame",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_InnerActionFrame_constructor'.",&tolua_err); +#endif + + return 0; +} + +static int lua_cocos2dx_studio_InnerActionFrame_finalize(lua_State* tolua_S) +{ + printf("luabindings: finalizing LUA object (InnerActionFrame)"); + return 0; +} + +int lua_register_cocos2dx_studio_InnerActionFrame(lua_State* tolua_S) +{ + tolua_usertype(tolua_S,"ccs.InnerActionFrame"); + tolua_cclass(tolua_S,"InnerActionFrame","ccs.InnerActionFrame","ccs.Frame",nullptr); + + tolua_beginmodule(tolua_S,"InnerActionFrame"); + tolua_function(tolua_S,"new",lua_cocos2dx_studio_InnerActionFrame_constructor); + tolua_function(tolua_S,"getInnerActionType",lua_cocos2dx_studio_InnerActionFrame_getInnerActionType); + tolua_function(tolua_S,"setStartFrameIndex",lua_cocos2dx_studio_InnerActionFrame_setStartFrameIndex); + tolua_function(tolua_S,"setInnerActionType",lua_cocos2dx_studio_InnerActionFrame_setInnerActionType); + tolua_function(tolua_S,"getStartFrameIndex",lua_cocos2dx_studio_InnerActionFrame_getStartFrameIndex); + tolua_function(tolua_S,"create", lua_cocos2dx_studio_InnerActionFrame_create); + tolua_endmodule(tolua_S); + std::string typeName = typeid(cocostudio::timeline::InnerActionFrame).name(); + g_luaType[typeName] = "ccs.InnerActionFrame"; + g_typeCast["InnerActionFrame"] = "ccs.InnerActionFrame"; + return 1; +} + +int lua_cocos2dx_studio_ColorFrame_getAlpha(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ColorFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ColorFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ColorFrame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ColorFrame_getAlpha'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + uint16_t ret = cobj->getAlpha(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getAlpha",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ColorFrame_getAlpha'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ColorFrame_getColor(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ColorFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ColorFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ColorFrame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ColorFrame_getColor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + cocos2d::Color3B ret = cobj->getColor(); + color3b_to_luaval(tolua_S, ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getColor",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ColorFrame_getColor'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ColorFrame_setAlpha(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ColorFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ColorFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ColorFrame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ColorFrame_setAlpha'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + uint16_t arg0; + + ok &= luaval_to_uint16(tolua_S, 2,&arg0); + if(!ok) + return 0; + cobj->setAlpha(arg0); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setAlpha",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ColorFrame_setAlpha'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ColorFrame_setColor(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ColorFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ColorFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ColorFrame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ColorFrame_setColor'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocos2d::Color3B arg0; + + ok &= luaval_to_color3b(tolua_S, 2, &arg0); + if(!ok) + return 0; + cobj->setColor(arg0); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setColor",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ColorFrame_setColor'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ColorFrame_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,"ccs.ColorFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 0) + { + if(!ok) + return 0; + cocostudio::timeline::ColorFrame* ret = cocostudio::timeline::ColorFrame::create(); + object_to_luaval(tolua_S, "ccs.ColorFrame",(cocostudio::timeline::ColorFrame*)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_studio_ColorFrame_create'.",&tolua_err); +#endif + return 0; +} +int lua_cocos2dx_studio_ColorFrame_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ColorFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + cobj = new cocostudio::timeline::ColorFrame(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ccs.ColorFrame"); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "ColorFrame",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ColorFrame_constructor'.",&tolua_err); +#endif + + return 0; +} + +static int lua_cocos2dx_studio_ColorFrame_finalize(lua_State* tolua_S) +{ + printf("luabindings: finalizing LUA object (ColorFrame)"); + return 0; +} + +int lua_register_cocos2dx_studio_ColorFrame(lua_State* tolua_S) +{ + tolua_usertype(tolua_S,"ccs.ColorFrame"); + tolua_cclass(tolua_S,"ColorFrame","ccs.ColorFrame","ccs.Frame",nullptr); + + tolua_beginmodule(tolua_S,"ColorFrame"); + tolua_function(tolua_S,"new",lua_cocos2dx_studio_ColorFrame_constructor); + tolua_function(tolua_S,"getAlpha",lua_cocos2dx_studio_ColorFrame_getAlpha); + tolua_function(tolua_S,"getColor",lua_cocos2dx_studio_ColorFrame_getColor); + tolua_function(tolua_S,"setAlpha",lua_cocos2dx_studio_ColorFrame_setAlpha); + tolua_function(tolua_S,"setColor",lua_cocos2dx_studio_ColorFrame_setColor); + tolua_function(tolua_S,"create", lua_cocos2dx_studio_ColorFrame_create); + tolua_endmodule(tolua_S); + std::string typeName = typeid(cocostudio::timeline::ColorFrame).name(); + g_luaType[typeName] = "ccs.ColorFrame"; + g_typeCast["ColorFrame"] = "ccs.ColorFrame"; + return 1; +} + +int lua_cocos2dx_studio_EventFrame_setEvent(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::EventFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.EventFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::EventFrame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_EventFrame_setEvent'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::string arg0; + + ok &= luaval_to_std_string(tolua_S, 2,&arg0); + if(!ok) + return 0; + cobj->setEvent(arg0); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setEvent",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_EventFrame_setEvent'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_EventFrame_getEvent(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::EventFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.EventFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::EventFrame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_EventFrame_getEvent'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + std::string ret = cobj->getEvent(); + tolua_pushcppstring(tolua_S,ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getEvent",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_EventFrame_getEvent'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_EventFrame_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,"ccs.EventFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 0) + { + if(!ok) + return 0; + cocostudio::timeline::EventFrame* ret = cocostudio::timeline::EventFrame::create(); + object_to_luaval(tolua_S, "ccs.EventFrame",(cocostudio::timeline::EventFrame*)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_studio_EventFrame_create'.",&tolua_err); +#endif + return 0; +} +int lua_cocos2dx_studio_EventFrame_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::EventFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + cobj = new cocostudio::timeline::EventFrame(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ccs.EventFrame"); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "EventFrame",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_EventFrame_constructor'.",&tolua_err); +#endif + + return 0; +} + +static int lua_cocos2dx_studio_EventFrame_finalize(lua_State* tolua_S) +{ + printf("luabindings: finalizing LUA object (EventFrame)"); + return 0; +} + +int lua_register_cocos2dx_studio_EventFrame(lua_State* tolua_S) +{ + tolua_usertype(tolua_S,"ccs.EventFrame"); + tolua_cclass(tolua_S,"EventFrame","ccs.EventFrame","ccs.Frame",nullptr); + + tolua_beginmodule(tolua_S,"EventFrame"); + tolua_function(tolua_S,"new",lua_cocos2dx_studio_EventFrame_constructor); + tolua_function(tolua_S,"setEvent",lua_cocos2dx_studio_EventFrame_setEvent); + tolua_function(tolua_S,"getEvent",lua_cocos2dx_studio_EventFrame_getEvent); + tolua_function(tolua_S,"create", lua_cocos2dx_studio_EventFrame_create); + tolua_endmodule(tolua_S); + std::string typeName = typeid(cocostudio::timeline::EventFrame).name(); + g_luaType[typeName] = "ccs.EventFrame"; + g_typeCast["EventFrame"] = "ccs.EventFrame"; + return 1; +} + +int lua_cocos2dx_studio_ZOrderFrame_getZOrder(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ZOrderFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ZOrderFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ZOrderFrame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ZOrderFrame_getZOrder'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + int ret = cobj->getZOrder(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getZOrder",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ZOrderFrame_getZOrder'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ZOrderFrame_setZOrder(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ZOrderFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ZOrderFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ZOrderFrame*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ZOrderFrame_setZOrder'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0); + if(!ok) + return 0; + cobj->setZOrder(arg0); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setZOrder",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ZOrderFrame_setZOrder'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ZOrderFrame_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,"ccs.ZOrderFrame",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 0) + { + if(!ok) + return 0; + cocostudio::timeline::ZOrderFrame* ret = cocostudio::timeline::ZOrderFrame::create(); + object_to_luaval(tolua_S, "ccs.ZOrderFrame",(cocostudio::timeline::ZOrderFrame*)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_studio_ZOrderFrame_create'.",&tolua_err); +#endif + return 0; +} +int lua_cocos2dx_studio_ZOrderFrame_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ZOrderFrame* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + cobj = new cocostudio::timeline::ZOrderFrame(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ccs.ZOrderFrame"); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "ZOrderFrame",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ZOrderFrame_constructor'.",&tolua_err); +#endif + + return 0; +} + +static int lua_cocos2dx_studio_ZOrderFrame_finalize(lua_State* tolua_S) +{ + printf("luabindings: finalizing LUA object (ZOrderFrame)"); + return 0; +} + +int lua_register_cocos2dx_studio_ZOrderFrame(lua_State* tolua_S) +{ + tolua_usertype(tolua_S,"ccs.ZOrderFrame"); + tolua_cclass(tolua_S,"ZOrderFrame","ccs.ZOrderFrame","ccs.Frame",nullptr); + + tolua_beginmodule(tolua_S,"ZOrderFrame"); + tolua_function(tolua_S,"new",lua_cocos2dx_studio_ZOrderFrame_constructor); + tolua_function(tolua_S,"getZOrder",lua_cocos2dx_studio_ZOrderFrame_getZOrder); + tolua_function(tolua_S,"setZOrder",lua_cocos2dx_studio_ZOrderFrame_setZOrder); + tolua_function(tolua_S,"create", lua_cocos2dx_studio_ZOrderFrame_create); + tolua_endmodule(tolua_S); + std::string typeName = typeid(cocostudio::timeline::ZOrderFrame).name(); + g_luaType[typeName] = "ccs.ZOrderFrame"; + g_typeCast["ZOrderFrame"] = "ccs.ZOrderFrame"; + return 1; +} + +int lua_cocos2dx_studio_Timeline_clone(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::Timeline* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Timeline",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::Timeline*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Timeline_clone'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + cocostudio::timeline::Timeline* ret = cobj->clone(); + object_to_luaval(tolua_S, "ccs.Timeline",(cocostudio::timeline::Timeline*)ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "clone",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Timeline_clone'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_Timeline_gotoFrame(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::Timeline* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Timeline",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::Timeline*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Timeline_gotoFrame'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0); + if(!ok) + return 0; + cobj->gotoFrame(arg0); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "gotoFrame",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Timeline_gotoFrame'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_Timeline_setNode(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::Timeline* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Timeline",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::Timeline*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Timeline_setNode'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocos2d::Node* arg0; + + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0); + if(!ok) + return 0; + cobj->setNode(arg0); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setNode",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Timeline_setNode'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_Timeline_getActionTimeline(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::Timeline* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Timeline",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::Timeline*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Timeline_getActionTimeline'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + cocostudio::timeline::ActionTimeline* ret = cobj->getActionTimeline(); + object_to_luaval(tolua_S, "ccs.ActionTimeline",(cocostudio::timeline::ActionTimeline*)ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getActionTimeline",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Timeline_getActionTimeline'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_Timeline_insertFrame(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::Timeline* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Timeline",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::Timeline*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Timeline_insertFrame'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 2) + { + cocostudio::timeline::Frame* arg0; + int arg1; + + ok &= luaval_to_object(tolua_S, 2, "ccs.Frame",&arg0); + + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1); + if(!ok) + return 0; + cobj->insertFrame(arg0, arg1); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "insertFrame",argc, 2); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Timeline_insertFrame'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_Timeline_setActionTag(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::Timeline* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Timeline",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::Timeline*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Timeline_setActionTag'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0); + if(!ok) + return 0; + cobj->setActionTag(arg0); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setActionTag",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Timeline_setActionTag'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_Timeline_addFrame(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::Timeline* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Timeline",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::Timeline*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Timeline_addFrame'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocostudio::timeline::Frame* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ccs.Frame",&arg0); + if(!ok) + return 0; + cobj->addFrame(arg0); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "addFrame",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Timeline_addFrame'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_Timeline_getFrames(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::Timeline* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Timeline",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::Timeline*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Timeline_getFrames'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + const cocos2d::Vector& ret = cobj->getFrames(); + ccvector_to_luaval(tolua_S, ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getFrames",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Timeline_getFrames'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_Timeline_getActionTag(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::Timeline* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Timeline",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::Timeline*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Timeline_getActionTag'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + int ret = cobj->getActionTag(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getActionTag",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Timeline_getActionTag'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_Timeline_getNode(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::Timeline* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Timeline",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::Timeline*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Timeline_getNode'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + cocos2d::Node* ret = cobj->getNode(); + object_to_luaval(tolua_S, "cc.Node",(cocos2d::Node*)ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getNode",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Timeline_getNode'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_Timeline_removeFrame(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::Timeline* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Timeline",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::Timeline*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Timeline_removeFrame'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocostudio::timeline::Frame* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ccs.Frame",&arg0); + if(!ok) + return 0; + cobj->removeFrame(arg0); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "removeFrame",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Timeline_removeFrame'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_Timeline_setActionTimeline(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::Timeline* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Timeline",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::Timeline*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Timeline_setActionTimeline'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocostudio::timeline::ActionTimeline* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ccs.ActionTimeline",&arg0); + if(!ok) + return 0; + cobj->setActionTimeline(arg0); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setActionTimeline",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Timeline_setActionTimeline'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_Timeline_stepToFrame(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::Timeline* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.Timeline",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::Timeline*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_Timeline_stepToFrame'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0); + if(!ok) + return 0; + cobj->stepToFrame(arg0); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "stepToFrame",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Timeline_stepToFrame'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_Timeline_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,"ccs.Timeline",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 0) + { + if(!ok) + return 0; + cocostudio::timeline::Timeline* ret = cocostudio::timeline::Timeline::create(); + object_to_luaval(tolua_S, "ccs.Timeline",(cocostudio::timeline::Timeline*)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_studio_Timeline_create'.",&tolua_err); +#endif + return 0; +} +int lua_cocos2dx_studio_Timeline_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::Timeline* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + cobj = new cocostudio::timeline::Timeline(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ccs.Timeline"); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "Timeline",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_Timeline_constructor'.",&tolua_err); +#endif + + return 0; +} + +static int lua_cocos2dx_studio_Timeline_finalize(lua_State* tolua_S) +{ + printf("luabindings: finalizing LUA object (Timeline)"); + return 0; +} + +int lua_register_cocos2dx_studio_Timeline(lua_State* tolua_S) +{ + tolua_usertype(tolua_S,"ccs.Timeline"); + tolua_cclass(tolua_S,"Timeline","ccs.Timeline","cc.Ref",nullptr); + + tolua_beginmodule(tolua_S,"Timeline"); + tolua_function(tolua_S,"new",lua_cocos2dx_studio_Timeline_constructor); + tolua_function(tolua_S,"clone",lua_cocos2dx_studio_Timeline_clone); + tolua_function(tolua_S,"gotoFrame",lua_cocos2dx_studio_Timeline_gotoFrame); + tolua_function(tolua_S,"setNode",lua_cocos2dx_studio_Timeline_setNode); + tolua_function(tolua_S,"getActionTimeline",lua_cocos2dx_studio_Timeline_getActionTimeline); + tolua_function(tolua_S,"insertFrame",lua_cocos2dx_studio_Timeline_insertFrame); + tolua_function(tolua_S,"setActionTag",lua_cocos2dx_studio_Timeline_setActionTag); + tolua_function(tolua_S,"addFrame",lua_cocos2dx_studio_Timeline_addFrame); + tolua_function(tolua_S,"getFrames",lua_cocos2dx_studio_Timeline_getFrames); + tolua_function(tolua_S,"getActionTag",lua_cocos2dx_studio_Timeline_getActionTag); + tolua_function(tolua_S,"getNode",lua_cocos2dx_studio_Timeline_getNode); + tolua_function(tolua_S,"removeFrame",lua_cocos2dx_studio_Timeline_removeFrame); + tolua_function(tolua_S,"setActionTimeline",lua_cocos2dx_studio_Timeline_setActionTimeline); + tolua_function(tolua_S,"stepToFrame",lua_cocos2dx_studio_Timeline_stepToFrame); + tolua_function(tolua_S,"create", lua_cocos2dx_studio_Timeline_create); + tolua_endmodule(tolua_S); + std::string typeName = typeid(cocostudio::timeline::Timeline).name(); + g_luaType[typeName] = "ccs.Timeline"; + g_typeCast["Timeline"] = "ccs.Timeline"; + return 1; +} + int lua_cocos2dx_studio_ActionTimelineData_setActionTag(lua_State* tolua_S) { int argc = 0; @@ -12777,7 +19070,7 @@ int lua_cocos2dx_studio_ActionTimelineData_setActionTag(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.timeline::ActionTimelineData",0,&tolua_err)) goto tolua_lerror; + if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimelineData",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::timeline::ActionTimelineData*)tolua_tousertype(tolua_S,1,0); @@ -12823,7 +19116,7 @@ int lua_cocos2dx_studio_ActionTimelineData_getActionTag(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 - if (!tolua_isusertype(tolua_S,1,"ccs.timeline::ActionTimelineData",0,&tolua_err)) goto tolua_lerror; + if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimelineData",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocostudio::timeline::ActionTimelineData*)tolua_tousertype(tolua_S,1,0); @@ -12865,7 +19158,7 @@ int lua_cocos2dx_studio_ActionTimelineData_create(lua_State* tolua_S) #endif #if COCOS2D_DEBUG >= 1 - if (!tolua_isusertable(tolua_S,1,"ccs.timeline::ActionTimelineData",0,&tolua_err)) goto tolua_lerror; + if (!tolua_isusertable(tolua_S,1,"ccs.ActionTimelineData",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; @@ -12877,7 +19170,7 @@ int lua_cocos2dx_studio_ActionTimelineData_create(lua_State* tolua_S) if(!ok) return 0; cocostudio::timeline::ActionTimelineData* ret = cocostudio::timeline::ActionTimelineData::create(arg0); - object_to_luaval(tolua_S, "ccs.timeline::ActionTimelineData",(cocostudio::timeline::ActionTimelineData*)ret); + object_to_luaval(tolua_S, "ccs.ActionTimelineData",(cocostudio::timeline::ActionTimelineData*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "create",argc, 1); @@ -12896,8 +19189,8 @@ static int lua_cocos2dx_studio_ActionTimelineData_finalize(lua_State* tolua_S) int lua_register_cocos2dx_studio_ActionTimelineData(lua_State* tolua_S) { - tolua_usertype(tolua_S,"ccs.timeline::ActionTimelineData"); - tolua_cclass(tolua_S,"ActionTimelineData","ccs.timeline::ActionTimelineData","cc.Ref",nullptr); + tolua_usertype(tolua_S,"ccs.ActionTimelineData"); + tolua_cclass(tolua_S,"ActionTimelineData","ccs.ActionTimelineData","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"ActionTimelineData"); tolua_function(tolua_S,"setActionTag",lua_cocos2dx_studio_ActionTimelineData_setActionTag); @@ -12905,8 +19198,949 @@ int lua_register_cocos2dx_studio_ActionTimelineData(lua_State* tolua_S) tolua_function(tolua_S,"create", lua_cocos2dx_studio_ActionTimelineData_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocostudio::timeline::ActionTimelineData).name(); - g_luaType[typeName] = "ccs.timeline::ActionTimelineData"; - g_typeCast["ActionTimelineData"] = "ccs.timeline::ActionTimelineData"; + g_luaType[typeName] = "ccs.ActionTimelineData"; + g_typeCast["ActionTimelineData"] = "ccs.ActionTimelineData"; + return 1; +} + +int lua_cocos2dx_studio_ActionTimeline_getTimelines(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ActionTimeline* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimeline",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ActionTimeline*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionTimeline_getTimelines'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + const cocos2d::Vector& ret = cobj->getTimelines(); + ccvector_to_luaval(tolua_S, ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getTimelines",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionTimeline_getTimelines'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ActionTimeline_getCurrentFrame(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ActionTimeline* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimeline",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ActionTimeline*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionTimeline_getCurrentFrame'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + int ret = cobj->getCurrentFrame(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getCurrentFrame",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionTimeline_getCurrentFrame'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ActionTimeline_getStartFrame(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ActionTimeline* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimeline",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ActionTimeline*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionTimeline_getStartFrame'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + int ret = cobj->getStartFrame(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getStartFrame",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionTimeline_getStartFrame'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ActionTimeline_pause(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ActionTimeline* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimeline",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ActionTimeline*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionTimeline_pause'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + cobj->pause(); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "pause",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionTimeline_pause'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ActionTimeline_setFrameEventCallFunc(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ActionTimeline* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimeline",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ActionTimeline*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionTimeline_setFrameEventCallFunc'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + std::function arg0; + + do { + // Lambda binding for lua is not supported. + assert(false); + } while(0) + ; + if(!ok) + return 0; + cobj->setFrameEventCallFunc(arg0); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setFrameEventCallFunc",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionTimeline_setFrameEventCallFunc'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ActionTimeline_resume(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ActionTimeline* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimeline",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ActionTimeline*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionTimeline_resume'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + cobj->resume(); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "resume",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionTimeline_resume'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ActionTimeline_getDuration(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ActionTimeline* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimeline",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ActionTimeline*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionTimeline_getDuration'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + int ret = cobj->getDuration(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getDuration",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionTimeline_getDuration'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ActionTimeline_addTimeline(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ActionTimeline* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimeline",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ActionTimeline*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionTimeline_addTimeline'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocostudio::timeline::Timeline* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ccs.Timeline",&arg0); + if(!ok) + return 0; + cobj->addTimeline(arg0); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "addTimeline",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionTimeline_addTimeline'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ActionTimeline_getEndFrame(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ActionTimeline* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimeline",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ActionTimeline*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionTimeline_getEndFrame'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + int ret = cobj->getEndFrame(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getEndFrame",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionTimeline_getEndFrame'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ActionTimeline_setTimeSpeed(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ActionTimeline* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimeline",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ActionTimeline*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionTimeline_setTimeSpeed'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + double arg0; + + ok &= luaval_to_number(tolua_S, 2,&arg0); + if(!ok) + return 0; + cobj->setTimeSpeed(arg0); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setTimeSpeed",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionTimeline_setTimeSpeed'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ActionTimeline_init(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ActionTimeline* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimeline",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ActionTimeline*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionTimeline_init'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + bool ret = cobj->init(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "init",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionTimeline_init'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ActionTimeline_setDuration(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ActionTimeline* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimeline",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ActionTimeline*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionTimeline_setDuration'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0); + if(!ok) + return 0; + cobj->setDuration(arg0); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setDuration",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionTimeline_setDuration'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ActionTimeline_getTimeSpeed(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ActionTimeline* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimeline",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ActionTimeline*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionTimeline_getTimeSpeed'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + double ret = cobj->getTimeSpeed(); + tolua_pushnumber(tolua_S,(lua_Number)ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getTimeSpeed",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionTimeline_getTimeSpeed'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ActionTimeline_gotoFrameAndPause(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ActionTimeline* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimeline",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ActionTimeline*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionTimeline_gotoFrameAndPause'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + int arg0; + + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0); + if(!ok) + return 0; + cobj->gotoFrameAndPause(arg0); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "gotoFrameAndPause",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionTimeline_gotoFrameAndPause'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ActionTimeline_isPlaying(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ActionTimeline* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimeline",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ActionTimeline*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionTimeline_isPlaying'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + bool ret = cobj->isPlaying(); + tolua_pushboolean(tolua_S,(bool)ret); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "isPlaying",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionTimeline_isPlaying'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ActionTimeline_gotoFrameAndPlay(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ActionTimeline* cobj = nullptr; + bool ok = true; +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimeline",0,&tolua_err)) goto tolua_lerror; +#endif + cobj = (cocostudio::timeline::ActionTimeline*)tolua_tousertype(tolua_S,1,0); +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionTimeline_gotoFrameAndPlay'", nullptr); + return 0; + } +#endif + argc = lua_gettop(tolua_S)-1; + do{ + if (argc == 2) { + int arg0; + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0); + + if (!ok) { break; } + bool arg1; + ok &= luaval_to_boolean(tolua_S, 3,&arg1); + + if (!ok) { break; } + cobj->gotoFrameAndPlay(arg0, arg1); + return 0; + } + }while(0); + ok = true; + do{ + if (argc == 1) { + int arg0; + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0); + + if (!ok) { break; } + cobj->gotoFrameAndPlay(arg0); + return 0; + } + }while(0); + ok = true; + do{ + if (argc == 3) { + int arg0; + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0); + + if (!ok) { break; } + int arg1; + ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1); + + if (!ok) { break; } + bool arg2; + ok &= luaval_to_boolean(tolua_S, 4,&arg2); + + if (!ok) { break; } + cobj->gotoFrameAndPlay(arg0, arg1, arg2); + return 0; + } + }while(0); + ok = true; + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "gotoFrameAndPlay",argc, 3); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionTimeline_gotoFrameAndPlay'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ActionTimeline_removeTimeline(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ActionTimeline* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimeline",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ActionTimeline*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionTimeline_removeTimeline'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 1) + { + cocostudio::timeline::Timeline* arg0; + + ok &= luaval_to_object(tolua_S, 2, "ccs.Timeline",&arg0); + if(!ok) + return 0; + cobj->removeTimeline(arg0); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "removeTimeline",argc, 1); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionTimeline_removeTimeline'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ActionTimeline_clearFrameEventCallFunc(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ActionTimeline* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertype(tolua_S,1,"ccs.ActionTimeline",0,&tolua_err)) goto tolua_lerror; +#endif + + cobj = (cocostudio::timeline::ActionTimeline*)tolua_tousertype(tolua_S,1,0); + +#if COCOS2D_DEBUG >= 1 + if (!cobj) + { + tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_studio_ActionTimeline_clearFrameEventCallFunc'", nullptr); + return 0; + } +#endif + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + cobj->clearFrameEventCallFunc(); + return 0; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "clearFrameEventCallFunc",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionTimeline_clearFrameEventCallFunc'.",&tolua_err); +#endif + + return 0; +} +int lua_cocos2dx_studio_ActionTimeline_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,"ccs.ActionTimeline",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 0) + { + if(!ok) + return 0; + cocostudio::timeline::ActionTimeline* ret = cocostudio::timeline::ActionTimeline::create(); + object_to_luaval(tolua_S, "ccs.ActionTimeline",(cocostudio::timeline::ActionTimeline*)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_studio_ActionTimeline_create'.",&tolua_err); +#endif + return 0; +} +int lua_cocos2dx_studio_ActionTimeline_constructor(lua_State* tolua_S) +{ + int argc = 0; + cocostudio::timeline::ActionTimeline* cobj = nullptr; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + + + + argc = lua_gettop(tolua_S)-1; + if (argc == 0) + { + if(!ok) + return 0; + cobj = new cocostudio::timeline::ActionTimeline(); + cobj->autorelease(); + int ID = (int)cobj->_ID ; + int* luaID = &cobj->_luaID ; + toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ccs.ActionTimeline"); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "ActionTimeline",argc, 0); + return 0; + +#if COCOS2D_DEBUG >= 1 + tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_studio_ActionTimeline_constructor'.",&tolua_err); +#endif + + return 0; +} + +static int lua_cocos2dx_studio_ActionTimeline_finalize(lua_State* tolua_S) +{ + printf("luabindings: finalizing LUA object (ActionTimeline)"); + return 0; +} + +int lua_register_cocos2dx_studio_ActionTimeline(lua_State* tolua_S) +{ + tolua_usertype(tolua_S,"ccs.ActionTimeline"); + tolua_cclass(tolua_S,"ActionTimeline","ccs.ActionTimeline","cc.Action",nullptr); + + tolua_beginmodule(tolua_S,"ActionTimeline"); + tolua_function(tolua_S,"new",lua_cocos2dx_studio_ActionTimeline_constructor); + tolua_function(tolua_S,"getTimelines",lua_cocos2dx_studio_ActionTimeline_getTimelines); + tolua_function(tolua_S,"getCurrentFrame",lua_cocos2dx_studio_ActionTimeline_getCurrentFrame); + tolua_function(tolua_S,"getStartFrame",lua_cocos2dx_studio_ActionTimeline_getStartFrame); + tolua_function(tolua_S,"pause",lua_cocos2dx_studio_ActionTimeline_pause); + tolua_function(tolua_S,"setFrameEventCallFunc",lua_cocos2dx_studio_ActionTimeline_setFrameEventCallFunc); + tolua_function(tolua_S,"resume",lua_cocos2dx_studio_ActionTimeline_resume); + tolua_function(tolua_S,"getDuration",lua_cocos2dx_studio_ActionTimeline_getDuration); + tolua_function(tolua_S,"addTimeline",lua_cocos2dx_studio_ActionTimeline_addTimeline); + tolua_function(tolua_S,"getEndFrame",lua_cocos2dx_studio_ActionTimeline_getEndFrame); + tolua_function(tolua_S,"setTimeSpeed",lua_cocos2dx_studio_ActionTimeline_setTimeSpeed); + tolua_function(tolua_S,"init",lua_cocos2dx_studio_ActionTimeline_init); + tolua_function(tolua_S,"setDuration",lua_cocos2dx_studio_ActionTimeline_setDuration); + tolua_function(tolua_S,"getTimeSpeed",lua_cocos2dx_studio_ActionTimeline_getTimeSpeed); + tolua_function(tolua_S,"gotoFrameAndPause",lua_cocos2dx_studio_ActionTimeline_gotoFrameAndPause); + tolua_function(tolua_S,"isPlaying",lua_cocos2dx_studio_ActionTimeline_isPlaying); + tolua_function(tolua_S,"gotoFrameAndPlay",lua_cocos2dx_studio_ActionTimeline_gotoFrameAndPlay); + tolua_function(tolua_S,"removeTimeline",lua_cocos2dx_studio_ActionTimeline_removeTimeline); + tolua_function(tolua_S,"clearFrameEventCallFunc",lua_cocos2dx_studio_ActionTimeline_clearFrameEventCallFunc); + tolua_function(tolua_S,"create", lua_cocos2dx_studio_ActionTimeline_create); + tolua_endmodule(tolua_S); + std::string typeName = typeid(cocostudio::timeline::ActionTimeline).name(); + g_luaType[typeName] = "ccs.ActionTimeline"; + g_typeCast["ActionTimeline"] = "ccs.ActionTimeline"; return 1; } TOLUA_API int register_all_cocos2dx_studio(lua_State* tolua_S) @@ -12916,26 +20150,41 @@ TOLUA_API int register_all_cocos2dx_studio(lua_State* tolua_S) tolua_module(tolua_S,"ccs",0); tolua_beginmodule(tolua_S,"ccs"); + lua_register_cocos2dx_studio_ActionFrame(tolua_S); + lua_register_cocos2dx_studio_ActionRotationFrame(tolua_S); + lua_register_cocos2dx_studio_NodeReader(tolua_S); + lua_register_cocos2dx_studio_Frame(tolua_S); + lua_register_cocos2dx_studio_ScaleFrame(tolua_S); lua_register_cocos2dx_studio_Tween(tolua_S); lua_register_cocos2dx_studio_ContourData(tolua_S); - lua_register_cocos2dx_studio_SceneReader(tolua_S); lua_register_cocos2dx_studio_ComAudio(tolua_S); + lua_register_cocos2dx_studio_ActionTimeline(tolua_S); + lua_register_cocos2dx_studio_InnerActionFrame(tolua_S); lua_register_cocos2dx_studio_ActionTimelineData(tolua_S); lua_register_cocos2dx_studio_DisplayData(tolua_S); lua_register_cocos2dx_studio_ArmatureDisplayData(tolua_S); lua_register_cocos2dx_studio_MovementData(tolua_S); lua_register_cocos2dx_studio_ArmatureDataManager(tolua_S); - lua_register_cocos2dx_studio_ArmatureData(tolua_S); + lua_register_cocos2dx_studio_ColorFrame(tolua_S); + lua_register_cocos2dx_studio_BatchNode(tolua_S); lua_register_cocos2dx_studio_BaseData(tolua_S); lua_register_cocos2dx_studio_FrameData(tolua_S); + lua_register_cocos2dx_studio_Timeline(tolua_S); lua_register_cocos2dx_studio_ComController(tolua_S); lua_register_cocos2dx_studio_BoneData(tolua_S); lua_register_cocos2dx_studio_ComRender(tolua_S); + lua_register_cocos2dx_studio_SkewFrame(tolua_S); + lua_register_cocos2dx_studio_RotationSkewFrame(tolua_S); lua_register_cocos2dx_studio_ParticleDisplayData(tolua_S); - lua_register_cocos2dx_studio_BatchNode(tolua_S); + lua_register_cocos2dx_studio_ActionFadeFrame(tolua_S); + lua_register_cocos2dx_studio_VisibleFrame(tolua_S); + lua_register_cocos2dx_studio_PositionFrame(tolua_S); + lua_register_cocos2dx_studio_RotationFrame(tolua_S); + lua_register_cocos2dx_studio_ArmatureData(tolua_S); lua_register_cocos2dx_studio_ActionObject(tolua_S); lua_register_cocos2dx_studio_Skin(tolua_S); lua_register_cocos2dx_studio_MovementBoneData(tolua_S); + lua_register_cocos2dx_studio_EventFrame(tolua_S); lua_register_cocos2dx_studio_DisplayManager(tolua_S); lua_register_cocos2dx_studio_GUIReader(tolua_S); lua_register_cocos2dx_studio_ArmatureAnimation(tolua_S); @@ -12943,9 +20192,17 @@ TOLUA_API int register_all_cocos2dx_studio(lua_State* tolua_S) lua_register_cocos2dx_studio_SpriteDisplayData(tolua_S); lua_register_cocos2dx_studio_ActionManagerEx(tolua_S); lua_register_cocos2dx_studio_Bone(tolua_S); - lua_register_cocos2dx_studio_ComAttribute(tolua_S); + lua_register_cocos2dx_studio_ZOrderFrame(tolua_S); + lua_register_cocos2dx_studio_ActionTintFrame(tolua_S); lua_register_cocos2dx_studio_TextureData(tolua_S); + lua_register_cocos2dx_studio_ActionMoveFrame(tolua_S); + lua_register_cocos2dx_studio_SceneReader(tolua_S); + lua_register_cocos2dx_studio_ActionTimelineCache(tolua_S); lua_register_cocos2dx_studio_AnimationData(tolua_S); + lua_register_cocos2dx_studio_AnchorPointFrame(tolua_S); + lua_register_cocos2dx_studio_ActionScaleFrame(tolua_S); + lua_register_cocos2dx_studio_TextureFrame(tolua_S); + lua_register_cocos2dx_studio_ComAttribute(tolua_S); tolua_endmodule(tolua_S); return 1; diff --git a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_studio_auto.hpp b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_studio_auto.hpp index d18f6d1b03..b63f793128 100644 --- a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_studio_auto.hpp +++ b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_studio_auto.hpp @@ -291,6 +291,185 @@ int register_all_cocos2dx_studio(lua_State* tolua_S); + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_ui_auto.cpp b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_ui_auto.cpp index d26c7e6a3a..0b309b14cd 100644 --- a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_ui_auto.cpp +++ b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_ui_auto.cpp @@ -257,7 +257,7 @@ static int lua_cocos2dx_ui_LayoutParameter_finalize(lua_State* tolua_S) int lua_register_cocos2dx_ui_LayoutParameter(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccui.LayoutParameter"); - tolua_cclass(tolua_S,"LayoutParameter","ccui.LayoutParameter","cc.Ref",nullptr); + tolua_cclass(tolua_S,"LayoutParameter","ccui.LayoutParameter","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"LayoutParameter"); tolua_function(tolua_S,"new",lua_cocos2dx_ui_LayoutParameter_constructor); @@ -437,7 +437,7 @@ static int lua_cocos2dx_ui_LinearLayoutParameter_finalize(lua_State* tolua_S) int lua_register_cocos2dx_ui_LinearLayoutParameter(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccui.LinearLayoutParameter"); - tolua_cclass(tolua_S,"LinearLayoutParameter","ccui.LinearLayoutParameter","ccui.LayoutParameter",nullptr); + tolua_cclass(tolua_S,"LinearLayoutParameter","ccui.LinearLayoutParameter","ccui.LayoutParameter",nullptr); tolua_beginmodule(tolua_S,"LinearLayoutParameter"); tolua_function(tolua_S,"new",lua_cocos2dx_ui_LinearLayoutParameter_constructor); @@ -795,7 +795,7 @@ static int lua_cocos2dx_ui_RelativeLayoutParameter_finalize(lua_State* tolua_S) int lua_register_cocos2dx_ui_RelativeLayoutParameter(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccui.RelativeLayoutParameter"); - tolua_cclass(tolua_S,"RelativeLayoutParameter","ccui.RelativeLayoutParameter","ccui.LayoutParameter",nullptr); + tolua_cclass(tolua_S,"RelativeLayoutParameter","ccui.RelativeLayoutParameter","ccui.LayoutParameter",nullptr); tolua_beginmodule(tolua_S,"RelativeLayoutParameter"); tolua_function(tolua_S,"new",lua_cocos2dx_ui_RelativeLayoutParameter_constructor); @@ -3217,7 +3217,7 @@ static int lua_cocos2dx_ui_Widget_finalize(lua_State* tolua_S) int lua_register_cocos2dx_ui_Widget(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccui.Widget"); - tolua_cclass(tolua_S,"Widget","ccui.Widget","cc.ProtectedNode",nullptr); + tolua_cclass(tolua_S,"Widget","ccui.Widget","cc.ProtectedNode",nullptr); tolua_beginmodule(tolua_S,"Widget"); tolua_function(tolua_S,"new",lua_cocos2dx_ui_Widget_constructor); @@ -4844,7 +4844,7 @@ static int lua_cocos2dx_ui_Layout_finalize(lua_State* tolua_S) int lua_register_cocos2dx_ui_Layout(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccui.Layout"); - tolua_cclass(tolua_S,"Layout","ccui.Layout","ccui.Widget",nullptr); + tolua_cclass(tolua_S,"Layout","ccui.Layout","ccui.Widget",nullptr); tolua_beginmodule(tolua_S,"Layout"); tolua_function(tolua_S,"new",lua_cocos2dx_ui_Layout_constructor); @@ -6138,7 +6138,7 @@ static int lua_cocos2dx_ui_Button_finalize(lua_State* tolua_S) int lua_register_cocos2dx_ui_Button(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccui.Button"); - tolua_cclass(tolua_S,"Button","ccui.Button","ccui.Widget",nullptr); + tolua_cclass(tolua_S,"Button","ccui.Button","ccui.Widget",nullptr); tolua_beginmodule(tolua_S,"Button"); tolua_function(tolua_S,"new",lua_cocos2dx_ui_Button_constructor); @@ -6850,7 +6850,7 @@ static int lua_cocos2dx_ui_CheckBox_finalize(lua_State* tolua_S) int lua_register_cocos2dx_ui_CheckBox(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccui.CheckBox"); - tolua_cclass(tolua_S,"CheckBox","ccui.CheckBox","ccui.Widget",nullptr); + tolua_cclass(tolua_S,"CheckBox","ccui.CheckBox","ccui.Widget",nullptr); tolua_beginmodule(tolua_S,"CheckBox"); tolua_function(tolua_S,"new",lua_cocos2dx_ui_CheckBox_constructor); @@ -7292,7 +7292,7 @@ static int lua_cocos2dx_ui_ImageView_finalize(lua_State* tolua_S) int lua_register_cocos2dx_ui_ImageView(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccui.ImageView"); - tolua_cclass(tolua_S,"ImageView","ccui.ImageView","ccui.Widget",nullptr); + tolua_cclass(tolua_S,"ImageView","ccui.ImageView","ccui.Widget",nullptr); tolua_beginmodule(tolua_S,"ImageView"); tolua_function(tolua_S,"new",lua_cocos2dx_ui_ImageView_constructor); @@ -8384,7 +8384,7 @@ static int lua_cocos2dx_ui_Text_finalize(lua_State* tolua_S) int lua_register_cocos2dx_ui_Text(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccui.Text"); - tolua_cclass(tolua_S,"Text","ccui.Text","ccui.Widget",nullptr); + tolua_cclass(tolua_S,"Text","ccui.Text","ccui.Widget",nullptr); tolua_beginmodule(tolua_S,"Text"); tolua_function(tolua_S,"new",lua_cocos2dx_ui_Text_constructor); @@ -8783,7 +8783,7 @@ static int lua_cocos2dx_ui_TextAtlas_finalize(lua_State* tolua_S) int lua_register_cocos2dx_ui_TextAtlas(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccui.TextAtlas"); - tolua_cclass(tolua_S,"TextAtlas","ccui.TextAtlas","ccui.Widget",nullptr); + tolua_cclass(tolua_S,"TextAtlas","ccui.TextAtlas","ccui.Widget",nullptr); tolua_beginmodule(tolua_S,"TextAtlas"); tolua_function(tolua_S,"new",lua_cocos2dx_ui_TextAtlas_constructor); @@ -9355,7 +9355,7 @@ static int lua_cocos2dx_ui_LoadingBar_finalize(lua_State* tolua_S) int lua_register_cocos2dx_ui_LoadingBar(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccui.LoadingBar"); - tolua_cclass(tolua_S,"LoadingBar","ccui.LoadingBar","ccui.Widget",nullptr); + tolua_cclass(tolua_S,"LoadingBar","ccui.LoadingBar","ccui.Widget",nullptr); tolua_beginmodule(tolua_S,"LoadingBar"); tolua_function(tolua_S,"new",lua_cocos2dx_ui_LoadingBar_constructor); @@ -10966,7 +10966,7 @@ static int lua_cocos2dx_ui_ScrollView_finalize(lua_State* tolua_S) int lua_register_cocos2dx_ui_ScrollView(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccui.ScrollView"); - tolua_cclass(tolua_S,"ScrollView","ccui.ScrollView","ccui.Layout",nullptr); + tolua_cclass(tolua_S,"ScrollView","ccui.ScrollView","ccui.Layout",nullptr); tolua_beginmodule(tolua_S,"ScrollView"); tolua_function(tolua_S,"new",lua_cocos2dx_ui_ScrollView_constructor); @@ -11975,7 +11975,7 @@ static int lua_cocos2dx_ui_ListView_finalize(lua_State* tolua_S) int lua_register_cocos2dx_ui_ListView(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccui.ListView"); - tolua_cclass(tolua_S,"ListView","ccui.ListView","ccui.ScrollView",nullptr); + tolua_cclass(tolua_S,"ListView","ccui.ListView","ccui.ScrollView",nullptr); tolua_beginmodule(tolua_S,"ListView"); tolua_function(tolua_S,"new",lua_cocos2dx_ui_ListView_constructor); @@ -12934,7 +12934,7 @@ static int lua_cocos2dx_ui_Slider_finalize(lua_State* tolua_S) int lua_register_cocos2dx_ui_Slider(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccui.Slider"); - tolua_cclass(tolua_S,"Slider","ccui.Slider","ccui.Widget",nullptr); + tolua_cclass(tolua_S,"Slider","ccui.Slider","ccui.Widget",nullptr); tolua_beginmodule(tolua_S,"Slider"); tolua_function(tolua_S,"new",lua_cocos2dx_ui_Slider_constructor); @@ -14669,7 +14669,7 @@ static int lua_cocos2dx_ui_TextField_finalize(lua_State* tolua_S) int lua_register_cocos2dx_ui_TextField(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccui.TextField"); - tolua_cclass(tolua_S,"TextField","ccui.TextField","ccui.Widget",nullptr); + tolua_cclass(tolua_S,"TextField","ccui.TextField","ccui.Widget",nullptr); tolua_beginmodule(tolua_S,"TextField"); tolua_function(tolua_S,"new",lua_cocos2dx_ui_TextField_constructor); @@ -15019,7 +15019,7 @@ static int lua_cocos2dx_ui_TextBMFont_finalize(lua_State* tolua_S) int lua_register_cocos2dx_ui_TextBMFont(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccui.TextBMFont"); - tolua_cclass(tolua_S,"TextBMFont","ccui.TextBMFont","ccui.Widget",nullptr); + tolua_cclass(tolua_S,"TextBMFont","ccui.TextBMFont","ccui.Widget",nullptr); tolua_beginmodule(tolua_S,"TextBMFont"); tolua_function(tolua_S,"new",lua_cocos2dx_ui_TextBMFont_constructor); @@ -15654,7 +15654,7 @@ static int lua_cocos2dx_ui_PageView_finalize(lua_State* tolua_S) int lua_register_cocos2dx_ui_PageView(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccui.PageView"); - tolua_cclass(tolua_S,"PageView","ccui.PageView","ccui.Layout",nullptr); + tolua_cclass(tolua_S,"PageView","ccui.PageView","ccui.Layout",nullptr); tolua_beginmodule(tolua_S,"PageView"); tolua_function(tolua_S,"new",lua_cocos2dx_ui_PageView_constructor); @@ -15901,7 +15901,7 @@ static int lua_cocos2dx_ui_RichElement_finalize(lua_State* tolua_S) int lua_register_cocos2dx_ui_RichElement(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccui.RichElement"); - tolua_cclass(tolua_S,"RichElement","ccui.RichElement","cc.Ref",nullptr); + tolua_cclass(tolua_S,"RichElement","ccui.RichElement","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"RichElement"); tolua_function(tolua_S,"new",lua_cocos2dx_ui_RichElement_constructor); @@ -16061,7 +16061,7 @@ static int lua_cocos2dx_ui_RichElementText_finalize(lua_State* tolua_S) int lua_register_cocos2dx_ui_RichElementText(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccui.RichElementText"); - tolua_cclass(tolua_S,"RichElementText","ccui.RichElementText","ccui.RichElement",nullptr); + tolua_cclass(tolua_S,"RichElementText","ccui.RichElementText","ccui.RichElement",nullptr); tolua_beginmodule(tolua_S,"RichElementText"); tolua_function(tolua_S,"new",lua_cocos2dx_ui_RichElementText_constructor); @@ -16212,7 +16212,7 @@ static int lua_cocos2dx_ui_RichElementImage_finalize(lua_State* tolua_S) int lua_register_cocos2dx_ui_RichElementImage(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccui.RichElementImage"); - tolua_cclass(tolua_S,"RichElementImage","ccui.RichElementImage","ccui.RichElement",nullptr); + tolua_cclass(tolua_S,"RichElementImage","ccui.RichElementImage","ccui.RichElement",nullptr); tolua_beginmodule(tolua_S,"RichElementImage"); tolua_function(tolua_S,"new",lua_cocos2dx_ui_RichElementImage_constructor); @@ -16363,7 +16363,7 @@ static int lua_cocos2dx_ui_RichElementCustomNode_finalize(lua_State* tolua_S) int lua_register_cocos2dx_ui_RichElementCustomNode(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccui.RichElementCustomNode"); - tolua_cclass(tolua_S,"RichElementCustomNode","ccui.RichElementCustomNode","ccui.RichElement",nullptr); + tolua_cclass(tolua_S,"RichElementCustomNode","ccui.RichElementCustomNode","ccui.RichElement",nullptr); tolua_beginmodule(tolua_S,"RichElementCustomNode"); tolua_function(tolua_S,"new",lua_cocos2dx_ui_RichElementCustomNode_constructor); @@ -16779,7 +16779,7 @@ static int lua_cocos2dx_ui_RichText_finalize(lua_State* tolua_S) int lua_register_cocos2dx_ui_RichText(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccui.RichText"); - tolua_cclass(tolua_S,"RichText","ccui.RichText","ccui.Widget",nullptr); + tolua_cclass(tolua_S,"RichText","ccui.RichText","ccui.Widget",nullptr); tolua_beginmodule(tolua_S,"RichText"); tolua_function(tolua_S,"new",lua_cocos2dx_ui_RichText_constructor); @@ -16886,7 +16886,7 @@ static int lua_cocos2dx_ui_HBox_finalize(lua_State* tolua_S) int lua_register_cocos2dx_ui_HBox(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccui.HBox"); - tolua_cclass(tolua_S,"HBox","ccui.HBox","ccui.Layout",nullptr); + tolua_cclass(tolua_S,"HBox","ccui.HBox","ccui.Layout",nullptr); tolua_beginmodule(tolua_S,"HBox"); tolua_function(tolua_S,"new",lua_cocos2dx_ui_HBox_constructor); @@ -16986,7 +16986,7 @@ static int lua_cocos2dx_ui_VBox_finalize(lua_State* tolua_S) int lua_register_cocos2dx_ui_VBox(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccui.VBox"); - tolua_cclass(tolua_S,"VBox","ccui.VBox","ccui.Layout",nullptr); + tolua_cclass(tolua_S,"VBox","ccui.VBox","ccui.Layout",nullptr); tolua_beginmodule(tolua_S,"VBox"); tolua_function(tolua_S,"new",lua_cocos2dx_ui_VBox_constructor); @@ -17086,7 +17086,7 @@ static int lua_cocos2dx_ui_RelativeBox_finalize(lua_State* tolua_S) int lua_register_cocos2dx_ui_RelativeBox(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccui.RelativeBox"); - tolua_cclass(tolua_S,"RelativeBox","ccui.RelativeBox","ccui.Layout",nullptr); + tolua_cclass(tolua_S,"RelativeBox","ccui.RelativeBox","ccui.Layout",nullptr); tolua_beginmodule(tolua_S,"RelativeBox"); tolua_function(tolua_S,"new",lua_cocos2dx_ui_RelativeBox_constructor); diff --git a/cocos/scripting/lua-bindings/manual/lua_cocos2dx_coco_studio_manual.cpp b/cocos/scripting/lua-bindings/manual/lua_cocos2dx_coco_studio_manual.cpp index 605f157f05..a16eec37f0 100644 --- a/cocos/scripting/lua-bindings/manual/lua_cocos2dx_coco_studio_manual.cpp +++ b/cocos/scripting/lua-bindings/manual/lua_cocos2dx_coco_studio_manual.cpp @@ -405,6 +405,155 @@ static void extendBone(lua_State* L) lua_pop(L, 1); } +int lua_cocos2dx_studio_NodeReader_getInstance(lua_State* L) +{ + int argc = 0; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertable(L,1,"ccs.NodeReader",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(L) - 1; + + if (argc == 0) + { + if(!ok) + return 0; + cocostudio::timeline::NodeReader* ret = cocostudio::timeline::NodeReader::getInstance(); + tolua_pushusertype(L,(void*)ret, "ccs.NodeReader"); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "getInstance",argc, 0); + return 0; +#if COCOS2D_DEBUG >= 1 +tolua_lerror: + tolua_error(L,"#ferror in function 'lua_cocos2dx_studio_NodeReader_getInstance'.",&tolua_err); +#endif + return 0; +} + +static void extendNodeReader(lua_State* L) +{ + lua_pushstring(L, "ccs.NodeReader"); + lua_rawget(L, LUA_REGISTRYINDEX); + if (lua_istable(L,-1)) + { + tolua_function(L, "getInstance", lua_cocos2dx_studio_NodeReader_getInstance); + } + lua_pop(L, 1); +} + +int lua_cocos2dx_studio_ActionTimelineCache_getInstance(lua_State* L) +{ + int argc = 0; + bool ok = true; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if COCOS2D_DEBUG >= 1 + if (!tolua_isusertable(L,1,"ccs.ActionTimelineCache",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(L) - 1; + + if (argc == 0) + { + if(!ok) + return 0; + cocostudio::timeline::ActionTimelineCache* ret = cocostudio::timeline::ActionTimelineCache::getInstance(); + tolua_pushusertype(L,(void*)ret, "ccs.ActionTimelineCache"); + return 1; + } + CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "getInstance",argc, 0); + return 0; +#if COCOS2D_DEBUG >= 1 +tolua_lerror: + tolua_error(L,"#ferror in function 'lua_cocos2dx_studio_ActionTimelineCache_getInstance'.",&tolua_err); +#endif + return 0; +} + +static void extendActionTimelineCache(lua_State* L) +{ + lua_pushstring(L, "ccs.ActionTimelineCache"); + lua_rawget(L, LUA_REGISTRYINDEX); + if (lua_istable(L,-1)) + { + tolua_function(L, "getInstance", lua_cocos2dx_studio_ActionTimelineCache_getInstance); + } + lua_pop(L, 1); +} + +static int lua_cocos2dx_ActionTimeline_setFrameEventCallFunc(lua_State* L) +{ + if (nullptr == L) + return 0; + + int argc = 0; + cocostudio::timeline::ActionTimeline* self = nullptr; + +#if COCOS2D_DEBUG >= 1 + tolua_Error tolua_err; + if (!tolua_isusertype(L,1,"ccs.ActionTimeline",0,&tolua_err)) goto tolua_lerror; +#endif + + self = static_cast(tolua_tousertype(L,1,0)); + +#if COCOS2D_DEBUG >= 1 + if (nullptr == self) { + tolua_error(L,"invalid 'self' in function 'lua_cocos2dx_ActionTimeline_setFrameEventCallFunc'\n", NULL); + return 0; + } +#endif + argc = lua_gettop(L) - 1; + + if (1 == argc) + { +#if COCOS2D_DEBUG >= 1 + if (!toluafix_isfunction(L,2,"LUA_FUNCTION",0,&tolua_err) ) + { + goto tolua_lerror; + } +#endif + + LUA_FUNCTION handler = ( toluafix_ref_function(L,2,0)); + self->setFrameEventCallFunc([=](cocostudio::timeline::Frame* frame){ + toluafix_pushusertype_ccobject(L, frame->_ID, &frame->_luaID, (void*)frame, getLuaTypeName(frame, "ccs.Frame")); + LuaEngine::getInstance()->getLuaStack()->executeFunctionByHandler(handler, 1); + }); + + return 0; + } + + + CCLOG("'setFrameEventCallFunc' function of ActionTimeline has wrong number of arguments: %d, was expecting %d\n", argc, 1); + +#if COCOS2D_DEBUG >= 1 +tolua_lerror: + tolua_error(L,"#ferror in function 'setFrameEventCallFunc'.",&tolua_err); + return 0; +#endif +} + +static void extendActionTimeline(lua_State* L) +{ + lua_pushstring(L, "ccs.ActionTimeline"); + lua_rawget(L, LUA_REGISTRYINDEX); + if (lua_istable(L,-1)) + { + tolua_function(L, "setFrameEventCallFunc", lua_cocos2dx_ActionTimeline_setFrameEventCallFunc); + } + lua_pop(L, 1); +} + + int register_all_cocos2dx_coco_studio_manual(lua_State* L) { if (nullptr == L) @@ -412,6 +561,9 @@ int register_all_cocos2dx_coco_studio_manual(lua_State* L) extendArmatureAnimation(L); extendArmatureDataManager(L); extendBone(L); + extendActionTimelineCache(L); + extendNodeReader(L); + extendActionTimeline(L); return 0; } diff --git a/templates/cocos2dx_files.json b/templates/cocos2dx_files.json index 752db8c9b7..269c472f7b 100644 --- a/templates/cocos2dx_files.json +++ b/templates/cocos2dx_files.json @@ -3523,13 +3523,22 @@ "cocos/scripting/lua-bindings/auto/api/Action.lua", "cocos/scripting/lua-bindings/auto/api/ActionCamera.lua", "cocos/scripting/lua-bindings/auto/api/ActionEase.lua", + "cocos/scripting/lua-bindings/auto/api/ActionFadeFrame.lua", + "cocos/scripting/lua-bindings/auto/api/ActionFrame.lua", "cocos/scripting/lua-bindings/auto/api/ActionInstant.lua", "cocos/scripting/lua-bindings/auto/api/ActionInterval.lua", "cocos/scripting/lua-bindings/auto/api/ActionManager.lua", "cocos/scripting/lua-bindings/auto/api/ActionManagerEx.lua", + "cocos/scripting/lua-bindings/auto/api/ActionMoveFrame.lua", "cocos/scripting/lua-bindings/auto/api/ActionObject.lua", + "cocos/scripting/lua-bindings/auto/api/ActionRotationFrame.lua", + "cocos/scripting/lua-bindings/auto/api/ActionScaleFrame.lua", + "cocos/scripting/lua-bindings/auto/api/ActionTimeline.lua", + "cocos/scripting/lua-bindings/auto/api/ActionTimelineCache.lua", "cocos/scripting/lua-bindings/auto/api/ActionTimelineData.lua", + "cocos/scripting/lua-bindings/auto/api/ActionTintFrame.lua", "cocos/scripting/lua-bindings/auto/api/ActionTween.lua", + "cocos/scripting/lua-bindings/auto/api/AnchorPointFrame.lua", "cocos/scripting/lua-bindings/auto/api/Animate.lua", "cocos/scripting/lua-bindings/auto/api/Animate3D.lua", "cocos/scripting/lua-bindings/auto/api/Animation.lua", @@ -3562,6 +3571,7 @@ "cocos/scripting/lua-bindings/auto/api/CatmullRomTo.lua", "cocos/scripting/lua-bindings/auto/api/CheckBox.lua", "cocos/scripting/lua-bindings/auto/api/ClippingNode.lua", + "cocos/scripting/lua-bindings/auto/api/ColorFrame.lua", "cocos/scripting/lua-bindings/auto/api/ComAttribute.lua", "cocos/scripting/lua-bindings/auto/api/ComAudio.lua", "cocos/scripting/lua-bindings/auto/api/ComController.lua", @@ -3626,6 +3636,7 @@ "cocos/scripting/lua-bindings/auto/api/EventCustom.lua", "cocos/scripting/lua-bindings/auto/api/EventDispatcher.lua", "cocos/scripting/lua-bindings/auto/api/EventFocus.lua", + "cocos/scripting/lua-bindings/auto/api/EventFrame.lua", "cocos/scripting/lua-bindings/auto/api/EventKeyboard.lua", "cocos/scripting/lua-bindings/auto/api/EventListener.lua", "cocos/scripting/lua-bindings/auto/api/EventListenerAcceleration.lua", @@ -3655,6 +3666,7 @@ "cocos/scripting/lua-bindings/auto/api/FlipY.lua", "cocos/scripting/lua-bindings/auto/api/FlipY3D.lua", "cocos/scripting/lua-bindings/auto/api/Follow.lua", + "cocos/scripting/lua-bindings/auto/api/Frame.lua", "cocos/scripting/lua-bindings/auto/api/FrameData.lua", "cocos/scripting/lua-bindings/auto/api/GLProgram.lua", "cocos/scripting/lua-bindings/auto/api/GLProgramCache.lua", @@ -3671,6 +3683,7 @@ "cocos/scripting/lua-bindings/auto/api/Hide.lua", "cocos/scripting/lua-bindings/auto/api/Image.lua", "cocos/scripting/lua-bindings/auto/api/ImageView.lua", + "cocos/scripting/lua-bindings/auto/api/InnerActionFrame.lua", "cocos/scripting/lua-bindings/auto/api/JumpBy.lua", "cocos/scripting/lua-bindings/auto/api/JumpTiles3D.lua", "cocos/scripting/lua-bindings/auto/api/JumpTo.lua", @@ -3703,6 +3716,7 @@ "cocos/scripting/lua-bindings/auto/api/MovementData.lua", "cocos/scripting/lua-bindings/auto/api/Node.lua", "cocos/scripting/lua-bindings/auto/api/NodeGrid.lua", + "cocos/scripting/lua-bindings/auto/api/NodeReader.lua", "cocos/scripting/lua-bindings/auto/api/OrbitCamera.lua", "cocos/scripting/lua-bindings/auto/api/PageTurn3D.lua", "cocos/scripting/lua-bindings/auto/api/PageView.lua", @@ -3749,6 +3763,7 @@ "cocos/scripting/lua-bindings/auto/api/PhysicsShapePolygon.lua", "cocos/scripting/lua-bindings/auto/api/PhysicsWorld.lua", "cocos/scripting/lua-bindings/auto/api/Place.lua", + "cocos/scripting/lua-bindings/auto/api/PositionFrame.lua", "cocos/scripting/lua-bindings/auto/api/ProgressFromTo.lua", "cocos/scripting/lua-bindings/auto/api/ProgressTimer.lua", "cocos/scripting/lua-bindings/auto/api/ProgressTo.lua", @@ -3769,8 +3784,11 @@ "cocos/scripting/lua-bindings/auto/api/Ripple3D.lua", "cocos/scripting/lua-bindings/auto/api/RotateBy.lua", "cocos/scripting/lua-bindings/auto/api/RotateTo.lua", + "cocos/scripting/lua-bindings/auto/api/RotationFrame.lua", + "cocos/scripting/lua-bindings/auto/api/RotationSkewFrame.lua", "cocos/scripting/lua-bindings/auto/api/Scale9Sprite.lua", "cocos/scripting/lua-bindings/auto/api/ScaleBy.lua", + "cocos/scripting/lua-bindings/auto/api/ScaleFrame.lua", "cocos/scripting/lua-bindings/auto/api/ScaleTo.lua", "cocos/scripting/lua-bindings/auto/api/Scene.lua", "cocos/scripting/lua-bindings/auto/api/SceneReader.lua", @@ -3786,6 +3804,7 @@ "cocos/scripting/lua-bindings/auto/api/Skeleton.lua", "cocos/scripting/lua-bindings/auto/api/SkeletonAnimation.lua", "cocos/scripting/lua-bindings/auto/api/SkewBy.lua", + "cocos/scripting/lua-bindings/auto/api/SkewFrame.lua", "cocos/scripting/lua-bindings/auto/api/SkewTo.lua", "cocos/scripting/lua-bindings/auto/api/Skin.lua", "cocos/scripting/lua-bindings/auto/api/Slider.lua", @@ -3816,9 +3835,11 @@ "cocos/scripting/lua-bindings/auto/api/Texture2D.lua", "cocos/scripting/lua-bindings/auto/api/TextureCache.lua", "cocos/scripting/lua-bindings/auto/api/TextureData.lua", + "cocos/scripting/lua-bindings/auto/api/TextureFrame.lua", "cocos/scripting/lua-bindings/auto/api/TileMapAtlas.lua", "cocos/scripting/lua-bindings/auto/api/TiledGrid3D.lua", "cocos/scripting/lua-bindings/auto/api/TiledGrid3DAction.lua", + "cocos/scripting/lua-bindings/auto/api/Timeline.lua", "cocos/scripting/lua-bindings/auto/api/Timer.lua", "cocos/scripting/lua-bindings/auto/api/TintBy.lua", "cocos/scripting/lua-bindings/auto/api/TintTo.lua", @@ -3866,10 +3887,12 @@ "cocos/scripting/lua-bindings/auto/api/Twirl.lua", "cocos/scripting/lua-bindings/auto/api/UserDefault.lua", "cocos/scripting/lua-bindings/auto/api/VBox.lua", + "cocos/scripting/lua-bindings/auto/api/VisibleFrame.lua", "cocos/scripting/lua-bindings/auto/api/Waves.lua", "cocos/scripting/lua-bindings/auto/api/Waves3D.lua", "cocos/scripting/lua-bindings/auto/api/WavesTiles3D.lua", "cocos/scripting/lua-bindings/auto/api/Widget.lua", + "cocos/scripting/lua-bindings/auto/api/ZOrderFrame.lua", "cocos/scripting/lua-bindings/auto/api/lua_cocos2dx_auto_api.lua", "cocos/scripting/lua-bindings/auto/api/lua_cocos2dx_extension_auto_api.lua", "cocos/scripting/lua-bindings/auto/api/lua_cocos2dx_physics_auto_api.lua", diff --git a/tests/cpp-tests/Classes/ExtensionsTest/NetworkTest/HttpClientTest.cpp b/tests/cpp-tests/Classes/ExtensionsTest/NetworkTest/HttpClientTest.cpp index e2d1187fc9..46ff3e394e 100644 --- a/tests/cpp-tests/Classes/ExtensionsTest/NetworkTest/HttpClientTest.cpp +++ b/tests/cpp-tests/Classes/ExtensionsTest/NetworkTest/HttpClientTest.cpp @@ -13,6 +13,9 @@ HttpClientTest::HttpClientTest() const int MARGIN = 40; const int SPACE = 35; + + const int LEFT = winSize.width / 4; + const int RIGHT = winSize.width / 4 * 3; auto label = Label::createWithTTF("Http Request Test", "fonts/arial.ttf", 28); label->setPosition(Vec2(winSize.width / 2, winSize.height - MARGIN)); @@ -24,36 +27,66 @@ HttpClientTest::HttpClientTest() // Get auto labelGet = Label::createWithTTF("Test Get", "fonts/arial.ttf", 22); - auto itemGet = MenuItemLabel::create(labelGet, CC_CALLBACK_1(HttpClientTest::onMenuGetTestClicked, this)); - itemGet->setPosition(Vec2(winSize.width / 2, winSize.height - MARGIN - SPACE)); + auto itemGet = MenuItemLabel::create(labelGet, CC_CALLBACK_1(HttpClientTest::onMenuGetTestClicked, this, false)); + itemGet->setPosition(Vec2(LEFT, winSize.height - MARGIN - SPACE)); menuRequest->addChild(itemGet); // Post auto labelPost = Label::createWithTTF("Test Post", "fonts/arial.ttf", 22); - auto itemPost = MenuItemLabel::create(labelPost, CC_CALLBACK_1(HttpClientTest::onMenuPostTestClicked, this)); - itemPost->setPosition(Vec2(winSize.width / 2, winSize.height - MARGIN - 2 * SPACE)); + auto itemPost = MenuItemLabel::create(labelPost, CC_CALLBACK_1(HttpClientTest::onMenuPostTestClicked, this, false)); + itemPost->setPosition(Vec2(LEFT, winSize.height - MARGIN - 2 * SPACE)); menuRequest->addChild(itemPost); // Post Binary auto labelPostBinary = Label::createWithTTF("Test Post Binary", "fonts/arial.ttf", 22); - auto itemPostBinary = MenuItemLabel::create(labelPostBinary, CC_CALLBACK_1(HttpClientTest::onMenuPostBinaryTestClicked, this)); - itemPostBinary->setPosition(Vec2(winSize.width / 2, winSize.height - MARGIN - 3 * SPACE)); + auto itemPostBinary = MenuItemLabel::create(labelPostBinary, CC_CALLBACK_1(HttpClientTest::onMenuPostBinaryTestClicked, this, false)); + itemPostBinary->setPosition(Vec2(LEFT, winSize.height - MARGIN - 3 * SPACE)); menuRequest->addChild(itemPostBinary); // Put auto labelPut = Label::createWithTTF("Test Put", "fonts/arial.ttf", 22); - auto itemPut = MenuItemLabel::create(labelPut, CC_CALLBACK_1(HttpClientTest::onMenuPutTestClicked, this)); - itemPut->setPosition(Vec2(winSize.width / 2, winSize.height - MARGIN - 4 * SPACE)); + auto itemPut = MenuItemLabel::create(labelPut, CC_CALLBACK_1(HttpClientTest::onMenuPutTestClicked, this, false)); + itemPut->setPosition(Vec2(LEFT, winSize.height - MARGIN - 4 * SPACE)); menuRequest->addChild(itemPut); // Delete auto labelDelete = Label::createWithTTF("Test Delete", "fonts/arial.ttf", 22); - auto itemDelete = MenuItemLabel::create(labelDelete, CC_CALLBACK_1(HttpClientTest::onMenuDeleteTestClicked, this)); - itemDelete->setPosition(Vec2(winSize.width / 2, winSize.height - MARGIN - 5 * SPACE)); + auto itemDelete = MenuItemLabel::create(labelDelete, CC_CALLBACK_1(HttpClientTest::onMenuDeleteTestClicked, this, false)); + itemDelete->setPosition(Vec2(LEFT, winSize.height - MARGIN - 5 * SPACE)); + menuRequest->addChild(itemDelete); + + // Get for sendImmediate + labelGet = Label::createWithTTF("Test Immediate Get", "fonts/arial.ttf", 22); + itemGet = MenuItemLabel::create(labelGet, CC_CALLBACK_1(HttpClientTest::onMenuGetTestClicked, this, true)); + itemGet->setPosition(Vec2(RIGHT, winSize.height - MARGIN - SPACE)); + menuRequest->addChild(itemGet); + + // Post for sendImmediate + labelPost = Label::createWithTTF("Test Immediate Post", "fonts/arial.ttf", 22); + itemPost = MenuItemLabel::create(labelPost, CC_CALLBACK_1(HttpClientTest::onMenuPostTestClicked, this, true)); + itemPost->setPosition(Vec2(RIGHT, winSize.height - MARGIN - 2 * SPACE)); + menuRequest->addChild(itemPost); + + // Post Binary for sendImmediate + labelPostBinary = Label::createWithTTF("Test Immediate Post Binary", "fonts/arial.ttf", 22); + itemPostBinary = MenuItemLabel::create(labelPostBinary, CC_CALLBACK_1(HttpClientTest::onMenuPostBinaryTestClicked, this, true)); + itemPostBinary->setPosition(Vec2(RIGHT, winSize.height - MARGIN - 3 * SPACE)); + menuRequest->addChild(itemPostBinary); + + // Put for sendImmediate + labelPut = Label::createWithTTF("Test Immediate Put", "fonts/arial.ttf", 22); + itemPut = MenuItemLabel::create(labelPut, CC_CALLBACK_1(HttpClientTest::onMenuPutTestClicked, this, true)); + itemPut->setPosition(Vec2(RIGHT, winSize.height - MARGIN - 4 * SPACE)); + menuRequest->addChild(itemPut); + + // Delete for sendImmediate + labelDelete = Label::createWithTTF("Test Immediate Delete", "fonts/arial.ttf", 22); + itemDelete = MenuItemLabel::create(labelDelete, CC_CALLBACK_1(HttpClientTest::onMenuDeleteTestClicked, this, true)); + itemDelete->setPosition(Vec2(RIGHT, winSize.height - MARGIN - 5 * SPACE)); menuRequest->addChild(itemDelete); // Response Code Label - _labelStatusCode = Label::createWithTTF("HTTP Status Code", "fonts/arial.ttf", 22); + _labelStatusCode = Label::createWithTTF("HTTP Status Code", "fonts/arial.ttf", 18); _labelStatusCode->setPosition(Vec2(winSize.width / 2, winSize.height - MARGIN - 6 * SPACE)); addChild(_labelStatusCode); @@ -70,7 +103,7 @@ HttpClientTest::~HttpClientTest() HttpClient::destroyInstance(); } -void HttpClientTest::onMenuGetTestClicked(cocos2d::Ref *sender) +void HttpClientTest::onMenuGetTestClicked(cocos2d::Ref *sender, bool isImmediate) { // test 1 { @@ -78,8 +111,15 @@ void HttpClientTest::onMenuGetTestClicked(cocos2d::Ref *sender) request->setUrl("http://just-make-this-request-failed.com"); request->setRequestType(HttpRequest::Type::GET); request->setResponseCallback(CC_CALLBACK_2(HttpClientTest::onHttpRequestCompleted, this)); - request->setTag("GET test1"); - HttpClient::getInstance()->send(request); + if (isImmediate) + { + request->setTag("GET immediate test1"); + HttpClient::getInstance()->sendImmediate(request); + }else + { + request->setTag("GET test1"); + HttpClient::getInstance()->send(request); + } request->release(); } @@ -90,11 +130,15 @@ void HttpClientTest::onMenuGetTestClicked(cocos2d::Ref *sender) request->setUrl("http://httpbin.org/ip"); request->setRequestType(HttpRequest::Type::GET); request->setResponseCallback(CC_CALLBACK_2(HttpClientTest::onHttpRequestCompleted, this)); - // optional fields - request->setTag("GET test2"); - - HttpClient::getInstance()->send(request); - + if (isImmediate) + { + request->setTag("GET immediate test2"); + HttpClient::getInstance()->sendImmediate(request); + }else + { + request->setTag("GET test2"); + HttpClient::getInstance()->send(request); + } // don't forget to release it, pair to new request->release(); } @@ -105,8 +149,15 @@ void HttpClientTest::onMenuGetTestClicked(cocos2d::Ref *sender) request->setUrl("https://httpbin.org/get"); request->setRequestType(HttpRequest::Type::GET); request->setResponseCallback(CC_CALLBACK_2(HttpClientTest::onHttpRequestCompleted, this)); - request->setTag("GET test3"); - HttpClient::getInstance()->send(request); + if (isImmediate) + { + request->setTag("GET immediate test3"); + HttpClient::getInstance()->sendImmediate(request); + }else + { + request->setTag("GET test3"); + HttpClient::getInstance()->send(request); + } request->release(); } @@ -115,7 +166,7 @@ void HttpClientTest::onMenuGetTestClicked(cocos2d::Ref *sender) } -void HttpClientTest::onMenuPostTestClicked(cocos2d::Ref *sender) +void HttpClientTest::onMenuPostTestClicked(cocos2d::Ref *sender, bool isImmediate) { // test 1 { @@ -127,9 +178,15 @@ void HttpClientTest::onMenuPostTestClicked(cocos2d::Ref *sender) // write the post data const char* postData = "visitor=cocos2d&TestSuite=Extensions Test/NetworkTest"; request->setRequestData(postData, strlen(postData)); - - request->setTag("POST test1"); - HttpClient::getInstance()->send(request); + if (isImmediate) + { + request->setTag("POST immediate test1"); + HttpClient::getInstance()->sendImmediate(request); + }else + { + request->setTag("POST test1"); + HttpClient::getInstance()->send(request); + } request->release(); } @@ -146,9 +203,15 @@ void HttpClientTest::onMenuPostTestClicked(cocos2d::Ref *sender) // write the post data const char* postData = "visitor=cocos2d&TestSuite=Extensions Test/NetworkTest"; request->setRequestData(postData, strlen(postData)); - - request->setTag("POST test2"); - HttpClient::getInstance()->send(request); + if (isImmediate) + { + request->setTag("POST immediate test2"); + HttpClient::getInstance()->sendImmediate(request); + }else + { + request->setTag("POST test2"); + HttpClient::getInstance()->send(request); + } request->release(); } @@ -156,7 +219,7 @@ void HttpClientTest::onMenuPostTestClicked(cocos2d::Ref *sender) _labelStatusCode->setString("waiting..."); } -void HttpClientTest::onMenuPostBinaryTestClicked(cocos2d::Ref *sender) +void HttpClientTest::onMenuPostBinaryTestClicked(cocos2d::Ref *sender, bool isImmediate) { HttpRequest* request = new HttpRequest(); request->setUrl("http://httpbin.org/post"); @@ -166,9 +229,15 @@ void HttpClientTest::onMenuPostBinaryTestClicked(cocos2d::Ref *sender) // write the post data char postData[22] = "binary=hello\0\0cocos2d"; // including \0, the strings after \0 should not be cut in response request->setRequestData(postData, 22); - - request->setTag("POST Binary test"); - HttpClient::getInstance()->send(request); + if (isImmediate) + { + request->setTag("POST Binary immediate test"); + HttpClient::getInstance()->sendImmediate(request); + }else + { + request->setTag("POST Binary test"); + HttpClient::getInstance()->send(request); + } request->release(); // waiting @@ -177,7 +246,7 @@ void HttpClientTest::onMenuPostBinaryTestClicked(cocos2d::Ref *sender) -void HttpClientTest::onMenuPutTestClicked(Ref *sender) +void HttpClientTest::onMenuPutTestClicked(Ref *sender, bool isImmediate) { // test 1 { @@ -189,9 +258,15 @@ void HttpClientTest::onMenuPutTestClicked(Ref *sender) // write the post data const char* postData = "visitor=cocos2d&TestSuite=Extensions Test/NetworkTest"; request->setRequestData(postData, strlen(postData)); - - request->setTag("PUT test1"); - HttpClient::getInstance()->send(request); + if (isImmediate) + { + request->setTag("PUT Binary immediate test1"); + HttpClient::getInstance()->sendImmediate(request); + }else + { + request->setTag("PUT Binary test1"); + HttpClient::getInstance()->send(request); + } request->release(); } @@ -208,9 +283,15 @@ void HttpClientTest::onMenuPutTestClicked(Ref *sender) // write the post data const char* postData = "visitor=cocos2d&TestSuite=Extensions Test/NetworkTest"; request->setRequestData(postData, strlen(postData)); - - request->setTag("PUT test2"); - HttpClient::getInstance()->send(request); + if (isImmediate) + { + request->setTag("PUT Binary immediate test2"); + HttpClient::getInstance()->sendImmediate(request); + }else + { + request->setTag("PUT Binary test2"); + HttpClient::getInstance()->send(request); + } request->release(); } @@ -218,7 +299,7 @@ void HttpClientTest::onMenuPutTestClicked(Ref *sender) _labelStatusCode->setString("waiting..."); } -void HttpClientTest::onMenuDeleteTestClicked(Ref *sender) +void HttpClientTest::onMenuDeleteTestClicked(Ref *sender, bool isImmediate) { // test 1 { @@ -226,8 +307,15 @@ void HttpClientTest::onMenuDeleteTestClicked(Ref *sender) request->setUrl("http://just-make-this-request-failed.com"); request->setRequestType(HttpRequest::Type::DELETE); request->setResponseCallback(CC_CALLBACK_2(HttpClientTest::onHttpRequestCompleted, this)); - request->setTag("DELETE test1"); - HttpClient::getInstance()->send(request); + if (isImmediate) + { + request->setTag("DELETE immediate test1"); + HttpClient::getInstance()->sendImmediate(request); + }else + { + request->setTag("DELETE test1"); + HttpClient::getInstance()->send(request); + } request->release(); } @@ -237,8 +325,15 @@ void HttpClientTest::onMenuDeleteTestClicked(Ref *sender) request->setUrl("http://httpbin.org/delete"); request->setRequestType(HttpRequest::Type::DELETE); request->setResponseCallback(CC_CALLBACK_2(HttpClientTest::onHttpRequestCompleted, this)); - request->setTag("DELETE test2"); - HttpClient::getInstance()->send(request); + if (isImmediate) + { + request->setTag("DELETE immediate test2"); + HttpClient::getInstance()->sendImmediate(request); + }else + { + request->setTag("DELETE test2"); + HttpClient::getInstance()->send(request); + } request->release(); } @@ -280,6 +375,10 @@ void HttpClientTest::onHttpRequestCompleted(HttpClient *sender, HttpResponse *re printf("%c", (*buffer)[i]); } printf("\n"); + if (response->getHttpRequest()->getReferenceCount() != 2) + { + log("request ref count not 2, is %d", response->getHttpRequest()->getReferenceCount()); + } } void HttpClientTest::toExtensionsMainLayer(cocos2d::Ref *sender) diff --git a/tests/cpp-tests/Classes/ExtensionsTest/NetworkTest/HttpClientTest.h b/tests/cpp-tests/Classes/ExtensionsTest/NetworkTest/HttpClientTest.h index ff97bbca26..01cf360918 100644 --- a/tests/cpp-tests/Classes/ExtensionsTest/NetworkTest/HttpClientTest.h +++ b/tests/cpp-tests/Classes/ExtensionsTest/NetworkTest/HttpClientTest.h @@ -13,11 +13,11 @@ public: void toExtensionsMainLayer(cocos2d::Ref *sender); //Menu Callbacks - void onMenuGetTestClicked(cocos2d::Ref *sender); - void onMenuPostTestClicked(cocos2d::Ref *sender); - void onMenuPostBinaryTestClicked(cocos2d::Ref *sender); - void onMenuPutTestClicked(cocos2d::Ref *sender); - void onMenuDeleteTestClicked(cocos2d::Ref *sender); + void onMenuGetTestClicked(cocos2d::Ref *sender, bool isImmediate); + void onMenuPostTestClicked(cocos2d::Ref *sender, bool isImmediate); + void onMenuPostBinaryTestClicked(cocos2d::Ref *sender, bool isImmediate); + void onMenuPutTestClicked(cocos2d::Ref *sender, bool isImmediate); + void onMenuDeleteTestClicked(cocos2d::Ref *sender, bool isImmediate); //Http Response Callback void onHttpRequestCompleted(cocos2d::network::HttpClient *sender, cocos2d::network::HttpResponse *response); diff --git a/tests/cpp-tests/Classes/NodeTest/NodeTest.cpp b/tests/cpp-tests/Classes/NodeTest/NodeTest.cpp index 14e494be28..fffa01f9b1 100644 --- a/tests/cpp-tests/Classes/NodeTest/NodeTest.cpp +++ b/tests/cpp-tests/Classes/NodeTest/NodeTest.cpp @@ -1266,23 +1266,9 @@ void NodeNameTest::onEnter() log("find child: %s", node->getName().c_str()); } - // enumerateChildren() - int i = 0; - parent->enumerateChildren("test", [&i](Node* node) -> bool { - ++i; - return true; - }); - CCAssert(i == 1, ""); - - i = 0; - parent->enumerateChildren("test", [&i](Node* node) -> bool { - ++i; - return false; - }); - CCAssert(i == 2, ""); - // enumerateChildren() // name = regular expression + int i = 0; parent = Node::create(); for (int i = 0; i < 100; ++i) { @@ -1422,6 +1408,19 @@ void NodeNameTest::onEnter() return false; }); CCAssert(i == 10000, ""); + + // utils::findChildren() + + parent = Node::create(); + for (int i = 0; i < 50; ++i) + { + auto child = Node::create(); + child->setName("node"); + parent->addChild(child); + } + auto findChildren = utils::findChildren(*parent, "node"); + CCAssert(findChildren.size() == 50, ""); + } /// diff --git a/tests/lua-tests/src/CocoStudioTest/CocoStudioActionTimelineTest/CocoStudioActionTimelineTest.lua b/tests/lua-tests/src/CocoStudioTest/CocoStudioActionTimelineTest/CocoStudioActionTimelineTest.lua new file mode 100644 index 0000000000..e3a3d63916 --- /dev/null +++ b/tests/lua-tests/src/CocoStudioTest/CocoStudioActionTimelineTest/CocoStudioActionTimelineTest.lua @@ -0,0 +1,451 @@ +local itemTagBasic = 1000 +local winSize = cc.Director:getInstance():getWinSize() +local scheduler = cc.Director:getInstance():getScheduler() +local TimelineTestIndex = +{ + TEST_ACTION_TIMELINE = 1, + TEST_CHANGE_PLAY_SECTION = 2, + TEST_TIMELINE_FRAME_EVENT = 3, + TEST_TIMELINE_PERFORMACE = 4, +} +local timelineSceneIdx = TimelineTestIndex.TEST_ACTION_TIMELINE + +local TimelineTestScene = class("TimelineTestScene") +TimelineTestScene.__index = TimelineTestScene + +function TimelineTestScene.extend(target) + local t = tolua.getpeer(target) + if not t then + t = {} + tolua.setpeer(target, t) + end + setmetatable(t, TimelineTestScene) + return target +end + +function TimelineTestScene:runThisTest() + timelineSceneIdx = TimelineTestIndex.TEST_ACTION_TIMELINE + self:addChild(restartTimelineTest()) +end + +function TimelineTestScene.create() + local scene = TimelineTestScene.extend(cc.Scene:create()) + local bg = cc.Sprite:create("armature/bg.jpg") + bg:setPosition(VisibleRect:center()) + + local scaleX = VisibleRect:getVisibleRect().width / bg:getContentSize().width + local scaleY = VisibleRect:getVisibleRect().height / bg:getContentSize().height + + bg:setScaleX(scaleX) + bg:setScaleY(scaleY) + + scene:addChild(bg) + return scene +end + +function TimelineTestScene.toMainMenuCallback() + +end + +local TimelineTestLayer = class("TimelineTestLayer") +TimelineTestLayer.__index = TimelineTestLayer +TimelineTestLayer._backItem = nil +TimelineTestLayer._restarItem = nil +TimelineTestLayer._nextItem = nil + +function TimelineTestLayer:onEnter() + +end + +function TimelineTestLayer.title(idx) + if TimelineTestIndex.TEST_ACTION_TIMELINE == idx then + return "CSArmature Test Bed" + elseif TimelineTestIndex.TEST_CHANGE_PLAY_SECTION == idx then + return "Test Change Play Section" + elseif TimelineTestIndex.TEST_TIMELINE_FRAME_EVENT == idx then + return "Test Frame Event" + elseif TimelineTestIndex.TEST_TIMELINE_PERFORMACE == idx then + return "Test ActionTimeline performance" + end +end + +function TimelineTestLayer.subTitle(idx) + if TimelineTestIndex.TEST_ACTION_TIMELINE == idx then + return "" + else + return "" + end +end + +function TimelineTestLayer.create() + local layer = TimelineTestLayer.extend(cc.Layer:create()) + + if nil ~= layer then + layer:createMenu() + layer:createToExtensionMenu() + layer:creatTitleAndSubTitle(timelineSceneIdx) + local function onNodeEvent(event) + if "enter" == event then + layer:onEnter() + end + end + layer:registerScriptHandler(onNodeEvent) + end + + return layer +end + +function TimelineTestLayer.backCallback() + local newScene = TimelineTestScene.create() + newScene:addChild(backimelineTest()) + cc.Director:getInstance():replaceScene(newScene) +end + +function TimelineTestLayer.restartCallback() + local newScene = TimelineTestScene.create() + newScene:addChild(restartTimelineTest()) + cc.Director:getInstance():replaceScene(newScene) +end + +function TimelineTestLayer.nextCallback() + local newScene = TimelineTestScene.create() + newScene:addChild(nextTimelineTest()) + cc.Director:getInstance():replaceScene(newScene) +end + +function TimelineTestLayer:createMenu() + local menu = cc.Menu:create() + + self._backItem = cc.MenuItemImage:create(s_pPathB1, s_pPathB2) + self._backItem:registerScriptTapHandler(self.backCallback) + menu:addChild(self._backItem,itemTagBasic) + self._restarItem = cc.MenuItemImage:create(s_pPathR1, s_pPathR2) + self._restarItem:registerScriptTapHandler(self.restartCallback) + menu:addChild(self._restarItem,itemTagBasic) + self._nextItem = cc.MenuItemImage:create(s_pPathF1, s_pPathF2) + menu:addChild(self._nextItem,itemTagBasic) + self._nextItem:registerScriptTapHandler(self.nextCallback) + + local size = cc.Director:getInstance():getWinSize() + self._backItem:setPosition(cc.p(size.width / 2 - self._restarItem:getContentSize().width * 2, self._restarItem:getContentSize().height / 2)) + self._restarItem:setPosition(cc.p(size.width / 2, self._restarItem:getContentSize().height / 2)) + self._nextItem:setPosition(cc.p(size.width / 2 + self._restarItem:getContentSize().width * 2, self._restarItem:getContentSize().height / 2)) + + menu:setPosition(cc.p(0, 0)) + + self:addChild(menu) +end + +function TimelineTestLayer.toExtensionMenu() + ccs.ArmatureDataManager:destroyInstance() + local scene = CocoStudioTestMain() + if scene ~= nil then + cc.Director:getInstance():replaceScene(scene) + end +end + +function TimelineTestLayer:createToExtensionMenu() + cc.MenuItemFont:setFontName("Arial") + cc.MenuItemFont:setFontSize(24) + local menuItemFont = cc.MenuItemFont:create("Back") + menuItemFont:setPosition(cc.p(VisibleRect:rightBottom().x - 50, VisibleRect:rightBottom().y + 25)) + menuItemFont:registerScriptTapHandler(TimelineTestLayer.toExtensionMenu) + + local backMenu = cc.Menu:create() + backMenu:addChild(menuItemFont) + backMenu:setPosition(cc.p(0, 0)) + self:addChild(backMenu,10) +end + +function TimelineTestLayer:creatTitleAndSubTitle(idx) + print("set title") + local title = cc.Label:createWithTTF(TimelineTestLayer.title(idx), "fonts/Thonburi.ttf", 18) + title:setColor(cc.c3b(255,0,0)) + self:addChild(title, 1, 10000) + title:setPosition( cc.p(VisibleRect:center().x, VisibleRect:top().y - 30)) + local subTitle = nil + if "" ~= TimelineTestLayer.subTitle(idx) then + local subTitle = cc.Label:createWithTTF(TimelineTestLayer.subTitle(idx), "fonts/Thonburi.ttf", 18) + subTitle:setColor(cc.c3b(0,0,0)) + self:addChild(subTitle, 1, 10001) + subTitle:setPosition( cc.p(VisibleRect:center().x, VisibleRect:top().y - 60) ) + end +end + +local TestActionTimeline = class("TestActionTimeline",TimelineTestLayer) +TestActionTimeline.__index = TestActionTimeline + +function TestActionTimeline.extend(target) + local t = tolua.getpeer(target) + if not t then + t = {} + tolua.setpeer(target, t) + end + setmetatable(t, TestActionTimeline) + return target +end + +function TestActionTimeline:onEnter() + cc.SpriteFrameCache:getInstance():addSpriteFramesWithFile("armature/Cowboy0.plist", "armature/Cowboy0.png") + + local node = ccs.NodeReader:getInstance():createNode("ActionTimeline/boy_1.ExportJson") + local action = ccs.ActionTimelineCache:getInstance():createAction("ActionTimeline/boy_1.ExportJson") + + node:runAction(action) + action:gotoFrameAndPlay(0, 60, true) + + node:setScale(0.4) + node:setPosition(0, 0) + + self:addChild(node) +end + +function TestActionTimeline.restartCallback() + ccs.ArmatureDataManager:destroyInstance() + local newScene = TimelineTestScene.create() + newScene:addChild(restartTimelineTest()) + cc.Director:getInstance():replaceScene(newScene) +end + +function TestActionTimeline.create() + local layer = TestActionTimeline.extend(cc.Layer:create()) + + if nil ~= layer then + layer:createMenu() + layer:createToExtensionMenu() + layer:creatTitleAndSubTitle(timelineSceneIdx) + local function onNodeEvent(event) + if "enter" == event then + layer:onEnter() + end + end + layer:registerScriptHandler(onNodeEvent) + end + + return layer +end + +local TestChangePlaySection = class("TestChangePlaySection",TimelineTestLayer) +TestChangePlaySection.__index = TestChangePlaySection + +function TestChangePlaySection.extend(target) + local t = tolua.getpeer(target) + if not t then + t = {} + tolua.setpeer(target, t) + end + setmetatable(t, TestChangePlaySection) + return target +end + +function TestChangePlaySection:onEnter() + cc.SpriteFrameCache:getInstance():addSpriteFramesWithFile("armature/Cowboy0.plist", "armature/Cowboy0.png") + + local node = ccs.NodeReader:getInstance():createNode("ActionTimeline/boy_1.ExportJson") + local action = ccs.ActionTimelineCache:getInstance():createAction("ActionTimeline/boy_1.ExportJson") + + node:runAction(action) + action:gotoFrameAndPlay(70, action:getDuration(), true) + + node:setScale(0.2) + node:setPosition(150, 100) + + local function onTouchesEnded(touches, event) + if action:getStartFrame() == 0 then + action:gotoFrameAndPlay(70, action:getDuration(), true) + else + action:gotoFrameAndPlay(0, 60, true) + end + end + + local listener = cc.EventListenerTouchAllAtOnce:create() + listener:registerScriptHandler(onTouchesEnded,cc.Handler.EVENT_TOUCHES_ENDED ) + + local eventDispatcher = self:getEventDispatcher() + eventDispatcher:addEventListenerWithSceneGraphPriority(listener, self) + + self:addChild(node) +end + +function TestChangePlaySection.restartCallback() + ccs.ArmatureDataManager:destroyInstance() + local newScene = TimelineTestScene.create() + newScene:addChild(restartTimelineTest()) + cc.Director:getInstance():replaceScene(newScene) +end + +function TestChangePlaySection.create() + local layer = TestChangePlaySection.extend(cc.Layer:create()) + + if nil ~= layer then + layer:createMenu() + layer:createToExtensionMenu() + layer:creatTitleAndSubTitle(timelineSceneIdx) + local function onNodeEvent(event) + if "enter" == event then + layer:onEnter() + end + end + layer:registerScriptHandler(onNodeEvent) + end + + return layer +end + +local TestTimelineFrameEvent = class("TestTimelineFrameEvent",TimelineTestLayer) +TestTimelineFrameEvent.__index = TestTimelineFrameEvent + +function TestTimelineFrameEvent.extend(target) + local t = tolua.getpeer(target) + if not t then + t = {} + tolua.setpeer(target, t) + end + setmetatable(t, TestTimelineFrameEvent) + return target +end + +function TestTimelineFrameEvent:onEnter() + cc.SpriteFrameCache:getInstance():addSpriteFramesWithFile("armature/Cowboy0.plist", "armature/Cowboy0.png") + + local node = ccs.NodeReader:getInstance():createNode("ActionTimeline/boy_1.ExportJson") + local action = ccs.ActionTimelineCache:getInstance():createAction("ActionTimeline/boy_1.ExportJson") + + node:runAction(action) + action:gotoFrameAndPlay(0, 60, true) + + node:setScale(0.2) + node:setPosition(150, 100) + self:addChild(node) + + local function onFrameEvent(frame) + if nil == frame then + return + end + + local str = frame:getEvent() + + if str == "changeColor" then + frame:getNode():setColor(cc.c3b(0, 0, 0)) + elseif(str == "endChangeColor") then + frame:getNode():setColor(cc.c3b(255,255,255)) + end + end + + action:setFrameEventCallFunc(onFrameEvent) +end + +function TestTimelineFrameEvent.restartCallback() + ccs.ArmatureDataManager:destroyInstance() + local newScene = TimelineTestScene.create() + newScene:addChild(restartTimelineTest()) + cc.Director:getInstance():replaceScene(newScene) +end + +function TestTimelineFrameEvent.create() + local layer = TestTimelineFrameEvent.extend(cc.Layer:create()) + + if nil ~= layer then + layer:createMenu() + layer:createToExtensionMenu() + layer:creatTitleAndSubTitle(timelineSceneIdx) + local function onNodeEvent(event) + if "enter" == event then + layer:onEnter() + end + end + layer:registerScriptHandler(onNodeEvent) + end + + return layer +end + +local TestTimelinePerformance = class("TestTimelinePerformance",TimelineTestLayer) +TestTimelinePerformance.__index = TestTimelinePerformance + +function TestTimelinePerformance.extend(target) + local t = tolua.getpeer(target) + if not t then + t = {} + tolua.setpeer(target, t) + end + setmetatable(t, TestTimelinePerformance) + return target +end + +function TestTimelinePerformance:onEnter() + cc.SpriteFrameCache:getInstance():addSpriteFramesWithFile("armature/Cowboy0.plist", "armature/Cowboy0.png") + + for i = 1,100 do + local node = ccs.NodeReader:getInstance():createNode("ActionTimeline/boy_1.ExportJson") + local action = ccs.ActionTimelineCache:getInstance():createAction("ActionTimeline/boy_1.ExportJson") + + node:runAction(action) + action:gotoFrameAndPlay(70, action:getDuration(), true) + + node:setScale(0.1) + node:setPosition((i - 1) * 2, 100) + self:addChild(node) + end +end + +function TestTimelinePerformance.restartCallback() + ccs.ArmatureDataManager:destroyInstance() + local newScene = TimelineTestScene.create() + newScene:addChild(restartTimelineTest()) + cc.Director:getInstance():replaceScene(newScene) +end + +function TestTimelinePerformance.create() + local layer = TestTimelinePerformance.extend(cc.Layer:create()) + + if nil ~= layer then + layer:createMenu() + layer:createToExtensionMenu() + layer:creatTitleAndSubTitle(timelineSceneIdx) + local function onNodeEvent(event) + if "enter" == event then + layer:onEnter() + end + end + layer:registerScriptHandler(onNodeEvent) + end + + return layer +end + +local actionlineSceneArr = +{ + TestActionTimeline.create, + TestChangePlaySection.create, + TestTimelineFrameEvent.create, + TestTimelinePerformance.create, +} + +function nextTimelineTest() + timelineSceneIdx = timelineSceneIdx + 1 + timelineSceneIdx = timelineSceneIdx % table.getn(actionlineSceneArr) + if 0 == timelineSceneIdx then + timelineSceneIdx = table.getn(actionlineSceneArr) + end + return actionlineSceneArr[timelineSceneIdx]() +end + +function backTimelineTest() + timelineSceneIdx = timelineSceneIdx - 1 + if timelineSceneIdx <= 0 then + timelineSceneIdx = timelineSceneIdx + table.getn(actionlineSceneArr) + end + + return actionlineSceneArr[timelineSceneIdx]() +end + +function restartTimelineTest() + return actionlineSceneArr[timelineSceneIdx]() +end + +function runCocoStudioActionTimelineTestScene() + local scene = TimelineTestScene.create() + scene:runThisTest() + cc.Director:getInstance():replaceScene(scene) +end diff --git a/tests/lua-tests/src/CocoStudioTest/CocoStudioTest.lua b/tests/lua-tests/src/CocoStudioTest/CocoStudioTest.lua index 10e19fe30b..e05b4d4e06 100644 --- a/tests/lua-tests/src/CocoStudioTest/CocoStudioTest.lua +++ b/tests/lua-tests/src/CocoStudioTest/CocoStudioTest.lua @@ -2,6 +2,7 @@ require "src/CocoStudioTest/CocoStudioGUITest/CocoStudioGUITest" require "src/CocoStudioTest/CocoStudioSceneTest/CocoStudioSceneTest" require "src/CocoStudioTest/CocoStudioArmatureTest/CocoStudioArmatureTest" require "src/CocoStudioTest/CocoStudioUIEditorTest/CocoStudioUIEditorTest" +require "src/CocoStudioTest/CocoStudioActionTimelineTest/CocoStudioActionTimelineTest" local LINE_SPACE = 40 local ITEM_TAG_BASIC = 1000 @@ -35,6 +36,13 @@ local cocoStudioTestItemNames = runCocoStudioUIEditorTestScene() end }, + + { + itemTitle = "CocoStudioActionTimelineTest", + testScene = function() + runCocoStudioActionTimelineTestScene() + end + }, } local CocoStudioTestScene = class("CocoStudioTestScene") diff --git a/tools/tolua/cocos2dx_studio.ini b/tools/tolua/cocos2dx_studio.ini index 9a2b752ce9..6cedc7c62d 100644 --- a/tools/tolua/cocos2dx_studio.ini +++ b/tools/tolua/cocos2dx_studio.ini @@ -30,7 +30,7 @@ headers = %(cocosdir)s/cocos/editor-support/cocostudio/CocoStudio.h # what classes to produce code for. You can use regular expressions here. When testing the regular # expression, it will be enclosed in "^$", like this: "^Menu*$". -classes = Armature ArmatureAnimation Skin Bone ArmatureDataManager \w+Data$ ActionManagerEx ComAudio ComController ComAttribute ComRender BatchNode SceneReader GUIReader ActionObject Tween DisplayManager +classes = Armature ArmatureAnimation Skin Bone ArmatureDataManager \w+Data$ ActionManagerEx ComAudio ComController ComAttribute ComRender BatchNode SceneReader GUIReader ActionObject Tween DisplayManager NodeReader ActionTimeline.* .*Frame$ Timeline # what should we skip? in the format ClassName::[function function] # ClassName is a regular expression, but will be used like this: "^ClassName$" functions are also @@ -52,7 +52,9 @@ skip = *::[^visit$ copyWith.* onEnter.* onExit.* ^description$ getObjectType .* GUIReader::[storeFileDesignSize getFileDesignSize getParseCallBackMap getParseObjectMap], ActionNode::[initWithDictionary], ActionObject::[initWithDictionary], - BaseData::[copy subtract] + BaseData::[copy subtract], + NodeReader::[getInstance], + ActionTimelineCache::[getInstance] rename_functions = GUIReader::[shareReader=getInstance purgeGUIReader=destroyInstance], ActionManagerEx::[shareManager=getInstance purgeActionManager=destroyInstance],