2022-07-12 21:31:54 +08:00
|
|
|
#include "scripting/lua-bindings/auto/lua_axis_extension_auto.hpp"
|
2015-09-29 15:45:48 +08:00
|
|
|
#include "cocos-ext.h"
|
2016-03-22 16:08:28 +08:00
|
|
|
#include "scripting/lua-bindings/manual/tolua_fix.h"
|
|
|
|
#include "scripting/lua-bindings/manual/LuaBasicConversions.h"
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_AssetsManager_setStoragePath(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::extension::AssetsManager* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.AssetsManager",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::extension::AssetsManager*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_AssetsManager_setStoragePath'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 1)
|
|
|
|
{
|
|
|
|
const char* arg0;
|
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.AssetsManager:setStoragePath"); arg0 = arg0_tmp.c_str();
|
2015-09-29 15:45:48 +08:00
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_AssetsManager_setStoragePath'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
cobj->setStoragePath(arg0);
|
|
|
|
lua_settop(tolua_S, 1);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AssetsManager:setStoragePath",argc, 1);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_AssetsManager_setStoragePath'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_AssetsManager_setPackageUrl(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::extension::AssetsManager* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.AssetsManager",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::extension::AssetsManager*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_AssetsManager_setPackageUrl'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 1)
|
|
|
|
{
|
|
|
|
const char* arg0;
|
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.AssetsManager:setPackageUrl"); arg0 = arg0_tmp.c_str();
|
2015-09-29 15:45:48 +08:00
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_AssetsManager_setPackageUrl'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
cobj->setPackageUrl(arg0);
|
|
|
|
lua_settop(tolua_S, 1);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AssetsManager:setPackageUrl",argc, 1);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_AssetsManager_setPackageUrl'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_AssetsManager_checkUpdate(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::extension::AssetsManager* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.AssetsManager",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::extension::AssetsManager*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_AssetsManager_checkUpdate'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_AssetsManager_checkUpdate'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
bool ret = cobj->checkUpdate();
|
|
|
|
tolua_pushboolean(tolua_S,(bool)ret);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AssetsManager:checkUpdate",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_AssetsManager_checkUpdate'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_AssetsManager_getStoragePath(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::extension::AssetsManager* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.AssetsManager",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::extension::AssetsManager*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_AssetsManager_getStoragePath'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_AssetsManager_getStoragePath'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
const char* ret = cobj->getStoragePath();
|
|
|
|
tolua_pushstring(tolua_S,(const char*)ret);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AssetsManager:getStoragePath",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_AssetsManager_getStoragePath'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_AssetsManager_update(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::extension::AssetsManager* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.AssetsManager",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::extension::AssetsManager*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_AssetsManager_update'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_AssetsManager_update'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
cobj->update();
|
|
|
|
lua_settop(tolua_S, 1);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AssetsManager:update",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_AssetsManager_update'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_AssetsManager_setConnectionTimeout(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::extension::AssetsManager* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.AssetsManager",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::extension::AssetsManager*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_AssetsManager_setConnectionTimeout'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 1)
|
|
|
|
{
|
|
|
|
unsigned int arg0;
|
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_uint32(tolua_S, 2,&arg0, "ax.AssetsManager:setConnectionTimeout");
|
2015-09-29 15:45:48 +08:00
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_AssetsManager_setConnectionTimeout'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
cobj->setConnectionTimeout(arg0);
|
|
|
|
lua_settop(tolua_S, 1);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AssetsManager:setConnectionTimeout",argc, 1);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_AssetsManager_setConnectionTimeout'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_AssetsManager_setVersionFileUrl(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::extension::AssetsManager* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.AssetsManager",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::extension::AssetsManager*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_AssetsManager_setVersionFileUrl'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 1)
|
|
|
|
{
|
|
|
|
const char* arg0;
|
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.AssetsManager:setVersionFileUrl"); arg0 = arg0_tmp.c_str();
|
2015-09-29 15:45:48 +08:00
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_AssetsManager_setVersionFileUrl'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
cobj->setVersionFileUrl(arg0);
|
|
|
|
lua_settop(tolua_S, 1);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AssetsManager:setVersionFileUrl",argc, 1);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_AssetsManager_setVersionFileUrl'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_AssetsManager_getPackageUrl(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::extension::AssetsManager* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.AssetsManager",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::extension::AssetsManager*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_AssetsManager_getPackageUrl'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_AssetsManager_getPackageUrl'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
const char* ret = cobj->getPackageUrl();
|
|
|
|
tolua_pushstring(tolua_S,(const char*)ret);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AssetsManager:getPackageUrl",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_AssetsManager_getPackageUrl'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_AssetsManager_getConnectionTimeout(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::extension::AssetsManager* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.AssetsManager",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::extension::AssetsManager*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_AssetsManager_getConnectionTimeout'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_AssetsManager_getConnectionTimeout'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
unsigned int ret = cobj->getConnectionTimeout();
|
|
|
|
tolua_pushnumber(tolua_S,(lua_Number)ret);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AssetsManager:getConnectionTimeout",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_AssetsManager_getConnectionTimeout'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_AssetsManager_getVersion(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::extension::AssetsManager* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.AssetsManager",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::extension::AssetsManager*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_AssetsManager_getVersion'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_AssetsManager_getVersion'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
2021-12-28 15:46:32 +08:00
|
|
|
std::string_view ret = cobj->getVersion();
|
|
|
|
lua_pushlstring(tolua_S,ret.data(),ret.length());
|
2015-09-29 15:45:48 +08:00
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AssetsManager:getVersion",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_AssetsManager_getVersion'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_AssetsManager_getVersionFileUrl(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::extension::AssetsManager* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.AssetsManager",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::extension::AssetsManager*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_AssetsManager_getVersionFileUrl'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_AssetsManager_getVersionFileUrl'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
const char* ret = cobj->getVersionFileUrl();
|
|
|
|
tolua_pushstring(tolua_S,(const char*)ret);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AssetsManager:getVersionFileUrl",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_AssetsManager_getVersionFileUrl'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_AssetsManager_deleteVersion(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::extension::AssetsManager* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.AssetsManager",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::extension::AssetsManager*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_AssetsManager_deleteVersion'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_AssetsManager_deleteVersion'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
cobj->deleteVersion();
|
|
|
|
lua_settop(tolua_S, 1);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AssetsManager:deleteVersion",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_AssetsManager_deleteVersion'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_AssetsManager_create(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertable(tolua_S,1,"ax.AssetsManager",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S) - 1;
|
|
|
|
|
|
|
|
if (argc == 6)
|
|
|
|
{
|
|
|
|
const char* arg0;
|
|
|
|
const char* arg1;
|
|
|
|
const char* arg2;
|
|
|
|
std::function<void (int)> arg3;
|
|
|
|
std::function<void (int)> arg4;
|
|
|
|
std::function<void ()> arg5;
|
2022-07-12 21:31:54 +08:00
|
|
|
std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.AssetsManager:create"); arg0 = arg0_tmp.c_str();
|
|
|
|
std::string arg1_tmp; ok &= luaval_to_std_string(tolua_S, 3, &arg1_tmp, "ax.AssetsManager:create"); arg1 = arg1_tmp.c_str();
|
|
|
|
std::string arg2_tmp; ok &= luaval_to_std_string(tolua_S, 4, &arg2_tmp, "ax.AssetsManager:create"); arg2 = arg2_tmp.c_str();
|
2015-09-29 15:45:48 +08:00
|
|
|
do {
|
|
|
|
// Lambda binding for lua is not supported.
|
|
|
|
assert(false);
|
|
|
|
} while(0)
|
|
|
|
;
|
|
|
|
do {
|
|
|
|
// Lambda binding for lua is not supported.
|
|
|
|
assert(false);
|
|
|
|
} while(0)
|
|
|
|
;
|
|
|
|
do {
|
|
|
|
// Lambda binding for lua is not supported.
|
|
|
|
assert(false);
|
|
|
|
} while(0)
|
|
|
|
;
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_AssetsManager_create'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::extension::AssetsManager* ret = axis::extension::AssetsManager::create(arg0, arg1, arg2, arg3, arg4, arg5);
|
2022-07-12 21:31:54 +08:00
|
|
|
object_to_luaval<axis::extension::AssetsManager>(tolua_S, "ax.AssetsManager",(axis::extension::AssetsManager*)ret);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.AssetsManager:create",argc, 6);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_AssetsManager_create'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_AssetsManager_constructor(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::extension::AssetsManager* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_AssetsManager_constructor'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = new axis::extension::AssetsManager();
|
2015-09-29 15:45:48 +08:00
|
|
|
cobj->autorelease();
|
|
|
|
int ID = (int)cobj->_ID ;
|
|
|
|
int* luaID = &cobj->_luaID ;
|
2022-07-12 21:31:54 +08:00
|
|
|
toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ax.AssetsManager");
|
2015-09-29 15:45:48 +08:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
if (argc == 1)
|
|
|
|
{
|
|
|
|
const char* arg0;
|
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.AssetsManager:AssetsManager"); arg0 = arg0_tmp.c_str();
|
2015-09-29 15:45:48 +08:00
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_AssetsManager_constructor'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = new axis::extension::AssetsManager(arg0);
|
2015-09-29 15:45:48 +08:00
|
|
|
cobj->autorelease();
|
|
|
|
int ID = (int)cobj->_ID ;
|
|
|
|
int* luaID = &cobj->_luaID ;
|
2022-07-12 21:31:54 +08:00
|
|
|
toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ax.AssetsManager");
|
2015-09-29 15:45:48 +08:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
if (argc == 2)
|
|
|
|
{
|
|
|
|
const char* arg0;
|
|
|
|
const char* arg1;
|
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.AssetsManager:AssetsManager"); arg0 = arg0_tmp.c_str();
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
std::string arg1_tmp; ok &= luaval_to_std_string(tolua_S, 3, &arg1_tmp, "ax.AssetsManager:AssetsManager"); arg1 = arg1_tmp.c_str();
|
2015-09-29 15:45:48 +08:00
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_AssetsManager_constructor'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = new axis::extension::AssetsManager(arg0, arg1);
|
2015-09-29 15:45:48 +08:00
|
|
|
cobj->autorelease();
|
|
|
|
int ID = (int)cobj->_ID ;
|
|
|
|
int* luaID = &cobj->_luaID ;
|
2022-07-12 21:31:54 +08:00
|
|
|
toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ax.AssetsManager");
|
2015-09-29 15:45:48 +08:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
if (argc == 3)
|
|
|
|
{
|
|
|
|
const char* arg0;
|
|
|
|
const char* arg1;
|
|
|
|
const char* arg2;
|
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "ax.AssetsManager:AssetsManager"); arg0 = arg0_tmp.c_str();
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
std::string arg1_tmp; ok &= luaval_to_std_string(tolua_S, 3, &arg1_tmp, "ax.AssetsManager:AssetsManager"); arg1 = arg1_tmp.c_str();
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
std::string arg2_tmp; ok &= luaval_to_std_string(tolua_S, 4, &arg2_tmp, "ax.AssetsManager:AssetsManager"); arg2 = arg2_tmp.c_str();
|
2015-09-29 15:45:48 +08:00
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_AssetsManager_constructor'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = new axis::extension::AssetsManager(arg0, arg1, arg2);
|
2015-09-29 15:45:48 +08:00
|
|
|
cobj->autorelease();
|
|
|
|
int ID = (int)cobj->_ID ;
|
|
|
|
int* luaID = &cobj->_luaID ;
|
2022-07-12 21:31:54 +08:00
|
|
|
toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ax.AssetsManager");
|
2015-09-29 15:45:48 +08:00
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AssetsManager:AssetsManager",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_AssetsManager_constructor'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
static int lua_axis_extension_AssetsManager_finalize(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
printf("luabindings: finalizing LUA object (AssetsManager)");
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_register_axis_extension_AssetsManager(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_usertype(tolua_S,"ax.AssetsManager");
|
|
|
|
tolua_cclass(tolua_S,"AssetsManager","ax.AssetsManager","ax.Node",nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
tolua_beginmodule(tolua_S,"AssetsManager");
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_function(tolua_S,"new",lua_axis_extension_AssetsManager_constructor);
|
|
|
|
tolua_function(tolua_S,"setStoragePath",lua_axis_extension_AssetsManager_setStoragePath);
|
|
|
|
tolua_function(tolua_S,"setPackageUrl",lua_axis_extension_AssetsManager_setPackageUrl);
|
|
|
|
tolua_function(tolua_S,"checkUpdate",lua_axis_extension_AssetsManager_checkUpdate);
|
|
|
|
tolua_function(tolua_S,"getStoragePath",lua_axis_extension_AssetsManager_getStoragePath);
|
|
|
|
tolua_function(tolua_S,"update",lua_axis_extension_AssetsManager_update);
|
|
|
|
tolua_function(tolua_S,"setConnectionTimeout",lua_axis_extension_AssetsManager_setConnectionTimeout);
|
|
|
|
tolua_function(tolua_S,"setVersionFileUrl",lua_axis_extension_AssetsManager_setVersionFileUrl);
|
|
|
|
tolua_function(tolua_S,"getPackageUrl",lua_axis_extension_AssetsManager_getPackageUrl);
|
|
|
|
tolua_function(tolua_S,"getConnectionTimeout",lua_axis_extension_AssetsManager_getConnectionTimeout);
|
|
|
|
tolua_function(tolua_S,"getVersion",lua_axis_extension_AssetsManager_getVersion);
|
|
|
|
tolua_function(tolua_S,"getVersionFileUrl",lua_axis_extension_AssetsManager_getVersionFileUrl);
|
|
|
|
tolua_function(tolua_S,"deleteVersion",lua_axis_extension_AssetsManager_deleteVersion);
|
|
|
|
tolua_function(tolua_S,"create", lua_axis_extension_AssetsManager_create);
|
2015-09-29 15:45:48 +08:00
|
|
|
tolua_endmodule(tolua_S);
|
2022-07-11 17:50:21 +08:00
|
|
|
auto typeName = typeid(axis::extension::AssetsManager).name(); // rtti is literal storage
|
2022-07-12 21:31:54 +08:00
|
|
|
g_luaType[reinterpret_cast<uintptr_t>(typeName)] = "ax.AssetsManager";
|
|
|
|
g_typeCast[typeName] = "ax.AssetsManager";
|
2015-09-29 15:45:48 +08:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_EventAssetsManagerEx_getAssetsManagerEx(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::extension::EventAssetsManagerEx* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.EventAssetsManagerEx",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::extension::EventAssetsManagerEx*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_EventAssetsManagerEx_getAssetsManagerEx'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_EventAssetsManagerEx_getAssetsManagerEx'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::extension::AssetsManagerEx* ret = cobj->getAssetsManagerEx();
|
2022-07-12 21:31:54 +08:00
|
|
|
object_to_luaval<axis::extension::AssetsManagerEx>(tolua_S, "ax.AssetsManagerEx",(axis::extension::AssetsManagerEx*)ret);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventAssetsManagerEx:getAssetsManagerEx",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_EventAssetsManagerEx_getAssetsManagerEx'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_EventAssetsManagerEx_getAssetId(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::extension::EventAssetsManagerEx* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.EventAssetsManagerEx",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::extension::EventAssetsManagerEx*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_EventAssetsManagerEx_getAssetId'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_EventAssetsManagerEx_getAssetId'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
std::string ret = cobj->getAssetId();
|
2017-02-17 10:17:46 +08:00
|
|
|
lua_pushlstring(tolua_S,ret.c_str(),ret.length());
|
2015-09-29 15:45:48 +08:00
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventAssetsManagerEx:getAssetId",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_EventAssetsManagerEx_getAssetId'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_EventAssetsManagerEx_getCURLECode(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::extension::EventAssetsManagerEx* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.EventAssetsManagerEx",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::extension::EventAssetsManagerEx*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_EventAssetsManagerEx_getCURLECode'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_EventAssetsManagerEx_getCURLECode'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
int ret = cobj->getCURLECode();
|
|
|
|
tolua_pushnumber(tolua_S,(lua_Number)ret);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventAssetsManagerEx:getCURLECode",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_EventAssetsManagerEx_getCURLECode'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_EventAssetsManagerEx_getMessage(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::extension::EventAssetsManagerEx* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.EventAssetsManagerEx",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::extension::EventAssetsManagerEx*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_EventAssetsManagerEx_getMessage'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_EventAssetsManagerEx_getMessage'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
std::string ret = cobj->getMessage();
|
2017-02-17 10:17:46 +08:00
|
|
|
lua_pushlstring(tolua_S,ret.c_str(),ret.length());
|
2015-09-29 15:45:48 +08:00
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventAssetsManagerEx:getMessage",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_EventAssetsManagerEx_getMessage'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_EventAssetsManagerEx_getCURLMCode(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::extension::EventAssetsManagerEx* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.EventAssetsManagerEx",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::extension::EventAssetsManagerEx*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_EventAssetsManagerEx_getCURLMCode'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_EventAssetsManagerEx_getCURLMCode'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
int ret = cobj->getCURLMCode();
|
|
|
|
tolua_pushnumber(tolua_S,(lua_Number)ret);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventAssetsManagerEx:getCURLMCode",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_EventAssetsManagerEx_getCURLMCode'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_EventAssetsManagerEx_getPercentByFile(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::extension::EventAssetsManagerEx* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.EventAssetsManagerEx",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::extension::EventAssetsManagerEx*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_EventAssetsManagerEx_getPercentByFile'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_EventAssetsManagerEx_getPercentByFile'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
double ret = cobj->getPercentByFile();
|
|
|
|
tolua_pushnumber(tolua_S,(lua_Number)ret);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventAssetsManagerEx:getPercentByFile",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_EventAssetsManagerEx_getPercentByFile'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_EventAssetsManagerEx_getEventCode(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::extension::EventAssetsManagerEx* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.EventAssetsManagerEx",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::extension::EventAssetsManagerEx*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_EventAssetsManagerEx_getEventCode'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_EventAssetsManagerEx_getEventCode'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
int ret = (int)cobj->getEventCode();
|
|
|
|
tolua_pushnumber(tolua_S,(lua_Number)ret);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventAssetsManagerEx:getEventCode",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_EventAssetsManagerEx_getEventCode'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_EventAssetsManagerEx_getPercent(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::extension::EventAssetsManagerEx* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.EventAssetsManagerEx",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::extension::EventAssetsManagerEx*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_EventAssetsManagerEx_getPercent'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_EventAssetsManagerEx_getPercent'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
double ret = cobj->getPercent();
|
|
|
|
tolua_pushnumber(tolua_S,(lua_Number)ret);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventAssetsManagerEx:getPercent",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_EventAssetsManagerEx_getPercent'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_EventAssetsManagerEx_constructor(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::extension::EventAssetsManagerEx* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 3)
|
|
|
|
{
|
2021-12-28 15:46:32 +08:00
|
|
|
std::string_view arg0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::extension::AssetsManagerEx* arg1;
|
|
|
|
axis::extension::EventAssetsManagerEx::EventCode arg2;
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.EventAssetsManagerEx:EventAssetsManagerEx");
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_object<axis::extension::AssetsManagerEx>(tolua_S, 3, "ax.AssetsManagerEx",&arg1, "ax.EventAssetsManagerEx:EventAssetsManagerEx");
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "ax.EventAssetsManagerEx:EventAssetsManagerEx");
|
2015-09-29 15:45:48 +08:00
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_EventAssetsManagerEx_constructor'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = new axis::extension::EventAssetsManagerEx(arg0, arg1, arg2);
|
2015-09-29 15:45:48 +08:00
|
|
|
cobj->autorelease();
|
|
|
|
int ID = (int)cobj->_ID ;
|
|
|
|
int* luaID = &cobj->_luaID ;
|
2022-07-12 21:31:54 +08:00
|
|
|
toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ax.EventAssetsManagerEx");
|
2015-09-29 15:45:48 +08:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
if (argc == 4)
|
|
|
|
{
|
2021-12-28 15:46:32 +08:00
|
|
|
std::string_view arg0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::extension::AssetsManagerEx* arg1;
|
|
|
|
axis::extension::EventAssetsManagerEx::EventCode arg2;
|
2015-09-29 15:45:48 +08:00
|
|
|
double arg3;
|
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.EventAssetsManagerEx:EventAssetsManagerEx");
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_object<axis::extension::AssetsManagerEx>(tolua_S, 3, "ax.AssetsManagerEx",&arg1, "ax.EventAssetsManagerEx:EventAssetsManagerEx");
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "ax.EventAssetsManagerEx:EventAssetsManagerEx");
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_number(tolua_S, 5,&arg3, "ax.EventAssetsManagerEx:EventAssetsManagerEx");
|
2015-09-29 15:45:48 +08:00
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_EventAssetsManagerEx_constructor'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = new axis::extension::EventAssetsManagerEx(arg0, arg1, arg2, arg3);
|
2015-09-29 15:45:48 +08:00
|
|
|
cobj->autorelease();
|
|
|
|
int ID = (int)cobj->_ID ;
|
|
|
|
int* luaID = &cobj->_luaID ;
|
2022-07-12 21:31:54 +08:00
|
|
|
toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ax.EventAssetsManagerEx");
|
2015-09-29 15:45:48 +08:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
if (argc == 5)
|
|
|
|
{
|
2021-12-28 15:46:32 +08:00
|
|
|
std::string_view arg0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::extension::AssetsManagerEx* arg1;
|
|
|
|
axis::extension::EventAssetsManagerEx::EventCode arg2;
|
2015-09-29 15:45:48 +08:00
|
|
|
double arg3;
|
|
|
|
double arg4;
|
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.EventAssetsManagerEx:EventAssetsManagerEx");
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_object<axis::extension::AssetsManagerEx>(tolua_S, 3, "ax.AssetsManagerEx",&arg1, "ax.EventAssetsManagerEx:EventAssetsManagerEx");
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "ax.EventAssetsManagerEx:EventAssetsManagerEx");
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_number(tolua_S, 5,&arg3, "ax.EventAssetsManagerEx:EventAssetsManagerEx");
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_number(tolua_S, 6,&arg4, "ax.EventAssetsManagerEx:EventAssetsManagerEx");
|
2015-09-29 15:45:48 +08:00
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_EventAssetsManagerEx_constructor'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = new axis::extension::EventAssetsManagerEx(arg0, arg1, arg2, arg3, arg4);
|
2015-09-29 15:45:48 +08:00
|
|
|
cobj->autorelease();
|
|
|
|
int ID = (int)cobj->_ID ;
|
|
|
|
int* luaID = &cobj->_luaID ;
|
2022-07-12 21:31:54 +08:00
|
|
|
toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ax.EventAssetsManagerEx");
|
2015-09-29 15:45:48 +08:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
if (argc == 6)
|
|
|
|
{
|
2021-12-28 15:46:32 +08:00
|
|
|
std::string_view arg0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::extension::AssetsManagerEx* arg1;
|
|
|
|
axis::extension::EventAssetsManagerEx::EventCode arg2;
|
2015-09-29 15:45:48 +08:00
|
|
|
double arg3;
|
|
|
|
double arg4;
|
2021-12-28 15:46:32 +08:00
|
|
|
std::string_view arg5;
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.EventAssetsManagerEx:EventAssetsManagerEx");
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_object<axis::extension::AssetsManagerEx>(tolua_S, 3, "ax.AssetsManagerEx",&arg1, "ax.EventAssetsManagerEx:EventAssetsManagerEx");
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "ax.EventAssetsManagerEx:EventAssetsManagerEx");
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_number(tolua_S, 5,&arg3, "ax.EventAssetsManagerEx:EventAssetsManagerEx");
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_number(tolua_S, 6,&arg4, "ax.EventAssetsManagerEx:EventAssetsManagerEx");
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_std_string_view(tolua_S, 7,&arg5, "ax.EventAssetsManagerEx:EventAssetsManagerEx");
|
2015-09-29 15:45:48 +08:00
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_EventAssetsManagerEx_constructor'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = new axis::extension::EventAssetsManagerEx(arg0, arg1, arg2, arg3, arg4, arg5);
|
2015-09-29 15:45:48 +08:00
|
|
|
cobj->autorelease();
|
|
|
|
int ID = (int)cobj->_ID ;
|
|
|
|
int* luaID = &cobj->_luaID ;
|
2022-07-12 21:31:54 +08:00
|
|
|
toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ax.EventAssetsManagerEx");
|
2015-09-29 15:45:48 +08:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
if (argc == 7)
|
|
|
|
{
|
2021-12-28 15:46:32 +08:00
|
|
|
std::string_view arg0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::extension::AssetsManagerEx* arg1;
|
|
|
|
axis::extension::EventAssetsManagerEx::EventCode arg2;
|
2015-09-29 15:45:48 +08:00
|
|
|
double arg3;
|
|
|
|
double arg4;
|
2021-12-28 15:46:32 +08:00
|
|
|
std::string_view arg5;
|
|
|
|
std::string_view arg6;
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.EventAssetsManagerEx:EventAssetsManagerEx");
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_object<axis::extension::AssetsManagerEx>(tolua_S, 3, "ax.AssetsManagerEx",&arg1, "ax.EventAssetsManagerEx:EventAssetsManagerEx");
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "ax.EventAssetsManagerEx:EventAssetsManagerEx");
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_number(tolua_S, 5,&arg3, "ax.EventAssetsManagerEx:EventAssetsManagerEx");
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_number(tolua_S, 6,&arg4, "ax.EventAssetsManagerEx:EventAssetsManagerEx");
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_std_string_view(tolua_S, 7,&arg5, "ax.EventAssetsManagerEx:EventAssetsManagerEx");
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_std_string_view(tolua_S, 8,&arg6, "ax.EventAssetsManagerEx:EventAssetsManagerEx");
|
2015-09-29 15:45:48 +08:00
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_EventAssetsManagerEx_constructor'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = new axis::extension::EventAssetsManagerEx(arg0, arg1, arg2, arg3, arg4, arg5, arg6);
|
2015-09-29 15:45:48 +08:00
|
|
|
cobj->autorelease();
|
|
|
|
int ID = (int)cobj->_ID ;
|
|
|
|
int* luaID = &cobj->_luaID ;
|
2022-07-12 21:31:54 +08:00
|
|
|
toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ax.EventAssetsManagerEx");
|
2015-09-29 15:45:48 +08:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
if (argc == 8)
|
|
|
|
{
|
2021-12-28 15:46:32 +08:00
|
|
|
std::string_view arg0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::extension::AssetsManagerEx* arg1;
|
|
|
|
axis::extension::EventAssetsManagerEx::EventCode arg2;
|
2015-09-29 15:45:48 +08:00
|
|
|
double arg3;
|
|
|
|
double arg4;
|
2021-12-28 15:46:32 +08:00
|
|
|
std::string_view arg5;
|
|
|
|
std::string_view arg6;
|
2015-09-29 15:45:48 +08:00
|
|
|
int arg7;
|
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.EventAssetsManagerEx:EventAssetsManagerEx");
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_object<axis::extension::AssetsManagerEx>(tolua_S, 3, "ax.AssetsManagerEx",&arg1, "ax.EventAssetsManagerEx:EventAssetsManagerEx");
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "ax.EventAssetsManagerEx:EventAssetsManagerEx");
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_number(tolua_S, 5,&arg3, "ax.EventAssetsManagerEx:EventAssetsManagerEx");
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_number(tolua_S, 6,&arg4, "ax.EventAssetsManagerEx:EventAssetsManagerEx");
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_std_string_view(tolua_S, 7,&arg5, "ax.EventAssetsManagerEx:EventAssetsManagerEx");
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_std_string_view(tolua_S, 8,&arg6, "ax.EventAssetsManagerEx:EventAssetsManagerEx");
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_int32(tolua_S, 9,(int *)&arg7, "ax.EventAssetsManagerEx:EventAssetsManagerEx");
|
2015-09-29 15:45:48 +08:00
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_EventAssetsManagerEx_constructor'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = new axis::extension::EventAssetsManagerEx(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7);
|
2015-09-29 15:45:48 +08:00
|
|
|
cobj->autorelease();
|
|
|
|
int ID = (int)cobj->_ID ;
|
|
|
|
int* luaID = &cobj->_luaID ;
|
2022-07-12 21:31:54 +08:00
|
|
|
toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ax.EventAssetsManagerEx");
|
2015-09-29 15:45:48 +08:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
if (argc == 9)
|
|
|
|
{
|
2021-12-28 15:46:32 +08:00
|
|
|
std::string_view arg0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::extension::AssetsManagerEx* arg1;
|
|
|
|
axis::extension::EventAssetsManagerEx::EventCode arg2;
|
2015-09-29 15:45:48 +08:00
|
|
|
double arg3;
|
|
|
|
double arg4;
|
2021-12-28 15:46:32 +08:00
|
|
|
std::string_view arg5;
|
|
|
|
std::string_view arg6;
|
2015-09-29 15:45:48 +08:00
|
|
|
int arg7;
|
|
|
|
int arg8;
|
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.EventAssetsManagerEx:EventAssetsManagerEx");
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_object<axis::extension::AssetsManagerEx>(tolua_S, 3, "ax.AssetsManagerEx",&arg1, "ax.EventAssetsManagerEx:EventAssetsManagerEx");
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "ax.EventAssetsManagerEx:EventAssetsManagerEx");
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_number(tolua_S, 5,&arg3, "ax.EventAssetsManagerEx:EventAssetsManagerEx");
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_number(tolua_S, 6,&arg4, "ax.EventAssetsManagerEx:EventAssetsManagerEx");
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_std_string_view(tolua_S, 7,&arg5, "ax.EventAssetsManagerEx:EventAssetsManagerEx");
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_std_string_view(tolua_S, 8,&arg6, "ax.EventAssetsManagerEx:EventAssetsManagerEx");
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_int32(tolua_S, 9,(int *)&arg7, "ax.EventAssetsManagerEx:EventAssetsManagerEx");
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_int32(tolua_S, 10,(int *)&arg8, "ax.EventAssetsManagerEx:EventAssetsManagerEx");
|
2015-09-29 15:45:48 +08:00
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_EventAssetsManagerEx_constructor'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = new axis::extension::EventAssetsManagerEx(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
|
2015-09-29 15:45:48 +08:00
|
|
|
cobj->autorelease();
|
|
|
|
int ID = (int)cobj->_ID ;
|
|
|
|
int* luaID = &cobj->_luaID ;
|
2022-07-12 21:31:54 +08:00
|
|
|
toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ax.EventAssetsManagerEx");
|
2015-09-29 15:45:48 +08:00
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventAssetsManagerEx:EventAssetsManagerEx",argc, 3);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_EventAssetsManagerEx_constructor'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
static int lua_axis_extension_EventAssetsManagerEx_finalize(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
printf("luabindings: finalizing LUA object (EventAssetsManagerEx)");
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_register_axis_extension_EventAssetsManagerEx(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_usertype(tolua_S,"ax.EventAssetsManagerEx");
|
|
|
|
tolua_cclass(tolua_S,"EventAssetsManagerEx","ax.EventAssetsManagerEx","ax.EventCustom",nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
tolua_beginmodule(tolua_S,"EventAssetsManagerEx");
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_function(tolua_S,"new",lua_axis_extension_EventAssetsManagerEx_constructor);
|
|
|
|
tolua_function(tolua_S,"getAssetsManagerEx",lua_axis_extension_EventAssetsManagerEx_getAssetsManagerEx);
|
|
|
|
tolua_function(tolua_S,"getAssetId",lua_axis_extension_EventAssetsManagerEx_getAssetId);
|
|
|
|
tolua_function(tolua_S,"getCURLECode",lua_axis_extension_EventAssetsManagerEx_getCURLECode);
|
|
|
|
tolua_function(tolua_S,"getMessage",lua_axis_extension_EventAssetsManagerEx_getMessage);
|
|
|
|
tolua_function(tolua_S,"getCURLMCode",lua_axis_extension_EventAssetsManagerEx_getCURLMCode);
|
|
|
|
tolua_function(tolua_S,"getPercentByFile",lua_axis_extension_EventAssetsManagerEx_getPercentByFile);
|
|
|
|
tolua_function(tolua_S,"getEventCode",lua_axis_extension_EventAssetsManagerEx_getEventCode);
|
|
|
|
tolua_function(tolua_S,"getPercent",lua_axis_extension_EventAssetsManagerEx_getPercent);
|
2015-09-29 15:45:48 +08:00
|
|
|
tolua_endmodule(tolua_S);
|
2022-07-11 17:50:21 +08:00
|
|
|
auto typeName = typeid(axis::extension::EventAssetsManagerEx).name(); // rtti is literal storage
|
2022-07-12 21:31:54 +08:00
|
|
|
g_luaType[reinterpret_cast<uintptr_t>(typeName)] = "ax.EventAssetsManagerEx";
|
|
|
|
g_typeCast[typeName] = "ax.EventAssetsManagerEx";
|
2015-09-29 15:45:48 +08:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_Manifest_getManifestFileUrl(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::extension::Manifest* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.Manifest",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::extension::Manifest*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_Manifest_getManifestFileUrl'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_Manifest_getManifestFileUrl'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
2021-12-28 15:46:32 +08:00
|
|
|
std::string_view ret = cobj->getManifestFileUrl();
|
|
|
|
lua_pushlstring(tolua_S,ret.data(),ret.length());
|
2015-09-29 15:45:48 +08:00
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Manifest:getManifestFileUrl",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_Manifest_getManifestFileUrl'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_Manifest_isVersionLoaded(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::extension::Manifest* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.Manifest",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::extension::Manifest*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_Manifest_isVersionLoaded'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_Manifest_isVersionLoaded'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
bool ret = cobj->isVersionLoaded();
|
|
|
|
tolua_pushboolean(tolua_S,(bool)ret);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Manifest:isVersionLoaded",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_Manifest_isVersionLoaded'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_Manifest_isLoaded(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::extension::Manifest* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.Manifest",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::extension::Manifest*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_Manifest_isLoaded'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_Manifest_isLoaded'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
bool ret = cobj->isLoaded();
|
|
|
|
tolua_pushboolean(tolua_S,(bool)ret);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Manifest:isLoaded",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_Manifest_isLoaded'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_Manifest_getPackageUrl(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::extension::Manifest* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.Manifest",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::extension::Manifest*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_Manifest_getPackageUrl'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_Manifest_getPackageUrl'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
2021-12-28 15:46:32 +08:00
|
|
|
std::string_view ret = cobj->getPackageUrl();
|
|
|
|
lua_pushlstring(tolua_S,ret.data(),ret.length());
|
2015-09-29 15:45:48 +08:00
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Manifest:getPackageUrl",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_Manifest_getPackageUrl'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_Manifest_getVersion(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::extension::Manifest* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.Manifest",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::extension::Manifest*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_Manifest_getVersion'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_Manifest_getVersion'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
2021-12-28 15:46:32 +08:00
|
|
|
std::string_view ret = cobj->getVersion();
|
|
|
|
lua_pushlstring(tolua_S,ret.data(),ret.length());
|
2015-09-29 15:45:48 +08:00
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Manifest:getVersion",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_Manifest_getVersion'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_Manifest_getVersionFileUrl(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::extension::Manifest* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.Manifest",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::extension::Manifest*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_Manifest_getVersionFileUrl'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_Manifest_getVersionFileUrl'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
2021-12-28 15:46:32 +08:00
|
|
|
std::string_view ret = cobj->getVersionFileUrl();
|
|
|
|
lua_pushlstring(tolua_S,ret.data(),ret.length());
|
2015-09-29 15:45:48 +08:00
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Manifest:getVersionFileUrl",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_Manifest_getVersionFileUrl'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_Manifest_getSearchPaths(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::extension::Manifest* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.Manifest",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::extension::Manifest*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_Manifest_getSearchPaths'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_Manifest_getSearchPaths'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
std::vector<std::string> ret = cobj->getSearchPaths();
|
|
|
|
ccvector_std_string_to_luaval(tolua_S, ret);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Manifest:getSearchPaths",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_Manifest_getSearchPaths'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
static int lua_axis_extension_Manifest_finalize(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
printf("luabindings: finalizing LUA object (Manifest)");
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_register_axis_extension_Manifest(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_usertype(tolua_S,"ax.Manifest");
|
|
|
|
tolua_cclass(tolua_S,"Manifest","ax.Manifest","ax.Ref",nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
tolua_beginmodule(tolua_S,"Manifest");
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_function(tolua_S,"getManifestFileUrl",lua_axis_extension_Manifest_getManifestFileUrl);
|
|
|
|
tolua_function(tolua_S,"isVersionLoaded",lua_axis_extension_Manifest_isVersionLoaded);
|
|
|
|
tolua_function(tolua_S,"isLoaded",lua_axis_extension_Manifest_isLoaded);
|
|
|
|
tolua_function(tolua_S,"getPackageUrl",lua_axis_extension_Manifest_getPackageUrl);
|
|
|
|
tolua_function(tolua_S,"getVersion",lua_axis_extension_Manifest_getVersion);
|
|
|
|
tolua_function(tolua_S,"getVersionFileUrl",lua_axis_extension_Manifest_getVersionFileUrl);
|
|
|
|
tolua_function(tolua_S,"getSearchPaths",lua_axis_extension_Manifest_getSearchPaths);
|
2015-09-29 15:45:48 +08:00
|
|
|
tolua_endmodule(tolua_S);
|
2022-07-11 17:50:21 +08:00
|
|
|
auto typeName = typeid(axis::extension::Manifest).name(); // rtti is literal storage
|
2022-07-12 21:31:54 +08:00
|
|
|
g_luaType[reinterpret_cast<uintptr_t>(typeName)] = "ax.Manifest";
|
|
|
|
g_typeCast[typeName] = "ax.Manifest";
|
2015-09-29 15:45:48 +08:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_AssetsManagerEx_getState(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::extension::AssetsManagerEx* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.AssetsManagerEx",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::extension::AssetsManagerEx*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_AssetsManagerEx_getState'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_AssetsManagerEx_getState'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
int ret = (int)cobj->getState();
|
|
|
|
tolua_pushnumber(tolua_S,(lua_Number)ret);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AssetsManagerEx:getState",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_AssetsManagerEx_getState'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_AssetsManagerEx_getMaxConcurrentTask(lua_State* tolua_S)
|
2017-03-15 16:23:50 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::extension::AssetsManagerEx* cobj = nullptr;
|
2017-03-15 16:23:50 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.AssetsManagerEx",0,&tolua_err)) goto tolua_lerror;
|
2017-03-15 16:23:50 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::extension::AssetsManagerEx*)tolua_tousertype(tolua_S,1,0);
|
2017-03-15 16:23:50 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_AssetsManagerEx_getMaxConcurrentTask'", nullptr);
|
2017-03-15 16:23:50 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_AssetsManagerEx_getMaxConcurrentTask'", nullptr);
|
2017-03-15 16:23:50 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
const int ret = cobj->getMaxConcurrentTask();
|
|
|
|
tolua_pushnumber(tolua_S,(lua_Number)ret);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AssetsManagerEx:getMaxConcurrentTask",argc, 0);
|
2017-03-15 16:23:50 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_AssetsManagerEx_getMaxConcurrentTask'.",&tolua_err);
|
2017-03-15 16:23:50 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_AssetsManagerEx_checkUpdate(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::extension::AssetsManagerEx* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.AssetsManagerEx",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::extension::AssetsManagerEx*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_AssetsManagerEx_checkUpdate'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_AssetsManagerEx_checkUpdate'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
cobj->checkUpdate();
|
|
|
|
lua_settop(tolua_S, 1);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AssetsManagerEx:checkUpdate",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_AssetsManagerEx_checkUpdate'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_AssetsManagerEx_setVerifyCallback(lua_State* tolua_S)
|
2017-03-15 16:23:50 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::extension::AssetsManagerEx* cobj = nullptr;
|
2017-03-15 16:23:50 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.AssetsManagerEx",0,&tolua_err)) goto tolua_lerror;
|
2017-03-15 16:23:50 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::extension::AssetsManagerEx*)tolua_tousertype(tolua_S,1,0);
|
2017-03-15 16:23:50 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_AssetsManagerEx_setVerifyCallback'", nullptr);
|
2017-03-15 16:23:50 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 1)
|
|
|
|
{
|
2022-07-11 17:50:21 +08:00
|
|
|
std::function<bool (std::string_view, axis::extension::ManifestAsset)> arg0;
|
2017-03-15 16:23:50 +08:00
|
|
|
|
|
|
|
do {
|
|
|
|
// Lambda binding for lua is not supported.
|
|
|
|
assert(false);
|
|
|
|
} while(0)
|
|
|
|
;
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_AssetsManagerEx_setVerifyCallback'", nullptr);
|
2017-03-15 16:23:50 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
cobj->setVerifyCallback(arg0);
|
|
|
|
lua_settop(tolua_S, 1);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AssetsManagerEx:setVerifyCallback",argc, 1);
|
2017-03-15 16:23:50 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_AssetsManagerEx_setVerifyCallback'.",&tolua_err);
|
2017-03-15 16:23:50 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_AssetsManagerEx_getStoragePath(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::extension::AssetsManagerEx* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.AssetsManagerEx",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::extension::AssetsManagerEx*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_AssetsManagerEx_getStoragePath'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_AssetsManagerEx_getStoragePath'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
2021-12-28 15:46:32 +08:00
|
|
|
std::string_view ret = cobj->getStoragePath();
|
|
|
|
lua_pushlstring(tolua_S,ret.data(),ret.length());
|
2015-09-29 15:45:48 +08:00
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AssetsManagerEx:getStoragePath",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_AssetsManagerEx_getStoragePath'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_AssetsManagerEx_update(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::extension::AssetsManagerEx* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.AssetsManagerEx",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::extension::AssetsManagerEx*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_AssetsManagerEx_update'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_AssetsManagerEx_update'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
cobj->update();
|
|
|
|
lua_settop(tolua_S, 1);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AssetsManagerEx:update",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_AssetsManagerEx_update'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_AssetsManagerEx_setVersionCompareHandle(lua_State* tolua_S)
|
2017-03-15 16:23:50 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::extension::AssetsManagerEx* cobj = nullptr;
|
2017-03-15 16:23:50 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.AssetsManagerEx",0,&tolua_err)) goto tolua_lerror;
|
2017-03-15 16:23:50 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::extension::AssetsManagerEx*)tolua_tousertype(tolua_S,1,0);
|
2017-03-15 16:23:50 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_AssetsManagerEx_setVersionCompareHandle'", nullptr);
|
2017-03-15 16:23:50 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 1)
|
|
|
|
{
|
2021-12-28 15:46:32 +08:00
|
|
|
std::function<int (std::string_view, std::string_view)> arg0;
|
2017-03-15 16:23:50 +08:00
|
|
|
|
|
|
|
do {
|
|
|
|
// Lambda binding for lua is not supported.
|
|
|
|
assert(false);
|
|
|
|
} while(0)
|
|
|
|
;
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_AssetsManagerEx_setVersionCompareHandle'", nullptr);
|
2017-03-15 16:23:50 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
cobj->setVersionCompareHandle(arg0);
|
|
|
|
lua_settop(tolua_S, 1);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AssetsManagerEx:setVersionCompareHandle",argc, 1);
|
2017-03-15 16:23:50 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_AssetsManagerEx_setVersionCompareHandle'.",&tolua_err);
|
2017-03-15 16:23:50 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_AssetsManagerEx_setMaxConcurrentTask(lua_State* tolua_S)
|
2017-03-15 16:23:50 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::extension::AssetsManagerEx* cobj = nullptr;
|
2017-03-15 16:23:50 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.AssetsManagerEx",0,&tolua_err)) goto tolua_lerror;
|
2017-03-15 16:23:50 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::extension::AssetsManagerEx*)tolua_tousertype(tolua_S,1,0);
|
2017-03-15 16:23:50 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_AssetsManagerEx_setMaxConcurrentTask'", nullptr);
|
2017-03-15 16:23:50 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 1)
|
|
|
|
{
|
|
|
|
int arg0;
|
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.AssetsManagerEx:setMaxConcurrentTask");
|
2017-03-15 16:23:50 +08:00
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_AssetsManagerEx_setMaxConcurrentTask'", nullptr);
|
2017-03-15 16:23:50 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
cobj->setMaxConcurrentTask(arg0);
|
|
|
|
lua_settop(tolua_S, 1);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AssetsManagerEx:setMaxConcurrentTask",argc, 1);
|
2017-03-15 16:23:50 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_AssetsManagerEx_setMaxConcurrentTask'.",&tolua_err);
|
2017-03-15 16:23:50 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_AssetsManagerEx_getLocalManifest(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::extension::AssetsManagerEx* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.AssetsManagerEx",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::extension::AssetsManagerEx*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_AssetsManagerEx_getLocalManifest'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_AssetsManagerEx_getLocalManifest'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
2022-07-11 17:50:21 +08:00
|
|
|
const axis::extension::Manifest* ret = cobj->getLocalManifest();
|
2022-07-12 21:31:54 +08:00
|
|
|
object_to_luaval<axis::extension::Manifest>(tolua_S, "ax.Manifest",(axis::extension::Manifest*)ret);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AssetsManagerEx:getLocalManifest",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_AssetsManagerEx_getLocalManifest'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_AssetsManagerEx_getRemoteManifest(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::extension::AssetsManagerEx* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.AssetsManagerEx",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::extension::AssetsManagerEx*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_AssetsManagerEx_getRemoteManifest'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_AssetsManagerEx_getRemoteManifest'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
2022-07-11 17:50:21 +08:00
|
|
|
const axis::extension::Manifest* ret = cobj->getRemoteManifest();
|
2022-07-12 21:31:54 +08:00
|
|
|
object_to_luaval<axis::extension::Manifest>(tolua_S, "ax.Manifest",(axis::extension::Manifest*)ret);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AssetsManagerEx:getRemoteManifest",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_AssetsManagerEx_getRemoteManifest'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_AssetsManagerEx_downloadFailedAssets(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::extension::AssetsManagerEx* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.AssetsManagerEx",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::extension::AssetsManagerEx*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_AssetsManagerEx_downloadFailedAssets'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_AssetsManagerEx_downloadFailedAssets'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
cobj->downloadFailedAssets();
|
|
|
|
lua_settop(tolua_S, 1);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AssetsManagerEx:downloadFailedAssets",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_AssetsManagerEx_downloadFailedAssets'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_AssetsManagerEx_create(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertable(tolua_S,1,"ax.AssetsManagerEx",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S) - 1;
|
|
|
|
|
|
|
|
if (argc == 2)
|
|
|
|
{
|
2021-12-28 15:46:32 +08:00
|
|
|
std::string_view arg0;
|
|
|
|
std::string_view arg1;
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.AssetsManagerEx:create");
|
|
|
|
ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ax.AssetsManagerEx:create");
|
2015-09-29 15:45:48 +08:00
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_AssetsManagerEx_create'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::extension::AssetsManagerEx* ret = axis::extension::AssetsManagerEx::create(arg0, arg1);
|
2022-07-12 21:31:54 +08:00
|
|
|
object_to_luaval<axis::extension::AssetsManagerEx>(tolua_S, "ax.AssetsManagerEx",(axis::extension::AssetsManagerEx*)ret);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.AssetsManagerEx:create",argc, 2);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_AssetsManagerEx_create'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_AssetsManagerEx_constructor(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::extension::AssetsManagerEx* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 2)
|
|
|
|
{
|
2021-12-28 15:46:32 +08:00
|
|
|
std::string_view arg0;
|
|
|
|
std::string_view arg1;
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.AssetsManagerEx:AssetsManagerEx");
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ax.AssetsManagerEx:AssetsManagerEx");
|
2015-09-29 15:45:48 +08:00
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_AssetsManagerEx_constructor'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = new axis::extension::AssetsManagerEx(arg0, arg1);
|
2015-09-29 15:45:48 +08:00
|
|
|
cobj->autorelease();
|
|
|
|
int ID = (int)cobj->_ID ;
|
|
|
|
int* luaID = &cobj->_luaID ;
|
2022-07-12 21:31:54 +08:00
|
|
|
toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ax.AssetsManagerEx");
|
2015-09-29 15:45:48 +08:00
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AssetsManagerEx:AssetsManagerEx",argc, 2);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_AssetsManagerEx_constructor'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
static int lua_axis_extension_AssetsManagerEx_finalize(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
printf("luabindings: finalizing LUA object (AssetsManagerEx)");
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_register_axis_extension_AssetsManagerEx(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_usertype(tolua_S,"ax.AssetsManagerEx");
|
|
|
|
tolua_cclass(tolua_S,"AssetsManagerEx","ax.AssetsManagerEx","ax.Ref",nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
tolua_beginmodule(tolua_S,"AssetsManagerEx");
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_function(tolua_S,"new",lua_axis_extension_AssetsManagerEx_constructor);
|
|
|
|
tolua_function(tolua_S,"getState",lua_axis_extension_AssetsManagerEx_getState);
|
|
|
|
tolua_function(tolua_S,"getMaxConcurrentTask",lua_axis_extension_AssetsManagerEx_getMaxConcurrentTask);
|
|
|
|
tolua_function(tolua_S,"checkUpdate",lua_axis_extension_AssetsManagerEx_checkUpdate);
|
|
|
|
tolua_function(tolua_S,"setVerifyCallback",lua_axis_extension_AssetsManagerEx_setVerifyCallback);
|
|
|
|
tolua_function(tolua_S,"getStoragePath",lua_axis_extension_AssetsManagerEx_getStoragePath);
|
|
|
|
tolua_function(tolua_S,"update",lua_axis_extension_AssetsManagerEx_update);
|
|
|
|
tolua_function(tolua_S,"setVersionCompareHandle",lua_axis_extension_AssetsManagerEx_setVersionCompareHandle);
|
|
|
|
tolua_function(tolua_S,"setMaxConcurrentTask",lua_axis_extension_AssetsManagerEx_setMaxConcurrentTask);
|
|
|
|
tolua_function(tolua_S,"getLocalManifest",lua_axis_extension_AssetsManagerEx_getLocalManifest);
|
|
|
|
tolua_function(tolua_S,"getRemoteManifest",lua_axis_extension_AssetsManagerEx_getRemoteManifest);
|
|
|
|
tolua_function(tolua_S,"downloadFailedAssets",lua_axis_extension_AssetsManagerEx_downloadFailedAssets);
|
|
|
|
tolua_function(tolua_S,"create", lua_axis_extension_AssetsManagerEx_create);
|
2015-09-29 15:45:48 +08:00
|
|
|
tolua_endmodule(tolua_S);
|
2022-07-11 17:50:21 +08:00
|
|
|
auto typeName = typeid(axis::extension::AssetsManagerEx).name(); // rtti is literal storage
|
2022-07-12 21:31:54 +08:00
|
|
|
g_luaType[reinterpret_cast<uintptr_t>(typeName)] = "ax.AssetsManagerEx";
|
|
|
|
g_typeCast[typeName] = "ax.AssetsManagerEx";
|
2015-09-29 15:45:48 +08:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_EventListenerAssetsManagerEx_init(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::extension::EventListenerAssetsManagerEx* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.EventListenerAssetsManagerEx",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::extension::EventListenerAssetsManagerEx*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_EventListenerAssetsManagerEx_init'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 2)
|
|
|
|
{
|
2022-07-11 17:50:21 +08:00
|
|
|
const axis::extension::AssetsManagerEx* arg0;
|
|
|
|
std::function<void (axis::extension::EventAssetsManagerEx *)> arg1;
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_object<const axis::extension::AssetsManagerEx>(tolua_S, 2, "ax.AssetsManagerEx",&arg0, "ax.EventListenerAssetsManagerEx:init");
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
do {
|
|
|
|
// Lambda binding for lua is not supported.
|
|
|
|
assert(false);
|
|
|
|
} while(0)
|
|
|
|
;
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_EventListenerAssetsManagerEx_init'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
bool ret = cobj->init(arg0, arg1);
|
|
|
|
tolua_pushboolean(tolua_S,(bool)ret);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventListenerAssetsManagerEx:init",argc, 2);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_EventListenerAssetsManagerEx_init'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_EventListenerAssetsManagerEx_constructor(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::extension::EventListenerAssetsManagerEx* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_EventListenerAssetsManagerEx_constructor'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = new axis::extension::EventListenerAssetsManagerEx();
|
2015-09-29 15:45:48 +08:00
|
|
|
cobj->autorelease();
|
|
|
|
int ID = (int)cobj->_ID ;
|
|
|
|
int* luaID = &cobj->_luaID ;
|
2022-07-12 21:31:54 +08:00
|
|
|
toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ax.EventListenerAssetsManagerEx");
|
2015-09-29 15:45:48 +08:00
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventListenerAssetsManagerEx:EventListenerAssetsManagerEx",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_EventListenerAssetsManagerEx_constructor'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
static int lua_axis_extension_EventListenerAssetsManagerEx_finalize(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
printf("luabindings: finalizing LUA object (EventListenerAssetsManagerEx)");
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_register_axis_extension_EventListenerAssetsManagerEx(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_usertype(tolua_S,"ax.EventListenerAssetsManagerEx");
|
|
|
|
tolua_cclass(tolua_S,"EventListenerAssetsManagerEx","ax.EventListenerAssetsManagerEx","ax.EventListenerCustom",nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
tolua_beginmodule(tolua_S,"EventListenerAssetsManagerEx");
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_function(tolua_S,"new",lua_axis_extension_EventListenerAssetsManagerEx_constructor);
|
|
|
|
tolua_function(tolua_S,"init",lua_axis_extension_EventListenerAssetsManagerEx_init);
|
2015-09-29 15:45:48 +08:00
|
|
|
tolua_endmodule(tolua_S);
|
2022-07-11 17:50:21 +08:00
|
|
|
auto typeName = typeid(axis::extension::EventListenerAssetsManagerEx).name(); // rtti is literal storage
|
2022-07-12 21:31:54 +08:00
|
|
|
g_luaType[reinterpret_cast<uintptr_t>(typeName)] = "ax.EventListenerAssetsManagerEx";
|
|
|
|
g_typeCast[typeName] = "ax.EventListenerAssetsManagerEx";
|
2015-09-29 15:45:48 +08:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_ParticleSystem3D_removeAffector(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::ParticleSystem3D* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_ParticleSystem3D_removeAffector'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 1)
|
|
|
|
{
|
|
|
|
int arg0;
|
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.ParticleSystem3D:removeAffector");
|
2015-09-29 15:45:48 +08:00
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_ParticleSystem3D_removeAffector'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
cobj->removeAffector(arg0);
|
|
|
|
lua_settop(tolua_S, 1);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem3D:removeAffector",argc, 1);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_ParticleSystem3D_removeAffector'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_ParticleSystem3D_resumeParticleSystem(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::ParticleSystem3D* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_ParticleSystem3D_resumeParticleSystem'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_ParticleSystem3D_resumeParticleSystem'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
cobj->resumeParticleSystem();
|
|
|
|
lua_settop(tolua_S, 1);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem3D:resumeParticleSystem",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_ParticleSystem3D_resumeParticleSystem'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_ParticleSystem3D_removeAllAffector(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::ParticleSystem3D* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_ParticleSystem3D_removeAllAffector'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_ParticleSystem3D_removeAllAffector'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
cobj->removeAllAffector();
|
|
|
|
lua_settop(tolua_S, 1);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem3D:removeAllAffector",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_ParticleSystem3D_removeAllAffector'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_ParticleSystem3D_addAffector(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::ParticleSystem3D* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_ParticleSystem3D_addAffector'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 1)
|
|
|
|
{
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::Particle3DAffector* arg0;
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_object<axis::Particle3DAffector>(tolua_S, 2, "ax.Particle3DAffector",&arg0, "ax.ParticleSystem3D:addAffector");
|
2015-09-29 15:45:48 +08:00
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_ParticleSystem3D_addAffector'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
cobj->addAffector(arg0);
|
|
|
|
lua_settop(tolua_S, 1);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem3D:addAffector",argc, 1);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_ParticleSystem3D_addAffector'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_ParticleSystem3D_startParticleSystem(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::ParticleSystem3D* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_ParticleSystem3D_startParticleSystem'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_ParticleSystem3D_startParticleSystem'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
cobj->startParticleSystem();
|
|
|
|
lua_settop(tolua_S, 1);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem3D:startParticleSystem",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_ParticleSystem3D_startParticleSystem'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_ParticleSystem3D_isEnabled(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::ParticleSystem3D* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_ParticleSystem3D_isEnabled'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_ParticleSystem3D_isEnabled'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
bool ret = cobj->isEnabled();
|
|
|
|
tolua_pushboolean(tolua_S,(bool)ret);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem3D:isEnabled",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_ParticleSystem3D_isEnabled'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_ParticleSystem3D_getRender(lua_State* tolua_S)
|
2015-12-18 21:28:14 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::ParticleSystem3D* cobj = nullptr;
|
2015-12-18 21:28:14 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-12-18 21:28:14 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0);
|
2015-12-18 21:28:14 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_ParticleSystem3D_getRender'", nullptr);
|
2015-12-18 21:28:14 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_ParticleSystem3D_getRender'", nullptr);
|
2015-12-18 21:28:14 +08:00
|
|
|
return 0;
|
|
|
|
}
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::Particle3DRender* ret = cobj->getRender();
|
2022-07-12 21:31:54 +08:00
|
|
|
object_to_luaval<axis::Particle3DRender>(tolua_S, "ax.Particle3DRender",(axis::Particle3DRender*)ret);
|
2015-12-18 21:28:14 +08:00
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem3D:getRender",argc, 0);
|
2015-12-18 21:28:14 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_ParticleSystem3D_getRender'.",&tolua_err);
|
2015-12-18 21:28:14 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_ParticleSystem3D_setEmitter(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::ParticleSystem3D* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_ParticleSystem3D_setEmitter'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 1)
|
|
|
|
{
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::Particle3DEmitter* arg0;
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_object<axis::Particle3DEmitter>(tolua_S, 2, "ax.Particle3DEmitter",&arg0, "ax.ParticleSystem3D:setEmitter");
|
2015-09-29 15:45:48 +08:00
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_ParticleSystem3D_setEmitter'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
cobj->setEmitter(arg0);
|
|
|
|
lua_settop(tolua_S, 1);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem3D:setEmitter",argc, 1);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_ParticleSystem3D_setEmitter'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_ParticleSystem3D_isKeepLocal(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::ParticleSystem3D* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_ParticleSystem3D_isKeepLocal'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_ParticleSystem3D_isKeepLocal'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
bool ret = cobj->isKeepLocal();
|
|
|
|
tolua_pushboolean(tolua_S,(bool)ret);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem3D:isKeepLocal",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_ParticleSystem3D_isKeepLocal'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_ParticleSystem3D_setEnabled(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::ParticleSystem3D* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_ParticleSystem3D_setEnabled'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 1)
|
|
|
|
{
|
|
|
|
bool arg0;
|
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.ParticleSystem3D:setEnabled");
|
2015-09-29 15:45:48 +08:00
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_ParticleSystem3D_setEnabled'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
cobj->setEnabled(arg0);
|
|
|
|
lua_settop(tolua_S, 1);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem3D:setEnabled",argc, 1);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_ParticleSystem3D_setEnabled'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_ParticleSystem3D_getParticleQuota(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::ParticleSystem3D* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_ParticleSystem3D_getParticleQuota'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_ParticleSystem3D_getParticleQuota'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
unsigned int ret = cobj->getParticleQuota();
|
|
|
|
tolua_pushnumber(tolua_S,(lua_Number)ret);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem3D:getParticleQuota",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_ParticleSystem3D_getParticleQuota'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_ParticleSystem3D_getBlendFunc(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::ParticleSystem3D* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_ParticleSystem3D_getBlendFunc'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_ParticleSystem3D_getBlendFunc'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
2022-07-11 17:50:21 +08:00
|
|
|
const axis::BlendFunc& ret = cobj->getBlendFunc();
|
2015-09-29 15:45:48 +08:00
|
|
|
blendfunc_to_luaval(tolua_S, ret);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem3D:getBlendFunc",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_ParticleSystem3D_getBlendFunc'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_ParticleSystem3D_pauseParticleSystem(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::ParticleSystem3D* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_ParticleSystem3D_pauseParticleSystem'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_ParticleSystem3D_pauseParticleSystem'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
cobj->pauseParticleSystem();
|
|
|
|
lua_settop(tolua_S, 1);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem3D:pauseParticleSystem",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_ParticleSystem3D_pauseParticleSystem'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_ParticleSystem3D_getState(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::ParticleSystem3D* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_ParticleSystem3D_getState'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_ParticleSystem3D_getState'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
int ret = (int)cobj->getState();
|
|
|
|
tolua_pushnumber(tolua_S,(lua_Number)ret);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem3D:getState",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_ParticleSystem3D_getState'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_ParticleSystem3D_getAliveParticleCount(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::ParticleSystem3D* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_ParticleSystem3D_getAliveParticleCount'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_ParticleSystem3D_getAliveParticleCount'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
int ret = cobj->getAliveParticleCount();
|
|
|
|
tolua_pushnumber(tolua_S,(lua_Number)ret);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem3D:getAliveParticleCount",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_ParticleSystem3D_getAliveParticleCount'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_ParticleSystem3D_setParticleQuota(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::ParticleSystem3D* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_ParticleSystem3D_setParticleQuota'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 1)
|
|
|
|
{
|
|
|
|
unsigned int arg0;
|
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_uint32(tolua_S, 2,&arg0, "ax.ParticleSystem3D:setParticleQuota");
|
2015-09-29 15:45:48 +08:00
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_ParticleSystem3D_setParticleQuota'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
cobj->setParticleQuota(arg0);
|
|
|
|
lua_settop(tolua_S, 1);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem3D:setParticleQuota",argc, 1);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_ParticleSystem3D_setParticleQuota'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_ParticleSystem3D_setBlendFunc(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::ParticleSystem3D* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_ParticleSystem3D_setBlendFunc'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 1)
|
|
|
|
{
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::BlendFunc arg0;
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "ax.ParticleSystem3D:setBlendFunc");
|
2015-09-29 15:45:48 +08:00
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_ParticleSystem3D_setBlendFunc'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
cobj->setBlendFunc(arg0);
|
|
|
|
lua_settop(tolua_S, 1);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem3D:setBlendFunc",argc, 1);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_ParticleSystem3D_setBlendFunc'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_ParticleSystem3D_setRender(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::ParticleSystem3D* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_ParticleSystem3D_setRender'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 1)
|
|
|
|
{
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::Particle3DRender* arg0;
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_object<axis::Particle3DRender>(tolua_S, 2, "ax.Particle3DRender",&arg0, "ax.ParticleSystem3D:setRender");
|
2015-09-29 15:45:48 +08:00
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_ParticleSystem3D_setRender'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
cobj->setRender(arg0);
|
|
|
|
lua_settop(tolua_S, 1);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem3D:setRender",argc, 1);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_ParticleSystem3D_setRender'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_ParticleSystem3D_stopParticleSystem(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::ParticleSystem3D* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_ParticleSystem3D_stopParticleSystem'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_ParticleSystem3D_stopParticleSystem'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
cobj->stopParticleSystem();
|
|
|
|
lua_settop(tolua_S, 1);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem3D:stopParticleSystem",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_ParticleSystem3D_stopParticleSystem'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_ParticleSystem3D_setKeepLocal(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::ParticleSystem3D* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_ParticleSystem3D_setKeepLocal'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 1)
|
|
|
|
{
|
|
|
|
bool arg0;
|
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.ParticleSystem3D:setKeepLocal");
|
2015-09-29 15:45:48 +08:00
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_ParticleSystem3D_setKeepLocal'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
cobj->setKeepLocal(arg0);
|
|
|
|
lua_settop(tolua_S, 1);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem3D:setKeepLocal",argc, 1);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_ParticleSystem3D_setKeepLocal'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_ParticleSystem3D_constructor(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::ParticleSystem3D* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_ParticleSystem3D_constructor'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = new axis::ParticleSystem3D();
|
2015-09-29 15:45:48 +08:00
|
|
|
cobj->autorelease();
|
|
|
|
int ID = (int)cobj->_ID ;
|
|
|
|
int* luaID = &cobj->_luaID ;
|
2022-07-12 21:31:54 +08:00
|
|
|
toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ax.ParticleSystem3D");
|
2015-09-29 15:45:48 +08:00
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ParticleSystem3D:ParticleSystem3D",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_ParticleSystem3D_constructor'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
static int lua_axis_extension_ParticleSystem3D_finalize(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
printf("luabindings: finalizing LUA object (ParticleSystem3D)");
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_register_axis_extension_ParticleSystem3D(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_usertype(tolua_S,"ax.ParticleSystem3D");
|
|
|
|
tolua_cclass(tolua_S,"ParticleSystem3D","ax.ParticleSystem3D","ax.Node",nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
tolua_beginmodule(tolua_S,"ParticleSystem3D");
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_function(tolua_S,"new",lua_axis_extension_ParticleSystem3D_constructor);
|
|
|
|
tolua_function(tolua_S,"removeAffector",lua_axis_extension_ParticleSystem3D_removeAffector);
|
|
|
|
tolua_function(tolua_S,"resumeParticleSystem",lua_axis_extension_ParticleSystem3D_resumeParticleSystem);
|
|
|
|
tolua_function(tolua_S,"removeAllAffector",lua_axis_extension_ParticleSystem3D_removeAllAffector);
|
|
|
|
tolua_function(tolua_S,"addAffector",lua_axis_extension_ParticleSystem3D_addAffector);
|
|
|
|
tolua_function(tolua_S,"startParticleSystem",lua_axis_extension_ParticleSystem3D_startParticleSystem);
|
|
|
|
tolua_function(tolua_S,"isEnabled",lua_axis_extension_ParticleSystem3D_isEnabled);
|
|
|
|
tolua_function(tolua_S,"getRender",lua_axis_extension_ParticleSystem3D_getRender);
|
|
|
|
tolua_function(tolua_S,"setEmitter",lua_axis_extension_ParticleSystem3D_setEmitter);
|
|
|
|
tolua_function(tolua_S,"isKeepLocal",lua_axis_extension_ParticleSystem3D_isKeepLocal);
|
|
|
|
tolua_function(tolua_S,"setEnabled",lua_axis_extension_ParticleSystem3D_setEnabled);
|
|
|
|
tolua_function(tolua_S,"getParticleQuota",lua_axis_extension_ParticleSystem3D_getParticleQuota);
|
|
|
|
tolua_function(tolua_S,"getBlendFunc",lua_axis_extension_ParticleSystem3D_getBlendFunc);
|
|
|
|
tolua_function(tolua_S,"pauseParticleSystem",lua_axis_extension_ParticleSystem3D_pauseParticleSystem);
|
|
|
|
tolua_function(tolua_S,"getState",lua_axis_extension_ParticleSystem3D_getState);
|
|
|
|
tolua_function(tolua_S,"getAliveParticleCount",lua_axis_extension_ParticleSystem3D_getAliveParticleCount);
|
|
|
|
tolua_function(tolua_S,"setParticleQuota",lua_axis_extension_ParticleSystem3D_setParticleQuota);
|
|
|
|
tolua_function(tolua_S,"setBlendFunc",lua_axis_extension_ParticleSystem3D_setBlendFunc);
|
|
|
|
tolua_function(tolua_S,"setRender",lua_axis_extension_ParticleSystem3D_setRender);
|
|
|
|
tolua_function(tolua_S,"stopParticleSystem",lua_axis_extension_ParticleSystem3D_stopParticleSystem);
|
|
|
|
tolua_function(tolua_S,"setKeepLocal",lua_axis_extension_ParticleSystem3D_setKeepLocal);
|
2015-09-29 15:45:48 +08:00
|
|
|
tolua_endmodule(tolua_S);
|
2022-07-11 17:50:21 +08:00
|
|
|
auto typeName = typeid(axis::ParticleSystem3D).name(); // rtti is literal storage
|
2022-07-12 21:31:54 +08:00
|
|
|
g_luaType[reinterpret_cast<uintptr_t>(typeName)] = "ax.ParticleSystem3D";
|
|
|
|
g_typeCast[typeName] = "ax.ParticleSystem3D";
|
2015-09-29 15:45:48 +08:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_PUParticleSystem3D_initWithFilePath(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::PUParticleSystem3D* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_PUParticleSystem3D_initWithFilePath'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 1)
|
|
|
|
{
|
2021-12-28 15:46:32 +08:00
|
|
|
std::string_view arg0;
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.PUParticleSystem3D:initWithFilePath");
|
2015-09-29 15:45:48 +08:00
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_PUParticleSystem3D_initWithFilePath'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
bool ret = cobj->initWithFilePath(arg0);
|
|
|
|
tolua_pushboolean(tolua_S,(bool)ret);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:initWithFilePath",argc, 1);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_PUParticleSystem3D_initWithFilePath'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_PUParticleSystem3D_getParticleSystemScaleVelocity(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::PUParticleSystem3D* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_PUParticleSystem3D_getParticleSystemScaleVelocity'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_PUParticleSystem3D_getParticleSystemScaleVelocity'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
double ret = cobj->getParticleSystemScaleVelocity();
|
|
|
|
tolua_pushnumber(tolua_S,(lua_Number)ret);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:getParticleSystemScaleVelocity",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_PUParticleSystem3D_getParticleSystemScaleVelocity'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_PUParticleSystem3D_setEmittedSystemQuota(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::PUParticleSystem3D* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_PUParticleSystem3D_setEmittedSystemQuota'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 1)
|
|
|
|
{
|
|
|
|
unsigned int arg0;
|
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_uint32(tolua_S, 2,&arg0, "ax.PUParticleSystem3D:setEmittedSystemQuota");
|
2015-09-29 15:45:48 +08:00
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_PUParticleSystem3D_setEmittedSystemQuota'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
cobj->setEmittedSystemQuota(arg0);
|
|
|
|
lua_settop(tolua_S, 1);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:setEmittedSystemQuota",argc, 1);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_PUParticleSystem3D_setEmittedSystemQuota'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_PUParticleSystem3D_getDefaultDepth(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::PUParticleSystem3D* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_PUParticleSystem3D_getDefaultDepth'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_PUParticleSystem3D_getDefaultDepth'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
2016-04-07 15:46:49 +08:00
|
|
|
double ret = cobj->getDefaultDepth();
|
2015-09-29 15:45:48 +08:00
|
|
|
tolua_pushnumber(tolua_S,(lua_Number)ret);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:getDefaultDepth",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_PUParticleSystem3D_getDefaultDepth'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_PUParticleSystem3D_getEmittedSystemQuota(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::PUParticleSystem3D* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_PUParticleSystem3D_getEmittedSystemQuota'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_PUParticleSystem3D_getEmittedSystemQuota'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
unsigned int ret = cobj->getEmittedSystemQuota();
|
|
|
|
tolua_pushnumber(tolua_S,(lua_Number)ret);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:getEmittedSystemQuota",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_PUParticleSystem3D_getEmittedSystemQuota'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_PUParticleSystem3D_initWithFilePathAndMaterialPath(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::PUParticleSystem3D* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_PUParticleSystem3D_initWithFilePathAndMaterialPath'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 2)
|
|
|
|
{
|
2021-12-28 15:46:32 +08:00
|
|
|
std::string_view arg0;
|
|
|
|
std::string_view arg1;
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.PUParticleSystem3D:initWithFilePathAndMaterialPath");
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ax.PUParticleSystem3D:initWithFilePathAndMaterialPath");
|
2015-09-29 15:45:48 +08:00
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_PUParticleSystem3D_initWithFilePathAndMaterialPath'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
bool ret = cobj->initWithFilePathAndMaterialPath(arg0, arg1);
|
|
|
|
tolua_pushboolean(tolua_S,(bool)ret);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:initWithFilePathAndMaterialPath",argc, 2);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_PUParticleSystem3D_initWithFilePathAndMaterialPath'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_PUParticleSystem3D_clearAllParticles(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::PUParticleSystem3D* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_PUParticleSystem3D_clearAllParticles'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_PUParticleSystem3D_clearAllParticles'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
cobj->clearAllParticles();
|
|
|
|
lua_settop(tolua_S, 1);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:clearAllParticles",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_PUParticleSystem3D_clearAllParticles'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_PUParticleSystem3D_getMaterialName(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::PUParticleSystem3D* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_PUParticleSystem3D_getMaterialName'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_PUParticleSystem3D_getMaterialName'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
2021-12-28 15:46:32 +08:00
|
|
|
std::string_view ret = cobj->getMaterialName();
|
|
|
|
lua_pushlstring(tolua_S,ret.data(),ret.length());
|
2015-09-29 15:45:48 +08:00
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:getMaterialName",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_PUParticleSystem3D_getMaterialName'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_PUParticleSystem3D_calulateRotationOffset(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::PUParticleSystem3D* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_PUParticleSystem3D_calulateRotationOffset'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_PUParticleSystem3D_calulateRotationOffset'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
cobj->calulateRotationOffset();
|
|
|
|
lua_settop(tolua_S, 1);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:calulateRotationOffset",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_PUParticleSystem3D_calulateRotationOffset'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_PUParticleSystem3D_getMaxVelocity(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::PUParticleSystem3D* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_PUParticleSystem3D_getMaxVelocity'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_PUParticleSystem3D_getMaxVelocity'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
double ret = cobj->getMaxVelocity();
|
|
|
|
tolua_pushnumber(tolua_S,(lua_Number)ret);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:getMaxVelocity",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_PUParticleSystem3D_getMaxVelocity'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_PUParticleSystem3D_forceUpdate(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::PUParticleSystem3D* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_PUParticleSystem3D_forceUpdate'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 1)
|
|
|
|
{
|
|
|
|
double arg0;
|
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PUParticleSystem3D:forceUpdate");
|
2015-09-29 15:45:48 +08:00
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_PUParticleSystem3D_forceUpdate'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
cobj->forceUpdate(arg0);
|
|
|
|
lua_settop(tolua_S, 1);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:forceUpdate",argc, 1);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_PUParticleSystem3D_forceUpdate'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_PUParticleSystem3D_getTimeElapsedSinceStart(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::PUParticleSystem3D* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_PUParticleSystem3D_getTimeElapsedSinceStart'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_PUParticleSystem3D_getTimeElapsedSinceStart'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
double ret = cobj->getTimeElapsedSinceStart();
|
|
|
|
tolua_pushnumber(tolua_S,(lua_Number)ret);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:getTimeElapsedSinceStart",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_PUParticleSystem3D_getTimeElapsedSinceStart'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_PUParticleSystem3D_removeAllBehaviourTemplate(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::PUParticleSystem3D* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_PUParticleSystem3D_removeAllBehaviourTemplate'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_PUParticleSystem3D_removeAllBehaviourTemplate'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
cobj->removeAllBehaviourTemplate();
|
|
|
|
lua_settop(tolua_S, 1);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:removeAllBehaviourTemplate",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_PUParticleSystem3D_removeAllBehaviourTemplate'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_PUParticleSystem3D_getEmittedEmitterQuota(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::PUParticleSystem3D* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_PUParticleSystem3D_getEmittedEmitterQuota'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_PUParticleSystem3D_getEmittedEmitterQuota'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
unsigned int ret = cobj->getEmittedEmitterQuota();
|
|
|
|
tolua_pushnumber(tolua_S,(lua_Number)ret);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:getEmittedEmitterQuota",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_PUParticleSystem3D_getEmittedEmitterQuota'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_PUParticleSystem3D_forceEmission(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::PUParticleSystem3D* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_PUParticleSystem3D_forceEmission'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 2)
|
|
|
|
{
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::PUEmitter* arg0;
|
2015-09-29 15:45:48 +08:00
|
|
|
unsigned int arg1;
|
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_object<axis::PUEmitter>(tolua_S, 2, "ax.PUEmitter",&arg0, "ax.PUParticleSystem3D:forceEmission");
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_uint32(tolua_S, 3,&arg1, "ax.PUParticleSystem3D:forceEmission");
|
2015-09-29 15:45:48 +08:00
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_PUParticleSystem3D_forceEmission'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
cobj->forceEmission(arg0, arg1);
|
|
|
|
lua_settop(tolua_S, 1);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:forceEmission",argc, 2);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_PUParticleSystem3D_forceEmission'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_PUParticleSystem3D_addListener(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::PUParticleSystem3D* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_PUParticleSystem3D_addListener'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 1)
|
|
|
|
{
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::PUListener* arg0;
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_object<axis::PUListener>(tolua_S, 2, "ax.PUListener",&arg0, "ax.PUParticleSystem3D:addListener");
|
2015-09-29 15:45:48 +08:00
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_PUParticleSystem3D_addListener'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
cobj->addListener(arg0);
|
|
|
|
lua_settop(tolua_S, 1);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:addListener",argc, 1);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_PUParticleSystem3D_addListener'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_PUParticleSystem3D_isMarkedForEmission(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::PUParticleSystem3D* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_PUParticleSystem3D_isMarkedForEmission'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_PUParticleSystem3D_isMarkedForEmission'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
bool ret = cobj->isMarkedForEmission();
|
|
|
|
tolua_pushboolean(tolua_S,(bool)ret);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:isMarkedForEmission",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_PUParticleSystem3D_isMarkedForEmission'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_PUParticleSystem3D_getDefaultWidth(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::PUParticleSystem3D* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_PUParticleSystem3D_getDefaultWidth'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_PUParticleSystem3D_getDefaultWidth'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
2016-04-07 15:46:49 +08:00
|
|
|
double ret = cobj->getDefaultWidth();
|
2015-09-29 15:45:48 +08:00
|
|
|
tolua_pushnumber(tolua_S,(lua_Number)ret);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:getDefaultWidth",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_PUParticleSystem3D_getDefaultWidth'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_PUParticleSystem3D_setEmittedEmitterQuota(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::PUParticleSystem3D* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_PUParticleSystem3D_setEmittedEmitterQuota'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 1)
|
|
|
|
{
|
|
|
|
unsigned int arg0;
|
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_uint32(tolua_S, 2,&arg0, "ax.PUParticleSystem3D:setEmittedEmitterQuota");
|
2015-09-29 15:45:48 +08:00
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_PUParticleSystem3D_setEmittedEmitterQuota'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
cobj->setEmittedEmitterQuota(arg0);
|
|
|
|
lua_settop(tolua_S, 1);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:setEmittedEmitterQuota",argc, 1);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_PUParticleSystem3D_setEmittedEmitterQuota'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_PUParticleSystem3D_setMarkedForEmission(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::PUParticleSystem3D* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_PUParticleSystem3D_setMarkedForEmission'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 1)
|
|
|
|
{
|
|
|
|
bool arg0;
|
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.PUParticleSystem3D:setMarkedForEmission");
|
2015-09-29 15:45:48 +08:00
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_PUParticleSystem3D_setMarkedForEmission'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
cobj->setMarkedForEmission(arg0);
|
|
|
|
lua_settop(tolua_S, 1);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:setMarkedForEmission",argc, 1);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_PUParticleSystem3D_setMarkedForEmission'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_PUParticleSystem3D_clone(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::PUParticleSystem3D* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_PUParticleSystem3D_clone'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_PUParticleSystem3D_clone'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::PUParticleSystem3D* ret = cobj->clone();
|
2022-07-12 21:31:54 +08:00
|
|
|
object_to_luaval<axis::PUParticleSystem3D>(tolua_S, "ax.PUParticleSystem3D",(axis::PUParticleSystem3D*)ret);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:clone",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_PUParticleSystem3D_clone'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_PUParticleSystem3D_addEmitter(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::PUParticleSystem3D* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_PUParticleSystem3D_addEmitter'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 1)
|
|
|
|
{
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::PUEmitter* arg0;
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_object<axis::PUEmitter>(tolua_S, 2, "ax.PUEmitter",&arg0, "ax.PUParticleSystem3D:addEmitter");
|
2015-09-29 15:45:48 +08:00
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_PUParticleSystem3D_addEmitter'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
cobj->addEmitter(arg0);
|
|
|
|
lua_settop(tolua_S, 1);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:addEmitter",argc, 1);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_PUParticleSystem3D_addEmitter'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_PUParticleSystem3D_addBehaviourTemplate(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::PUParticleSystem3D* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_PUParticleSystem3D_addBehaviourTemplate'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 1)
|
|
|
|
{
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::PUBehaviour* arg0;
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_object<axis::PUBehaviour>(tolua_S, 2, "ax.PUBehaviour",&arg0, "ax.PUParticleSystem3D:addBehaviourTemplate");
|
2015-09-29 15:45:48 +08:00
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_PUParticleSystem3D_addBehaviourTemplate'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
cobj->addBehaviourTemplate(arg0);
|
|
|
|
lua_settop(tolua_S, 1);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:addBehaviourTemplate",argc, 1);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_PUParticleSystem3D_addBehaviourTemplate'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_PUParticleSystem3D_setDefaultWidth(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::PUParticleSystem3D* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_PUParticleSystem3D_setDefaultWidth'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 1)
|
|
|
|
{
|
|
|
|
double arg0;
|
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PUParticleSystem3D:setDefaultWidth");
|
2015-09-29 15:45:48 +08:00
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_PUParticleSystem3D_setDefaultWidth'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
cobj->setDefaultWidth(arg0);
|
|
|
|
lua_settop(tolua_S, 1);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:setDefaultWidth",argc, 1);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_PUParticleSystem3D_setDefaultWidth'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_PUParticleSystem3D_copyAttributesTo(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::PUParticleSystem3D* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_PUParticleSystem3D_copyAttributesTo'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 1)
|
|
|
|
{
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::PUParticleSystem3D* arg0;
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_object<axis::PUParticleSystem3D>(tolua_S, 2, "ax.PUParticleSystem3D",&arg0, "ax.PUParticleSystem3D:copyAttributesTo");
|
2015-09-29 15:45:48 +08:00
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_PUParticleSystem3D_copyAttributesTo'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
cobj->copyAttributesTo(arg0);
|
|
|
|
lua_settop(tolua_S, 1);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:copyAttributesTo",argc, 1);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_PUParticleSystem3D_copyAttributesTo'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_PUParticleSystem3D_setMaterialName(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::PUParticleSystem3D* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_PUParticleSystem3D_setMaterialName'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 1)
|
|
|
|
{
|
2021-12-28 15:46:32 +08:00
|
|
|
std::string_view arg0;
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.PUParticleSystem3D:setMaterialName");
|
2015-09-29 15:45:48 +08:00
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_PUParticleSystem3D_setMaterialName'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
cobj->setMaterialName(arg0);
|
|
|
|
lua_settop(tolua_S, 1);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:setMaterialName",argc, 1);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_PUParticleSystem3D_setMaterialName'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_PUParticleSystem3D_getParentParticleSystem(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::PUParticleSystem3D* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_PUParticleSystem3D_getParentParticleSystem'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_PUParticleSystem3D_getParentParticleSystem'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::PUParticleSystem3D* ret = cobj->getParentParticleSystem();
|
2022-07-12 21:31:54 +08:00
|
|
|
object_to_luaval<axis::PUParticleSystem3D>(tolua_S, "ax.PUParticleSystem3D",(axis::PUParticleSystem3D*)ret);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:getParentParticleSystem",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_PUParticleSystem3D_getParentParticleSystem'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_PUParticleSystem3D_removeListener(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::PUParticleSystem3D* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_PUParticleSystem3D_removeListener'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 1)
|
|
|
|
{
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::PUListener* arg0;
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_object<axis::PUListener>(tolua_S, 2, "ax.PUListener",&arg0, "ax.PUParticleSystem3D:removeListener");
|
2015-09-29 15:45:48 +08:00
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_PUParticleSystem3D_removeListener'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
cobj->removeListener(arg0);
|
|
|
|
lua_settop(tolua_S, 1);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:removeListener",argc, 1);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_PUParticleSystem3D_removeListener'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_PUParticleSystem3D_setMaxVelocity(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::PUParticleSystem3D* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_PUParticleSystem3D_setMaxVelocity'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 1)
|
|
|
|
{
|
|
|
|
double arg0;
|
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PUParticleSystem3D:setMaxVelocity");
|
2015-09-29 15:45:48 +08:00
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_PUParticleSystem3D_setMaxVelocity'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
cobj->setMaxVelocity(arg0);
|
|
|
|
lua_settop(tolua_S, 1);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:setMaxVelocity",argc, 1);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_PUParticleSystem3D_setMaxVelocity'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_PUParticleSystem3D_getDefaultHeight(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::PUParticleSystem3D* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_PUParticleSystem3D_getDefaultHeight'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_PUParticleSystem3D_getDefaultHeight'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
2016-04-07 15:46:49 +08:00
|
|
|
double ret = cobj->getDefaultHeight();
|
2015-09-29 15:45:48 +08:00
|
|
|
tolua_pushnumber(tolua_S,(lua_Number)ret);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:getDefaultHeight",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_PUParticleSystem3D_getDefaultHeight'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_PUParticleSystem3D_getDerivedPosition(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::PUParticleSystem3D* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_PUParticleSystem3D_getDerivedPosition'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_PUParticleSystem3D_getDerivedPosition'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::Vec3 ret = cobj->getDerivedPosition();
|
2015-09-29 15:45:48 +08:00
|
|
|
vec3_to_luaval(tolua_S, ret);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:getDerivedPosition",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_PUParticleSystem3D_getDerivedPosition'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_PUParticleSystem3D_rotationOffset(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::PUParticleSystem3D* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_PUParticleSystem3D_rotationOffset'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 1)
|
|
|
|
{
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::Vec3 arg0;
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_vec3(tolua_S, 2, &arg0, "ax.PUParticleSystem3D:rotationOffset");
|
2015-09-29 15:45:48 +08:00
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_PUParticleSystem3D_rotationOffset'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
cobj->rotationOffset(arg0);
|
|
|
|
lua_settop(tolua_S, 1);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:rotationOffset",argc, 1);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_PUParticleSystem3D_rotationOffset'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_PUParticleSystem3D_removeAllEmitter(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::PUParticleSystem3D* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_PUParticleSystem3D_removeAllEmitter'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_PUParticleSystem3D_removeAllEmitter'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
cobj->removeAllEmitter();
|
|
|
|
lua_settop(tolua_S, 1);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:removeAllEmitter",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_PUParticleSystem3D_removeAllEmitter'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_PUParticleSystem3D_setParticleSystemScaleVelocity(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::PUParticleSystem3D* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_PUParticleSystem3D_setParticleSystemScaleVelocity'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 1)
|
|
|
|
{
|
|
|
|
double arg0;
|
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PUParticleSystem3D:setParticleSystemScaleVelocity");
|
2015-09-29 15:45:48 +08:00
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_PUParticleSystem3D_setParticleSystemScaleVelocity'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
cobj->setParticleSystemScaleVelocity(arg0);
|
|
|
|
lua_settop(tolua_S, 1);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:setParticleSystemScaleVelocity",argc, 1);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_PUParticleSystem3D_setParticleSystemScaleVelocity'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_PUParticleSystem3D_getDerivedScale(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::PUParticleSystem3D* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_PUParticleSystem3D_getDerivedScale'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_PUParticleSystem3D_getDerivedScale'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::Vec3 ret = cobj->getDerivedScale();
|
2015-09-29 15:45:48 +08:00
|
|
|
vec3_to_luaval(tolua_S, ret);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:getDerivedScale",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_PUParticleSystem3D_getDerivedScale'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_PUParticleSystem3D_setDefaultHeight(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::PUParticleSystem3D* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_PUParticleSystem3D_setDefaultHeight'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 1)
|
|
|
|
{
|
|
|
|
double arg0;
|
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PUParticleSystem3D:setDefaultHeight");
|
2015-09-29 15:45:48 +08:00
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_PUParticleSystem3D_setDefaultHeight'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
cobj->setDefaultHeight(arg0);
|
|
|
|
lua_settop(tolua_S, 1);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:setDefaultHeight",argc, 1);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_PUParticleSystem3D_setDefaultHeight'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_PUParticleSystem3D_removeAllListener(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::PUParticleSystem3D* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_PUParticleSystem3D_removeAllListener'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_PUParticleSystem3D_removeAllListener'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
cobj->removeAllListener();
|
|
|
|
lua_settop(tolua_S, 1);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:removeAllListener",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_PUParticleSystem3D_removeAllListener'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_PUParticleSystem3D_initSystem(lua_State* tolua_S)
|
2015-11-26 01:29:11 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::PUParticleSystem3D* cobj = nullptr;
|
2015-11-26 01:29:11 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-11-26 01:29:11 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0);
|
2015-11-26 01:29:11 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_PUParticleSystem3D_initSystem'", nullptr);
|
2015-11-26 01:29:11 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 1)
|
|
|
|
{
|
2021-12-28 15:46:32 +08:00
|
|
|
std::string_view arg0;
|
2015-11-26 01:29:11 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.PUParticleSystem3D:initSystem");
|
2015-11-26 01:29:11 +08:00
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_PUParticleSystem3D_initSystem'", nullptr);
|
2015-11-26 01:29:11 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
bool ret = cobj->initSystem(arg0);
|
|
|
|
tolua_pushboolean(tolua_S,(bool)ret);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:initSystem",argc, 1);
|
2015-11-26 01:29:11 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_PUParticleSystem3D_initSystem'.",&tolua_err);
|
2015-11-26 01:29:11 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_PUParticleSystem3D_makeParticleLocal(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::PUParticleSystem3D* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_PUParticleSystem3D_makeParticleLocal'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 1)
|
|
|
|
{
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::PUParticle3D* arg0;
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#pragma warning NO CONVERSION TO NATIVE FOR PUParticle3D*
|
|
|
|
ok = false;
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_PUParticleSystem3D_makeParticleLocal'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
bool ret = cobj->makeParticleLocal(arg0);
|
|
|
|
tolua_pushboolean(tolua_S,(bool)ret);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:makeParticleLocal",argc, 1);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_PUParticleSystem3D_makeParticleLocal'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_PUParticleSystem3D_removerAllObserver(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::PUParticleSystem3D* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_PUParticleSystem3D_removerAllObserver'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_PUParticleSystem3D_removerAllObserver'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
cobj->removerAllObserver();
|
|
|
|
lua_settop(tolua_S, 1);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:removerAllObserver",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_PUParticleSystem3D_removerAllObserver'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_PUParticleSystem3D_setDefaultDepth(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::PUParticleSystem3D* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_PUParticleSystem3D_setDefaultDepth'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 1)
|
|
|
|
{
|
|
|
|
double arg0;
|
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.PUParticleSystem3D:setDefaultDepth");
|
2015-09-29 15:45:48 +08:00
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_PUParticleSystem3D_setDefaultDepth'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
cobj->setDefaultDepth(arg0);
|
|
|
|
lua_settop(tolua_S, 1);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:setDefaultDepth",argc, 1);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_PUParticleSystem3D_setDefaultDepth'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_PUParticleSystem3D_addObserver(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::PUParticleSystem3D* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axis_extension_PUParticleSystem3D_addObserver'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 1)
|
|
|
|
{
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::PUObserver* arg0;
|
2015-09-29 15:45:48 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_object<axis::PUObserver>(tolua_S, 2, "ax.PUObserver",&arg0, "ax.PUParticleSystem3D:addObserver");
|
2015-09-29 15:45:48 +08:00
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_PUParticleSystem3D_addObserver'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
cobj->addObserver(arg0);
|
|
|
|
lua_settop(tolua_S, 1);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:addObserver",argc, 1);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_PUParticleSystem3D_addObserver'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_PUParticleSystem3D_create(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
|
|
|
bool ok = true;
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertable(tolua_S,1,"ax.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror;
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
|
|
|
|
do
|
|
|
|
{
|
|
|
|
if (argc == 1)
|
|
|
|
{
|
2021-12-28 15:46:32 +08:00
|
|
|
std::string_view arg0;
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.PUParticleSystem3D:create");
|
2015-09-29 15:45:48 +08:00
|
|
|
if (!ok) { break; }
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::PUParticleSystem3D* ret = axis::PUParticleSystem3D::create(arg0);
|
2022-07-12 21:31:54 +08:00
|
|
|
object_to_luaval<axis::PUParticleSystem3D>(tolua_S, "ax.PUParticleSystem3D",(axis::PUParticleSystem3D*)ret);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
} while (0);
|
|
|
|
ok = true;
|
|
|
|
do
|
|
|
|
{
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::PUParticleSystem3D* ret = axis::PUParticleSystem3D::create();
|
2022-07-12 21:31:54 +08:00
|
|
|
object_to_luaval<axis::PUParticleSystem3D>(tolua_S, "ax.PUParticleSystem3D",(axis::PUParticleSystem3D*)ret);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
} while (0);
|
|
|
|
ok = true;
|
|
|
|
do
|
|
|
|
{
|
|
|
|
if (argc == 2)
|
|
|
|
{
|
2021-12-28 15:46:32 +08:00
|
|
|
std::string_view arg0;
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.PUParticleSystem3D:create");
|
2015-09-29 15:45:48 +08:00
|
|
|
if (!ok) { break; }
|
2021-12-28 15:46:32 +08:00
|
|
|
std::string_view arg1;
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ax.PUParticleSystem3D:create");
|
2015-09-29 15:45:48 +08:00
|
|
|
if (!ok) { break; }
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::PUParticleSystem3D* ret = axis::PUParticleSystem3D::create(arg0, arg1);
|
2022-07-12 21:31:54 +08:00
|
|
|
object_to_luaval<axis::PUParticleSystem3D>(tolua_S, "ax.PUParticleSystem3D",(axis::PUParticleSystem3D*)ret);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
} while (0);
|
|
|
|
ok = true;
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "ax.PUParticleSystem3D:create",argc, 2);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_lerror:
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_PUParticleSystem3D_create'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
return 0;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_axis_extension_PUParticleSystem3D_constructor(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-07-11 17:50:21 +08:00
|
|
|
axis::PUParticleSystem3D* cobj = nullptr;
|
2015-09-29 15:45:48 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axis_extension_PUParticleSystem3D_constructor'", nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
}
|
2022-07-11 17:50:21 +08:00
|
|
|
cobj = new axis::PUParticleSystem3D();
|
2015-09-29 15:45:48 +08:00
|
|
|
cobj->autorelease();
|
|
|
|
int ID = (int)cobj->_ID ;
|
|
|
|
int* luaID = &cobj->_luaID ;
|
2022-07-12 21:31:54 +08:00
|
|
|
toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ax.PUParticleSystem3D");
|
2015-09-29 15:45:48 +08:00
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.PUParticleSystem3D:PUParticleSystem3D",argc, 0);
|
2015-09-29 15:45:48 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
#if COCOS2D_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axis_extension_PUParticleSystem3D_constructor'.",&tolua_err);
|
2015-09-29 15:45:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
static int lua_axis_extension_PUParticleSystem3D_finalize(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
printf("luabindings: finalizing LUA object (PUParticleSystem3D)");
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
int lua_register_axis_extension_PUParticleSystem3D(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_usertype(tolua_S,"ax.PUParticleSystem3D");
|
|
|
|
tolua_cclass(tolua_S,"PUParticleSystem3D","ax.PUParticleSystem3D","ax.ParticleSystem3D",nullptr);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
tolua_beginmodule(tolua_S,"PUParticleSystem3D");
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_function(tolua_S,"new",lua_axis_extension_PUParticleSystem3D_constructor);
|
|
|
|
tolua_function(tolua_S,"initWithFilePath",lua_axis_extension_PUParticleSystem3D_initWithFilePath);
|
|
|
|
tolua_function(tolua_S,"getParticleSystemScaleVelocity",lua_axis_extension_PUParticleSystem3D_getParticleSystemScaleVelocity);
|
|
|
|
tolua_function(tolua_S,"setEmittedSystemQuota",lua_axis_extension_PUParticleSystem3D_setEmittedSystemQuota);
|
|
|
|
tolua_function(tolua_S,"getDefaultDepth",lua_axis_extension_PUParticleSystem3D_getDefaultDepth);
|
|
|
|
tolua_function(tolua_S,"getEmittedSystemQuota",lua_axis_extension_PUParticleSystem3D_getEmittedSystemQuota);
|
|
|
|
tolua_function(tolua_S,"initWithFilePathAndMaterialPath",lua_axis_extension_PUParticleSystem3D_initWithFilePathAndMaterialPath);
|
|
|
|
tolua_function(tolua_S,"clearAllParticles",lua_axis_extension_PUParticleSystem3D_clearAllParticles);
|
|
|
|
tolua_function(tolua_S,"getMaterialName",lua_axis_extension_PUParticleSystem3D_getMaterialName);
|
|
|
|
tolua_function(tolua_S,"calulateRotationOffset",lua_axis_extension_PUParticleSystem3D_calulateRotationOffset);
|
|
|
|
tolua_function(tolua_S,"getMaxVelocity",lua_axis_extension_PUParticleSystem3D_getMaxVelocity);
|
|
|
|
tolua_function(tolua_S,"forceUpdate",lua_axis_extension_PUParticleSystem3D_forceUpdate);
|
|
|
|
tolua_function(tolua_S,"getTimeElapsedSinceStart",lua_axis_extension_PUParticleSystem3D_getTimeElapsedSinceStart);
|
|
|
|
tolua_function(tolua_S,"removeAllBehaviourTemplate",lua_axis_extension_PUParticleSystem3D_removeAllBehaviourTemplate);
|
|
|
|
tolua_function(tolua_S,"getEmittedEmitterQuota",lua_axis_extension_PUParticleSystem3D_getEmittedEmitterQuota);
|
|
|
|
tolua_function(tolua_S,"forceEmission",lua_axis_extension_PUParticleSystem3D_forceEmission);
|
|
|
|
tolua_function(tolua_S,"addListener",lua_axis_extension_PUParticleSystem3D_addListener);
|
|
|
|
tolua_function(tolua_S,"isMarkedForEmission",lua_axis_extension_PUParticleSystem3D_isMarkedForEmission);
|
|
|
|
tolua_function(tolua_S,"getDefaultWidth",lua_axis_extension_PUParticleSystem3D_getDefaultWidth);
|
|
|
|
tolua_function(tolua_S,"setEmittedEmitterQuota",lua_axis_extension_PUParticleSystem3D_setEmittedEmitterQuota);
|
|
|
|
tolua_function(tolua_S,"setMarkedForEmission",lua_axis_extension_PUParticleSystem3D_setMarkedForEmission);
|
|
|
|
tolua_function(tolua_S,"clone",lua_axis_extension_PUParticleSystem3D_clone);
|
|
|
|
tolua_function(tolua_S,"addEmitter",lua_axis_extension_PUParticleSystem3D_addEmitter);
|
|
|
|
tolua_function(tolua_S,"addBehaviourTemplate",lua_axis_extension_PUParticleSystem3D_addBehaviourTemplate);
|
|
|
|
tolua_function(tolua_S,"setDefaultWidth",lua_axis_extension_PUParticleSystem3D_setDefaultWidth);
|
|
|
|
tolua_function(tolua_S,"copyAttributesTo",lua_axis_extension_PUParticleSystem3D_copyAttributesTo);
|
|
|
|
tolua_function(tolua_S,"setMaterialName",lua_axis_extension_PUParticleSystem3D_setMaterialName);
|
|
|
|
tolua_function(tolua_S,"getParentParticleSystem",lua_axis_extension_PUParticleSystem3D_getParentParticleSystem);
|
|
|
|
tolua_function(tolua_S,"removeListener",lua_axis_extension_PUParticleSystem3D_removeListener);
|
|
|
|
tolua_function(tolua_S,"setMaxVelocity",lua_axis_extension_PUParticleSystem3D_setMaxVelocity);
|
|
|
|
tolua_function(tolua_S,"getDefaultHeight",lua_axis_extension_PUParticleSystem3D_getDefaultHeight);
|
|
|
|
tolua_function(tolua_S,"getDerivedPosition",lua_axis_extension_PUParticleSystem3D_getDerivedPosition);
|
|
|
|
tolua_function(tolua_S,"rotationOffset",lua_axis_extension_PUParticleSystem3D_rotationOffset);
|
|
|
|
tolua_function(tolua_S,"removeAllEmitter",lua_axis_extension_PUParticleSystem3D_removeAllEmitter);
|
|
|
|
tolua_function(tolua_S,"setParticleSystemScaleVelocity",lua_axis_extension_PUParticleSystem3D_setParticleSystemScaleVelocity);
|
|
|
|
tolua_function(tolua_S,"getDerivedScale",lua_axis_extension_PUParticleSystem3D_getDerivedScale);
|
|
|
|
tolua_function(tolua_S,"setDefaultHeight",lua_axis_extension_PUParticleSystem3D_setDefaultHeight);
|
|
|
|
tolua_function(tolua_S,"removeAllListener",lua_axis_extension_PUParticleSystem3D_removeAllListener);
|
|
|
|
tolua_function(tolua_S,"initSystem",lua_axis_extension_PUParticleSystem3D_initSystem);
|
|
|
|
tolua_function(tolua_S,"makeParticleLocal",lua_axis_extension_PUParticleSystem3D_makeParticleLocal);
|
|
|
|
tolua_function(tolua_S,"removerAllObserver",lua_axis_extension_PUParticleSystem3D_removerAllObserver);
|
|
|
|
tolua_function(tolua_S,"setDefaultDepth",lua_axis_extension_PUParticleSystem3D_setDefaultDepth);
|
|
|
|
tolua_function(tolua_S,"addObserver",lua_axis_extension_PUParticleSystem3D_addObserver);
|
|
|
|
tolua_function(tolua_S,"create", lua_axis_extension_PUParticleSystem3D_create);
|
2015-09-29 15:45:48 +08:00
|
|
|
tolua_endmodule(tolua_S);
|
2022-07-11 17:50:21 +08:00
|
|
|
auto typeName = typeid(axis::PUParticleSystem3D).name(); // rtti is literal storage
|
2022-07-12 21:31:54 +08:00
|
|
|
g_luaType[reinterpret_cast<uintptr_t>(typeName)] = "ax.PUParticleSystem3D";
|
|
|
|
g_typeCast[typeName] = "ax.PUParticleSystem3D";
|
2015-09-29 15:45:48 +08:00
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
TOLUA_API int register_all_axis_extension(lua_State* tolua_S)
|
2015-09-29 15:45:48 +08:00
|
|
|
{
|
|
|
|
tolua_open(tolua_S);
|
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_module(tolua_S,"ax",0);
|
|
|
|
tolua_beginmodule(tolua_S,"ax");
|
|
|
|
|
|
|
|
lua_register_axis_extension_AssetsManagerEx(tolua_S);
|
|
|
|
lua_register_axis_extension_EventListenerAssetsManagerEx(tolua_S);
|
|
|
|
lua_register_axis_extension_AssetsManager(tolua_S);
|
|
|
|
lua_register_axis_extension_Manifest(tolua_S);
|
|
|
|
lua_register_axis_extension_EventAssetsManagerEx(tolua_S);
|
|
|
|
lua_register_axis_extension_ParticleSystem3D(tolua_S);
|
|
|
|
lua_register_axis_extension_PUParticleSystem3D(tolua_S);
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
tolua_endmodule(tolua_S);
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|