/* Open function */ TOLUA_API int tolua_common_open (lua_State* tolua_S) { tolua_open(tolua_S); tolua_reg_types(tolua_S); tolua_module(tolua_S,NULL,0); tolua_beginmodule(tolua_S,NULL); tolua_constant(tolua_S,"DENSITY_LDPI",DENSITY_LDPI); tolua_constant(tolua_S,"DENSITY_MDPI",DENSITY_MDPI); tolua_constant(tolua_S,"DENSITY_HDPI",DENSITY_HDPI); tolua_constant(tolua_S,"SCALE_MODE_BY_DENSITY",SCALE_MODE_BY_DENSITY); tolua_constant(tolua_S,"SCALE_MODE_BASE_SIZE_FIT_XY",SCALE_MODE_BASE_SIZE_FIT_XY); tolua_cclass(tolua_S,"wyDevice","wyDevice","",NULL); tolua_beginmodule(tolua_S,"wyDevice"); tolua_variable(tolua_S,"scaleMode",tolua_get_wyDevice_scaleMode,tolua_set_wyDevice_scaleMode); tolua_variable(tolua_S,"density",tolua_get_wyDevice_density,tolua_set_wyDevice_density); tolua_variable(tolua_S,"scaledDensity",tolua_get_wyDevice_scaledDensity,tolua_set_wyDevice_scaledDensity); tolua_variable(tolua_S,"defaultInDensity",tolua_get_wyDevice_defaultInDensity,tolua_set_wyDevice_defaultInDensity); tolua_variable(tolua_S,"apiLevel",tolua_get_wyDevice_apiLevel,tolua_set_wyDevice_apiLevel); tolua_variable(tolua_S,"maxTextureSize",tolua_get_wyDevice_maxTextureSize,tolua_set_wyDevice_maxTextureSize); tolua_variable(tolua_S,"baseWidth",tolua_get_wyDevice_baseWidth,tolua_set_wyDevice_baseWidth); tolua_variable(tolua_S,"baseHeight",tolua_get_wyDevice_baseHeight,tolua_set_wyDevice_baseHeight); tolua_variable(tolua_S,"baseScaleX",tolua_get_wyDevice_baseScaleX,tolua_set_wyDevice_baseScaleX); tolua_variable(tolua_S,"baseScaleY",tolua_get_wyDevice_baseScaleY,tolua_set_wyDevice_baseScaleY); tolua_variable(tolua_S,"winWidth",tolua_get_wyDevice_winWidth,tolua_set_wyDevice_winWidth); tolua_variable(tolua_S,"winHeight",tolua_get_wyDevice_winHeight,tolua_set_wyDevice_winHeight); tolua_variable(tolua_S,"realWidth",tolua_get_wyDevice_realWidth,tolua_set_wyDevice_realWidth); tolua_variable(tolua_S,"realHeight",tolua_get_wyDevice_realHeight,tolua_set_wyDevice_realHeight); tolua_function(tolua_S,"getLanguage",tolua_common_wyDevice_getLanguage00); tolua_function(tolua_S,"getCountry",tolua_common_wyDevice_getCountry00); tolua_function(tolua_S,"getDeviceId",tolua_common_wyDevice_getDeviceId00); tolua_endmodule(tolua_S); tolua_endmodule(tolua_S); return 1; }
/* Open function */ TOLUA_API int tolua_Label_open (lua_State* tolua_S) { tolua_open(tolua_S); tolua_reg_types(tolua_S); tolua_module(tolua_S,NULL,0); tolua_beginmodule(tolua_S,NULL); tolua_constant(tolua_S,"SMALL",SMALL); tolua_constant(tolua_S,"MEDIUM",MEDIUM); tolua_constant(tolua_S,"BIG",BIG); #ifdef __cplusplus tolua_cclass(tolua_S,"Label","Label","CCLabelTTF",tolua_collect_Label); #else tolua_cclass(tolua_S,"Label","Label","CCLabelTTF",NULL); #endif tolua_beginmodule(tolua_S,"Label"); tolua_function(tolua_S,"new",tolua_Label_Label_new00); tolua_function(tolua_S,"new_local",tolua_Label_Label_new00_local); tolua_function(tolua_S,".call",tolua_Label_Label_new00_local); tolua_function(tolua_S,"delete",tolua_Label_Label_delete00); tolua_function(tolua_S,"create",tolua_Label_Label_create00); tolua_function(tolua_S,"setPosition",tolua_Label_Label_setPosition00); tolua_endmodule(tolua_S); tolua_endmodule(tolua_S); return 1; }
/* Open function */ int tolua_quest_open (lua_State* tolua_S) { tolua_open(tolua_S); toluaI_reg_types(tolua_S); tolua_constant(tolua_S,NULL,"QUEST_STATUS_IGNORED",QUEST_STATUS_IGNORED); tolua_constant(tolua_S,NULL,"QUEST_STATUS_UNTAKEN",QUEST_STATUS_UNTAKEN); tolua_constant(tolua_S,NULL,"QUEST_STATUS_TAKEN",QUEST_STATUS_TAKEN); tolua_constant(tolua_S,NULL,"QUEST_STATUS_COMPLETED",QUEST_STATUS_COMPLETED); tolua_constant(tolua_S,NULL,"QUEST_STATUS_REWARDED",QUEST_STATUS_REWARDED); tolua_constant(tolua_S,NULL,"QUEST_STATUS_FAILED",QUEST_STATUS_FAILED); tolua_constant(tolua_S,NULL,"QUEST_STATUS_FINISHED",QUEST_STATUS_FINISHED); tolua_constant(tolua_S,NULL,"QUEST_STATUS_FAILED_DONE",QUEST_STATUS_FAILED_DONE); tolua_cclass(tolua_S,"quest_type",""); tolua_tablevar(tolua_S,"quest_type","name",toluaI_get_quest_quest_type_name,NULL); tolua_tablevar(tolua_S,"quest_type","silent",toluaI_get_quest_quest_type_silent,toluaI_set_quest_quest_type_silent); tolua_tablevar(tolua_S,"quest_type","dynamic_desc",toluaI_get_quest_quest_type_dynamic_desc,toluaI_set_quest_quest_type_dynamic_desc); tolua_tablevar(tolua_S,"quest_type","status",toluaI_get_quest_quest_type_status,toluaI_set_quest_quest_type_status); tolua_tablevar(tolua_S,"quest_type","level",toluaI_get_quest_quest_type_level,toluaI_set_quest_quest_type_level); tolua_tablevar(tolua_S,"quest_type","type",toluaI_get_quest_quest_type_type,toluaI_set_quest_quest_type_type); tolua_function(tolua_S,"quest_type","init",toluaI_quest_quest_type_init00); tolua_globalvar(tolua_S,"max_q_idx",toluaI_get_quest_max_q_idx,toluaI_set_quest_max_q_idx); tolua_globalarray(tolua_S,"quest_aux",toluaI_get_quest_quest_aux,toluaI_set_quest_quest_aux); tolua_function(tolua_S,NULL,"quest",toluaI_quest_quest00); tolua_function(tolua_S,NULL,"new_quest",toluaI_quest_new_quest00); tolua_function(tolua_S,NULL,"quest_set_desc",toluaI_quest_quest_set_desc00); tolua_function(tolua_S,NULL,"quest_get_desc",toluaI_quest_quest_get_desc00); return 1; }
/* Open function */ TOLUA_API int tolua_gl_open (lua_State* tolua_S) { tolua_open(tolua_S); tolua_reg_types(tolua_S); tolua_module(tolua_S,NULL,0); tolua_beginmodule(tolua_S,NULL); tolua_module(tolua_S,"gl",0); tolua_beginmodule(tolua_S,"gl"); tolua_constant(tolua_S,"GL_DEPTH_BUFFER_BIT",GL_DEPTH_BUFFER_BIT); tolua_constant(tolua_S,"GL_STENCIL_BUFFER_BIT",GL_STENCIL_BUFFER_BIT); tolua_constant(tolua_S,"GL_COLOR_BUFFER_BIT",GL_COLOR_BUFFER_BIT); tolua_function(tolua_S,"glClearColor",tolua_gl_gl_glClearColor00); tolua_function(tolua_S,"glClear",tolua_gl_gl_glClear00); tolua_endmodule(tolua_S); tolua_endmodule(tolua_S); return 1; }
/* Open function */ TOLUA_API int tolua_ItemEnumToLua_open (lua_State* tolua_S) { tolua_open(tolua_S); tolua_reg_types(tolua_S); tolua_module(tolua_S,NULL,0); tolua_beginmodule(tolua_S,NULL); tolua_constant(tolua_S,"PLAIN_WATER",PLAIN_WATER); tolua_constant(tolua_S,"POTION",POTION); tolua_constant(tolua_S,"HI_POTION",HI_POTION); tolua_constant(tolua_S,"SWORD",SWORD); tolua_constant(tolua_S,"KATANA",KATANA); tolua_constant(tolua_S,"SPEAR",SPEAR); tolua_constant(tolua_S,"HIDE_ARMOR",HIDE_ARMOR); tolua_constant(tolua_S,"CHAINMAIL",CHAINMAIL); tolua_constant(tolua_S,"NUM_ITEMS",NUM_ITEMS); tolua_endmodule(tolua_S); return 1; }
/* Open function */ TOLUA_API int tolua_StatsEnumToLua_open (lua_State* tolua_S) { tolua_open(tolua_S); tolua_reg_types(tolua_S); tolua_module(tolua_S,NULL,0); tolua_beginmodule(tolua_S,NULL); tolua_constant(tolua_S,"LEVEL",LEVEL); tolua_constant(tolua_S,"HP",HP); tolua_constant(tolua_S,"APOW",APOW); tolua_constant(tolua_S,"MPOW",MPOW); tolua_constant(tolua_S,"ADEF",ADEF); tolua_constant(tolua_S,"MDEF",MDEF); tolua_endmodule(tolua_S); return 1; }
//init TOLUA_API int tolua_GameApi_open(lua_State *tolua_S) { tolua_open(tolua_S); tolua_reg_types(tolua_S); tolua_module(tolua_S, NULL, 0); tolua_beginmodule(tolua_S, NULL); /// MessageHandler tolua_cclass(tolua_S, "GameApi", "GameApi", "", NULL); tolua_beginmodule(tolua_S, "GameApi"); tolua_function(tolua_S, "PPVELayer_InitMap", tolua_PPVELayer_InitMap); tolua_function(tolua_S, "showMessage", tolua_ShowMessage); tolua_function(tolua_S, "InsertPPVEInstance", tolua_InsertPPVEInstance); tolua_function(tolua_S, "getOtherPlayerInfo", tolua_GetOtherPlayerInfo); tolua_endmodule(tolua_S); tolua_function(tolua_S, "ShowWaitingLayer", tolua_ShowWaitingLayer); tolua_function(tolua_S, "HideWaitingLayer", tolua_HideWaitingLayer); tolua_function(tolua_S, "PushOneLayer", tolua_PushOneLayer); tolua_function(tolua_S, "RemoveOneLayer", tolua_RemoveOneLayer); tolua_function(tolua_S, "StopHeroMove", tolua_StopHeroMove); tolua_cclass(tolua_S, "EQUIPINFO", "EQUIPINFO", "", NULL); tolua_beginmodule(tolua_S,"EQUIPINFO"); tolua_function(tolua_S, "getEquipHole", tolua_EQUIPINFO_getEquipHole); tolua_endmodule(tolua_S); tolua_constant(tolua_S,"MB_OK",MB_OK); tolua_constant(tolua_S,"MB_OKCANCEL",MB_OKCANCEL); tolua_constant(tolua_S,"MB_ABORTRETRYIGNORE",MB_ABORTRETRYIGNORE); tolua_constant(tolua_S,"MB_YESNOCANCEL",MB_YESNOCANCEL); tolua_constant(tolua_S,"MB_YESNO",MB_YESNO); tolua_constant(tolua_S,"MB_RETRYCANCEL",MB_RETRYCANCEL); tolua_cclass(tolua_S,"MessageBox","MessageBox","",NULL); tolua_beginmodule(tolua_S,"MessageBox"); tolua_function(tolua_S,"Show",tolua_LuaClient_MessageBox_Show00); tolua_endmodule(tolua_S); tolua_endmodule(tolua_S); return 1; }
/* Open function */ TOLUA_API int tolua_maudio_open (lua_State* tolua_S) { tolua_open(tolua_S); tolua_reg_types(tolua_S); tolua_module(tolua_S,NULL,0); tolua_beginmodule(tolua_S,NULL); tolua_module(tolua_S,"maudio",0); tolua_beginmodule(tolua_S,"maudio"); tolua_cclass(tolua_S,"AudioManager","maudio::AudioManager","",NULL); tolua_beginmodule(tolua_S,"AudioManager"); tolua_function(tolua_S,"play",tolua_maudio_maudio_AudioManager_play00); tolua_function(tolua_S,"play",tolua_maudio_maudio_AudioManager_play01); tolua_function(tolua_S,"getSound",tolua_maudio_maudio_AudioManager_getSound00); tolua_function(tolua_S,"getListenerPosition",tolua_maudio_maudio_AudioManager_getListenerPosition00); tolua_function(tolua_S,"getListenerOrientation",tolua_maudio_maudio_AudioManager_getListenerOrientation00); tolua_function(tolua_S,"getListenerVelocity",tolua_maudio_maudio_AudioManager_getListenerVelocity00); tolua_function(tolua_S,"getMaxPitch",tolua_maudio_maudio_AudioManager_getMaxPitch00); tolua_endmodule(tolua_S); tolua_endmodule(tolua_S); tolua_module(tolua_S,"maudio",0); tolua_beginmodule(tolua_S,"maudio"); tolua_cclass(tolua_S,"Sound","maudio::Sound","moon::Component",NULL); tolua_beginmodule(tolua_S,"Sound"); tolua_function(tolua_S,"play",tolua_maudio_maudio_Sound_play00); tolua_function(tolua_S,"pause",tolua_maudio_maudio_Sound_pause00); tolua_function(tolua_S,"rewind",tolua_maudio_maudio_Sound_rewind00); tolua_function(tolua_S,"stop",tolua_maudio_maudio_Sound_stop00); tolua_function(tolua_S,"isPlaying",tolua_maudio_maudio_Sound_isPlaying00); tolua_function(tolua_S,"isPaused",tolua_maudio_maudio_Sound_isPaused00); tolua_function(tolua_S,"getGain",tolua_maudio_maudio_Sound_getGain00); tolua_function(tolua_S,"setGain",tolua_maudio_maudio_Sound_setGain00); tolua_function(tolua_S,"getPitch",tolua_maudio_maudio_Sound_getPitch00); tolua_function(tolua_S,"setPitch",tolua_maudio_maudio_Sound_setPitch00); tolua_function(tolua_S,"isLooping",tolua_maudio_maudio_Sound_isLooping00); tolua_function(tolua_S,"setLooping",tolua_maudio_maudio_Sound_setLooping00); tolua_function(tolua_S,"setPosition",tolua_maudio_maudio_Sound_setPosition00); tolua_function(tolua_S,"setDirection",tolua_maudio_maudio_Sound_setDirection00); tolua_function(tolua_S,"setRotation",tolua_maudio_maudio_Sound_setRotation00); tolua_function(tolua_S,"getRotation",tolua_maudio_maudio_Sound_getRotation00); tolua_function(tolua_S,"getDirection",tolua_maudio_maudio_Sound_getDirection00); tolua_function(tolua_S,"getPosition",tolua_maudio_maudio_Sound_getPosition00); tolua_function(tolua_S,"setVelocity",tolua_maudio_maudio_Sound_setVelocity00); tolua_function(tolua_S,"getVelocity",tolua_maudio_maudio_Sound_getVelocity00); tolua_function(tolua_S,"getLength",tolua_maudio_maudio_Sound_getLength00); tolua_function(tolua_S,"shouldAutoPlay",tolua_maudio_maudio_Sound_shouldAutoPlay00); tolua_function(tolua_S,"setAutoPlay",tolua_maudio_maudio_Sound_setAutoPlay00); tolua_constant(tolua_S,"TARGET_NONE",maudio::Sound::TARGET_NONE); tolua_constant(tolua_S,"TARGET_GAIN",maudio::Sound::TARGET_GAIN); tolua_constant(tolua_S,"TARGET_PITCH",maudio::Sound::TARGET_PITCH); tolua_constant(tolua_S,"NO_TRIGGER",maudio::Sound::NO_TRIGGER); tolua_constant(tolua_S,"PLAY",maudio::Sound::PLAY); tolua_constant(tolua_S,"PAUSE",maudio::Sound::PAUSE); tolua_constant(tolua_S,"STOP",maudio::Sound::STOP); tolua_constant(tolua_S,"PLAY_STOP",maudio::Sound::PLAY_STOP); tolua_constant(tolua_S,"PLAY_PAUSE",maudio::Sound::PLAY_PAUSE); tolua_function(tolua_S,"setTriggerMode",tolua_maudio_maudio_Sound_setTriggerMode00); tolua_function(tolua_S,"getTriggerMode",tolua_maudio_maudio_Sound_getTriggerMode00); tolua_function(tolua_S,"setTriggerThreshold",tolua_maudio_maudio_Sound_setTriggerThreshold00); tolua_function(tolua_S,"getTriggerThreshold",tolua_maudio_maudio_Sound_getTriggerThreshold00); tolua_endmodule(tolua_S); tolua_endmodule(tolua_S); tolua_endmodule(tolua_S); return 1; }
/* Open function */ TOLUA_API int tolua_glu_open (lua_State* tolua_S) { tolua_open(tolua_S); tolua_reg_types(tolua_S); tolua_module(tolua_S,NULL,0); tolua_beginmodule(tolua_S,NULL); tolua_constant(tolua_S,"GLU_VERSION_1_1",GLU_VERSION_1_1); tolua_constant(tolua_S,"GLU_TRUE",GLU_TRUE); tolua_constant(tolua_S,"GLU_FALSE",GLU_FALSE); tolua_constant(tolua_S,"GLU_SMOOTH",GLU_SMOOTH); tolua_constant(tolua_S,"GLU_FLAT",GLU_FLAT); tolua_constant(tolua_S,"GLU_NONE",GLU_NONE); tolua_constant(tolua_S,"GLU_POINT",GLU_POINT); tolua_constant(tolua_S,"GLU_LINE",GLU_LINE); tolua_constant(tolua_S,"GLU_FILL",GLU_FILL); tolua_constant(tolua_S,"GLU_SILHOUETTE",GLU_SILHOUETTE); tolua_constant(tolua_S,"GLU_OUTSIDE",GLU_OUTSIDE); tolua_constant(tolua_S,"GLU_INSIDE",GLU_INSIDE); tolua_constant(tolua_S,"GLU_TESS_BEGIN",GLU_TESS_BEGIN); tolua_constant(tolua_S,"GLU_TESS_VERTEX",GLU_TESS_VERTEX); tolua_constant(tolua_S,"GLU_TESS_END",GLU_TESS_END); tolua_constant(tolua_S,"GLU_TESS_ERROR",GLU_TESS_ERROR); tolua_constant(tolua_S,"GLU_TESS_EDGE_FLAG",GLU_TESS_EDGE_FLAG); tolua_constant(tolua_S,"GLU_TESS_COMBINE",GLU_TESS_COMBINE); tolua_constant(tolua_S,"GLU_TESS_ERROR1",GLU_TESS_ERROR1); tolua_constant(tolua_S,"GLU_TESS_ERROR2",GLU_TESS_ERROR2); tolua_constant(tolua_S,"GLU_TESS_ERROR3",GLU_TESS_ERROR3); tolua_constant(tolua_S,"GLU_TESS_ERROR4",GLU_TESS_ERROR4); tolua_constant(tolua_S,"GLU_TESS_ERROR5",GLU_TESS_ERROR5); tolua_constant(tolua_S,"GLU_TESS_ERROR6",GLU_TESS_ERROR6); tolua_constant(tolua_S,"GLU_TESS_ERROR7",GLU_TESS_ERROR7); tolua_constant(tolua_S,"GLU_TESS_ERROR8",GLU_TESS_ERROR8); tolua_constant(tolua_S,"GLU_AUTO_LOAD_MATRIX",GLU_AUTO_LOAD_MATRIX); tolua_constant(tolua_S,"GLU_CULLING",GLU_CULLING); tolua_constant(tolua_S,"GLU_PARAMETRIC_TOLERANCE",GLU_PARAMETRIC_TOLERANCE); tolua_constant(tolua_S,"GLU_SAMPLING_TOLERANCE",GLU_SAMPLING_TOLERANCE); tolua_constant(tolua_S,"GLU_DISPLAY_MODE",GLU_DISPLAY_MODE); tolua_constant(tolua_S,"GLU_SAMPLING_METHOD",GLU_SAMPLING_METHOD); tolua_constant(tolua_S,"GLU_U_STEP",GLU_U_STEP); tolua_constant(tolua_S,"GLU_V_STEP",GLU_V_STEP); tolua_constant(tolua_S,"GLU_PATH_LENGTH",GLU_PATH_LENGTH); tolua_constant(tolua_S,"GLU_PARAMETRIC_ERROR",GLU_PARAMETRIC_ERROR); tolua_constant(tolua_S,"GLU_DOMAIN_DISTANCE",GLU_DOMAIN_DISTANCE); tolua_constant(tolua_S,"GLU_MAP1_TRIM_2",GLU_MAP1_TRIM_2); tolua_constant(tolua_S,"GLU_MAP1_TRIM_3",GLU_MAP1_TRIM_3); tolua_constant(tolua_S,"GLU_OUTLINE_POLYGON",GLU_OUTLINE_POLYGON); tolua_constant(tolua_S,"GLU_OUTLINE_PATCH",GLU_OUTLINE_PATCH); tolua_constant(tolua_S,"GLU_NURBS_ERROR1",GLU_NURBS_ERROR1); tolua_constant(tolua_S,"GLU_NURBS_ERROR2",GLU_NURBS_ERROR2); tolua_constant(tolua_S,"GLU_NURBS_ERROR3",GLU_NURBS_ERROR3); tolua_constant(tolua_S,"GLU_NURBS_ERROR4",GLU_NURBS_ERROR4); tolua_constant(tolua_S,"GLU_NURBS_ERROR5",GLU_NURBS_ERROR5); tolua_constant(tolua_S,"GLU_NURBS_ERROR6",GLU_NURBS_ERROR6); tolua_constant(tolua_S,"GLU_NURBS_ERROR7",GLU_NURBS_ERROR7); tolua_constant(tolua_S,"GLU_NURBS_ERROR8",GLU_NURBS_ERROR8); tolua_constant(tolua_S,"GLU_NURBS_ERROR9",GLU_NURBS_ERROR9); tolua_constant(tolua_S,"GLU_NURBS_ERROR10",GLU_NURBS_ERROR10); tolua_constant(tolua_S,"GLU_NURBS_ERROR11",GLU_NURBS_ERROR11); tolua_constant(tolua_S,"GLU_NURBS_ERROR12",GLU_NURBS_ERROR12); tolua_constant(tolua_S,"GLU_NURBS_ERROR13",GLU_NURBS_ERROR13); tolua_constant(tolua_S,"GLU_NURBS_ERROR14",GLU_NURBS_ERROR14); tolua_constant(tolua_S,"GLU_NURBS_ERROR15",GLU_NURBS_ERROR15); tolua_constant(tolua_S,"GLU_NURBS_ERROR16",GLU_NURBS_ERROR16); tolua_constant(tolua_S,"GLU_NURBS_ERROR17",GLU_NURBS_ERROR17); tolua_constant(tolua_S,"GLU_NURBS_ERROR18",GLU_NURBS_ERROR18); tolua_constant(tolua_S,"GLU_NURBS_ERROR19",GLU_NURBS_ERROR19); tolua_constant(tolua_S,"GLU_NURBS_ERROR20",GLU_NURBS_ERROR20); tolua_constant(tolua_S,"GLU_NURBS_ERROR21",GLU_NURBS_ERROR21); tolua_constant(tolua_S,"GLU_NURBS_ERROR22",GLU_NURBS_ERROR22); tolua_constant(tolua_S,"GLU_NURBS_ERROR23",GLU_NURBS_ERROR23); tolua_constant(tolua_S,"GLU_NURBS_ERROR24",GLU_NURBS_ERROR24); tolua_constant(tolua_S,"GLU_NURBS_ERROR25",GLU_NURBS_ERROR25); tolua_constant(tolua_S,"GLU_NURBS_ERROR26",GLU_NURBS_ERROR26); tolua_constant(tolua_S,"GLU_NURBS_ERROR27",GLU_NURBS_ERROR27); tolua_constant(tolua_S,"GLU_NURBS_ERROR28",GLU_NURBS_ERROR28); tolua_constant(tolua_S,"GLU_NURBS_ERROR29",GLU_NURBS_ERROR29); tolua_constant(tolua_S,"GLU_NURBS_ERROR30",GLU_NURBS_ERROR30); tolua_constant(tolua_S,"GLU_NURBS_ERROR31",GLU_NURBS_ERROR31); tolua_constant(tolua_S,"GLU_NURBS_ERROR32",GLU_NURBS_ERROR32); tolua_constant(tolua_S,"GLU_NURBS_ERROR33",GLU_NURBS_ERROR33); tolua_constant(tolua_S,"GLU_NURBS_ERROR34",GLU_NURBS_ERROR34); tolua_constant(tolua_S,"GLU_NURBS_ERROR35",GLU_NURBS_ERROR35); tolua_constant(tolua_S,"GLU_NURBS_ERROR36",GLU_NURBS_ERROR36); tolua_constant(tolua_S,"GLU_NURBS_ERROR37",GLU_NURBS_ERROR37); tolua_constant(tolua_S,"GLU_INVALID_ENUM",GLU_INVALID_ENUM); tolua_constant(tolua_S,"GLU_INVALID_VALUE",GLU_INVALID_VALUE); tolua_constant(tolua_S,"GLU_OUT_OF_MEMORY",GLU_OUT_OF_MEMORY); tolua_constant(tolua_S,"GLU_INCOMPATIBLE_GL_VERSION",GLU_INCOMPATIBLE_GL_VERSION); tolua_constant(tolua_S,"GLU_VERSION",GLU_VERSION); tolua_constant(tolua_S,"GLU_EXTENSIONS",GLU_EXTENSIONS); tolua_function(tolua_S,"gluLookAt",tolua_glu_gluLookAt00); tolua_function(tolua_S,"gluOrtho2D",tolua_glu_gluOrtho2D00); tolua_function(tolua_S,"gluPerspective",tolua_glu_gluPerspective00); tolua_function(tolua_S,"gluPickMatrix",tolua_glu_gluPickMatrix00); tolua_function(tolua_S,"gluProject",tolua_glu_gluProject00); tolua_function(tolua_S,"gluUnProject",tolua_glu_gluUnProject00); tolua_function(tolua_S,"gluErrorString",tolua_glu_gluErrorString00); tolua_function(tolua_S,"gluScaleImage",tolua_glu_gluScaleImage00); tolua_function(tolua_S,"gluBuild1DMipmaps",tolua_glu_gluBuild1DMipmaps00); tolua_function(tolua_S,"gluBuild2DMipmaps",tolua_glu_gluBuild2DMipmaps00); tolua_function(tolua_S,"gluNewQuadric",tolua_glu_gluNewQuadric00); tolua_function(tolua_S,"gluDeleteQuadric",tolua_glu_gluDeleteQuadric00); tolua_function(tolua_S,"gluQuadricDrawStyle",tolua_glu_gluQuadricDrawStyle00); tolua_function(tolua_S,"gluQuadricOrientation",tolua_glu_gluQuadricOrientation00); tolua_function(tolua_S,"gluQuadricNormals",tolua_glu_gluQuadricNormals00); tolua_function(tolua_S,"gluQuadricTexture",tolua_glu_gluQuadricTexture00); tolua_function(tolua_S,"gluCylinder",tolua_glu_gluCylinder00); tolua_function(tolua_S,"gluSphere",tolua_glu_gluSphere00); tolua_function(tolua_S,"gluDisk",tolua_glu_gluDisk00); tolua_function(tolua_S,"gluPartialDisk",tolua_glu_gluPartialDisk00); tolua_function(tolua_S,"gluNewNurbsRenderer",tolua_glu_gluNewNurbsRenderer00); tolua_function(tolua_S,"gluDeleteNurbsRenderer",tolua_glu_gluDeleteNurbsRenderer00); tolua_function(tolua_S,"gluLoadSamplingMatrices",tolua_glu_gluLoadSamplingMatrices00); tolua_function(tolua_S,"gluNurbsProperty",tolua_glu_gluNurbsProperty00); tolua_function(tolua_S,"gluGetNurbsProperty",tolua_glu_gluGetNurbsProperty00); tolua_function(tolua_S,"gluBeginCurve",tolua_glu_gluBeginCurve00); tolua_function(tolua_S,"gluEndCurve",tolua_glu_gluEndCurve00); tolua_function(tolua_S,"gluBeginSurface",tolua_glu_gluBeginSurface00); tolua_function(tolua_S,"gluEndSurface",tolua_glu_gluEndSurface00); tolua_function(tolua_S,"gluBeginTrim",tolua_glu_gluBeginTrim00); tolua_function(tolua_S,"gluEndTrim",tolua_glu_gluEndTrim00); tolua_function(tolua_S,"gluGetString",tolua_glu_gluGetString00); tolua_endmodule(tolua_S); return 1; }
/* Open function */ TOLUA_API int tolua_tconstant_open (lua_State* tolua_S) { tolua_open(tolua_S); tolua_reg_types(tolua_S); tolua_module(tolua_S,NULL,0); tolua_beginmodule(tolua_S,NULL); tolua_constant(tolua_S,"FIRST",FIRST); tolua_constant(tolua_S,"SECOND",SECOND); tolua_constant(tolua_S,"ONE",ONE); tolua_constant(tolua_S,"TWO",TWO); tolua_module(tolua_S,"M",0); tolua_beginmodule(tolua_S,"M"); tolua_constant(tolua_S,"FIRST",M_FIRST); tolua_constant(tolua_S,"SECOND",M_SECOND); tolua_constant(tolua_S,"ONE",M_ONE); tolua_constant(tolua_S,"TWO",M_TWO); tolua_endmodule(tolua_S); tolua_cclass(tolua_S,"A","A","",NULL); tolua_beginmodule(tolua_S,"A"); tolua_constant(tolua_S,"FIRST",FIRST); tolua_constant(tolua_S,"SECOND",SECOND); tolua_constant(tolua_S,"ONE",A::ONE); tolua_constant(tolua_S,"TWO",A::TWO); tolua_endmodule(tolua_S); tolua_endmodule(tolua_S); return 1; }
/* Open function */ TOLUA_API int tolua_lua_cocos2dx_userext_open (lua_State* tolua_S) { tolua_open(tolua_S); tolua_reg_types(tolua_S); tolua_module(tolua_S,NULL,0); tolua_beginmodule(tolua_S,NULL); #ifdef __cplusplus tolua_cclass(tolua_S,"LuaValueList","LuaValueList","cc.Ref",tolua_collect_LuaValueList); #else tolua_cclass(tolua_S,"LuaValueList","LuaValueList","cc.Ref",NULL); #endif tolua_beginmodule(tolua_S,"LuaValueList"); tolua_function(tolua_S,"new",tolua_lua_cocos2dx_userext_LuaValueList_new00); tolua_function(tolua_S,"new_local",tolua_lua_cocos2dx_userext_LuaValueList_new00_local); tolua_function(tolua_S,".call",tolua_lua_cocos2dx_userext_LuaValueList_new00_local); tolua_function(tolua_S,"pushInt",tolua_lua_cocos2dx_userext_LuaValueList_pushInt00); tolua_function(tolua_S,"pushFloat",tolua_lua_cocos2dx_userext_LuaValueList_pushFloat00); tolua_function(tolua_S,"pushBoolean",tolua_lua_cocos2dx_userext_LuaValueList_pushBoolean00); tolua_function(tolua_S,"pushString",tolua_lua_cocos2dx_userext_LuaValueList_pushString00); tolua_function(tolua_S,"size",tolua_lua_cocos2dx_userext_LuaValueList_size00); tolua_function(tolua_S,"clear",tolua_lua_cocos2dx_userext_LuaValueList_clear00); tolua_endmodule(tolua_S); tolua_cclass(tolua_S,"network","network","",NULL); tolua_beginmodule(tolua_S,"network"); tolua_function(tolua_S,"start",tolua_lua_cocos2dx_userext_network_start00); tolua_function(tolua_S,"stop",tolua_lua_cocos2dx_userext_network_stop00); tolua_function(tolua_S,"connect",tolua_lua_cocos2dx_userext_network_connect00); tolua_function(tolua_S,"disconnect",tolua_lua_cocos2dx_userext_network_disconnect00); tolua_function(tolua_S,"send",tolua_lua_cocos2dx_userext_network_send00); tolua_function(tolua_S,"registerHandler",tolua_lua_cocos2dx_userext_network_registerHandler00); tolua_function(tolua_S,"unregisterHandler",tolua_lua_cocos2dx_userext_network_unregisterHandler00); tolua_endmodule(tolua_S); tolua_cclass(tolua_S,"GameEntity","GameEntity","cc.Sprite",NULL); tolua_beginmodule(tolua_S,"GameEntity"); tolua_function(tolua_S,"create",tolua_lua_cocos2dx_userext_GameEntity_create00); tolua_endmodule(tolua_S); tolua_cclass(tolua_S,"EntityComponent","EntityComponent","cc.Component",NULL); tolua_beginmodule(tolua_S,"EntityComponent"); tolua_function(tolua_S,"create",tolua_lua_cocos2dx_userext_EntityComponent_create00); tolua_function(tolua_S,"registerHandler",tolua_lua_cocos2dx_userext_EntityComponent_registerHandler00); tolua_function(tolua_S,"unregisterHandler",tolua_lua_cocos2dx_userext_EntityComponent_unregisterHandler00); tolua_function(tolua_S,"unregisterAllHandlers",tolua_lua_cocos2dx_userext_EntityComponent_unregisterAllHandlers00); tolua_endmodule(tolua_S); #ifdef __cplusplus tolua_cclass(tolua_S,"AnimationController","AnimationController","EntityComponent",tolua_collect_AnimationController); #else tolua_cclass(tolua_S,"AnimationController","AnimationController","EntityComponent",NULL); #endif tolua_beginmodule(tolua_S,"AnimationController"); tolua_constant(tolua_S,"Default",AnimationController::Default); tolua_constant(tolua_S,"Once",AnimationController::Once); tolua_constant(tolua_S,"Loop",AnimationController::Loop); tolua_function(tolua_S,"create",tolua_lua_cocos2dx_userext_AnimationController_create00); tolua_function(tolua_S,"new",tolua_lua_cocos2dx_userext_AnimationController_new00); tolua_function(tolua_S,"new_local",tolua_lua_cocos2dx_userext_AnimationController_new00_local); tolua_function(tolua_S,".call",tolua_lua_cocos2dx_userext_AnimationController_new00_local); tolua_function(tolua_S,"load",tolua_lua_cocos2dx_userext_AnimationController_load00); tolua_function(tolua_S,"play",tolua_lua_cocos2dx_userext_AnimationController_play00); tolua_function(tolua_S,"pause",tolua_lua_cocos2dx_userext_AnimationController_pause00); tolua_function(tolua_S,"resume",tolua_lua_cocos2dx_userext_AnimationController_resume00); tolua_function(tolua_S,"stop",tolua_lua_cocos2dx_userext_AnimationController_stop00); tolua_function(tolua_S,"getArmature",tolua_lua_cocos2dx_userext_AnimationController_getArmature00); tolua_function(tolua_S,"checkCollider",tolua_lua_cocos2dx_userext_AnimationController_checkCollider00); tolua_function(tolua_S,"setMovementEventCallFunc",tolua_lua_cocos2dx_userext_AnimationController_setMovementEventCallFunc00); tolua_endmodule(tolua_S); tolua_endmodule(tolua_S); return 1; }
int register_all_cocos2dx_physics_manual(lua_State* tolua_S) { lua_pushstring(tolua_S, "cc.PhysicsBody"); lua_rawget(tolua_S, LUA_REGISTRYINDEX); if (lua_istable(tolua_S,-1)) { lua_pushstring(tolua_S,"getJoints"); lua_pushcfunction(tolua_S,lua_cocos2dx_physics_PhysicsBody_getJoints ); lua_rawset(tolua_S,-3); lua_pushstring(tolua_S,"createPolygon"); lua_pushcfunction(tolua_S,lua_cocos2dx_physics_PhysicsBody_createPolygon ); lua_rawset(tolua_S,-3); lua_pushstring(tolua_S,"createEdgeChain"); lua_pushcfunction(tolua_S,lua_cocos2dx_physics_PhysicsBody_createEdgeChain ); lua_rawset(tolua_S,-3); lua_pushstring(tolua_S,"createEdgePolygon"); lua_pushcfunction(tolua_S,lua_cocos2dx_physics_PhysicsBody_createEdgePolygon ); lua_rawset(tolua_S,-3); } lua_pop(tolua_S, 1); lua_pushstring(tolua_S, "cc.PhysicsShape"); lua_rawget(tolua_S, LUA_REGISTRYINDEX); if (lua_istable(tolua_S,-1)) { lua_pushstring(tolua_S,"recenterPoints"); lua_pushcfunction(tolua_S,lua_cocos2dx_physics_PhysicsShape_recenterPoints ); lua_rawset(tolua_S,-3); lua_pushstring(tolua_S,"getPolyonCenter"); lua_pushcfunction(tolua_S,lua_cocos2dx_physics_PhysicsShape_getPolyonCenter ); lua_rawset(tolua_S,-3); } lua_pop(tolua_S, 1); lua_pushstring(tolua_S, "cc.PhysicsShapeBox"); lua_rawget(tolua_S, LUA_REGISTRYINDEX); if (lua_istable(tolua_S,-1)) { lua_pushstring(tolua_S,"getPoints"); lua_pushcfunction(tolua_S,lua_cocos2dx_physics_PhysicsShapeBox_getPoints ); lua_rawset(tolua_S,-3); } lua_pop(tolua_S, 1); lua_pushstring(tolua_S, "cc.PhysicsShapeEdgeBox"); lua_rawget(tolua_S, LUA_REGISTRYINDEX); if (lua_istable(tolua_S,-1)) { lua_pushstring(tolua_S,"getPoints"); lua_pushcfunction(tolua_S,lua_cocos2dx_physics_PhysicsShapeEdgeBox_getPoints ); lua_rawset(tolua_S,-3); } lua_pop(tolua_S, 1); lua_pushstring(tolua_S, "cc.PhysicsShapePolygon"); lua_rawget(tolua_S, LUA_REGISTRYINDEX); if (lua_istable(tolua_S,-1)) { lua_pushstring(tolua_S,"getPoints"); lua_pushcfunction(tolua_S,lua_cocos2dx_physics_PhysicsShapePolygon_getPoints ); lua_rawset(tolua_S,-3); lua_pushstring(tolua_S,"create"); lua_pushcfunction(tolua_S,lua_cocos2dx_physics_PhysicsShapePolygon_create ); lua_rawset(tolua_S,-3); lua_pushstring(tolua_S,"calculateArea"); lua_pushcfunction(tolua_S,lua_cocos2dx_physics_PhysicsShapePolygon_calculateArea ); lua_rawset(tolua_S,-3); lua_pushstring(tolua_S,"calculateMoment"); lua_pushcfunction(tolua_S,lua_cocos2dx_physics_PhysicsShapePolygon_calculateMoment ); lua_rawset(tolua_S,-3); } lua_pop(tolua_S, 1); lua_pushstring(tolua_S, "cc.PhysicsShapeEdgePolygon"); lua_rawget(tolua_S, LUA_REGISTRYINDEX); if (lua_istable(tolua_S,-1)) { lua_pushstring(tolua_S,"getPoints"); lua_pushcfunction(tolua_S,lua_cocos2dx_physics_PhysicsShapeEdgePolygon_getPoints ); lua_rawset(tolua_S,-3); lua_pushstring(tolua_S,"create"); lua_pushcfunction(tolua_S,lua_cocos2dx_physics_PhysicsShapeEdgePolygon_create); lua_rawset(tolua_S,-3); } lua_pop(tolua_S, 1); lua_pushstring(tolua_S, "cc.PhysicsShapeEdgeChain"); lua_rawget(tolua_S, LUA_REGISTRYINDEX); if (lua_istable(tolua_S,-1)) { lua_pushstring(tolua_S,"getPoints"); lua_pushcfunction(tolua_S,lua_cocos2dx_physics_PhysicsShapeEdgeChain_getPoints); lua_rawset(tolua_S,-3); lua_pushstring(tolua_S,"create"); lua_pushcfunction(tolua_S,lua_cocos2dx_physics_PhysicsShapeEdgeChain_create); lua_rawset(tolua_S,-3); } lua_pop(tolua_S, 1); lua_pushstring(tolua_S, "cc.PhysicsWorld"); lua_rawget(tolua_S, LUA_REGISTRYINDEX); if (lua_istable(tolua_S,-1)) { lua_pushstring(tolua_S,"getScene"); lua_pushcfunction(tolua_S, lua_cocos2dx_physics_PhysicsWorld_getScene ); lua_rawset(tolua_S,-3); lua_pushstring(tolua_S,"queryPoint"); lua_pushcfunction(tolua_S, lua_cocos2dx_physics_PhysicsWorld_queryPoint ); lua_rawset(tolua_S,-3); lua_pushstring(tolua_S,"queryRect"); lua_pushcfunction(tolua_S, lua_cocos2dx_physics_PhysicsWorld_queryRect ); lua_rawset(tolua_S,-3); lua_pushstring(tolua_S,"rayCast"); lua_pushcfunction(tolua_S, lua_cocos2dx_physics_PhysicsWorld_rayCast ); lua_rawset(tolua_S,-3); lua_pushstring(tolua_S, "DEBUGDRAW_NONE"); lua_pushnumber(tolua_S, PhysicsWorld::DEBUGDRAW_NONE); lua_rawset(tolua_S,-3); lua_pushstring(tolua_S, "DEBUGDRAW_SHAPE"); lua_pushnumber(tolua_S, PhysicsWorld::DEBUGDRAW_SHAPE); lua_rawset(tolua_S,-3); lua_pushstring(tolua_S, "DEBUGDRAW_JOINT"); lua_pushnumber(tolua_S, PhysicsWorld::DEBUGDRAW_JOINT); lua_rawset(tolua_S,-3); lua_pushstring(tolua_S, "DEBUGDRAW_CONTACT"); lua_pushnumber(tolua_S, PhysicsWorld::DEBUGDRAW_CONTACT); lua_rawset(tolua_S,-3); lua_pushstring(tolua_S, "DEBUGDRAW_ALL"); lua_pushnumber(tolua_S, PhysicsWorld::DEBUGDRAW_ALL); lua_rawset(tolua_S,-3); } lua_pop(tolua_S, 1); lua_pushstring(tolua_S, "cc.EventListenerPhysicsContact"); lua_rawget(tolua_S, LUA_REGISTRYINDEX); if (lua_istable(tolua_S,-1)) { tolua_function(tolua_S, "registerScriptHandler", tolua_cocos2dx_EventListenerPhysicsContact_registerScriptHandler); } lua_pop(tolua_S, 1); tolua_constant(tolua_S, "PHYSICS_INFINITY", PHYSICS_INFINITY); return 0; }
/* Open function */ TOLUA_API int tolua_CCGLProgram_open (lua_State* tolua_S) { tolua_open(tolua_S); tolua_reg_types(tolua_S); tolua_module(tolua_S,NULL,0); tolua_beginmodule(tolua_S,NULL); tolua_constant(tolua_S,"kCCVertexAttrib_Position",kCCVertexAttrib_Position); tolua_constant(tolua_S,"kCCVertexAttrib_Color",kCCVertexAttrib_Color); tolua_constant(tolua_S,"kCCVertexAttrib_TexCoords",kCCVertexAttrib_TexCoords); tolua_constant(tolua_S,"kCCVertexAttrib_MAX",kCCVertexAttrib_MAX); tolua_constant(tolua_S,"kCCUniformPMatrix",kCCUniformPMatrix); tolua_constant(tolua_S,"kCCUniformMVMatrix",kCCUniformMVMatrix); tolua_constant(tolua_S,"kCCUniformMVPMatrix",kCCUniformMVPMatrix); tolua_constant(tolua_S,"kCCUniformTime",kCCUniformTime); tolua_constant(tolua_S,"kCCUniformSinTime",kCCUniformSinTime); tolua_constant(tolua_S,"kCCUniformCosTime",kCCUniformCosTime); tolua_constant(tolua_S,"kCCUniformRandom01",kCCUniformRandom01); tolua_constant(tolua_S,"kCCUniformSampler",kCCUniformSampler); tolua_constant(tolua_S,"kCCUniform_MAX",kCCUniform_MAX); #ifdef __cplusplus tolua_cclass(tolua_S,"CCGLProgram","CCGLProgram","CCObject",tolua_collect_CCGLProgram); #else tolua_cclass(tolua_S,"CCGLProgram","CCGLProgram","CCObject",NULL); #endif tolua_beginmodule(tolua_S,"CCGLProgram"); tolua_function(tolua_S,"create",tolua_CCGLProgram_CCGLProgram_create00); tolua_function(tolua_S,"new",tolua_CCGLProgram_CCGLProgram_new00); tolua_function(tolua_S,"new_local",tolua_CCGLProgram_CCGLProgram_new00_local); tolua_function(tolua_S,".call",tolua_CCGLProgram_CCGLProgram_new00_local); tolua_function(tolua_S,"delete",tolua_CCGLProgram_CCGLProgram_delete00); tolua_function(tolua_S,"initWithVertexShaderByteArray",tolua_CCGLProgram_CCGLProgram_initWithVertexShaderByteArray00); tolua_function(tolua_S,"initWithVertexShaderFilename",tolua_CCGLProgram_CCGLProgram_initWithVertexShaderFilename00); tolua_function(tolua_S,"addAttribute",tolua_CCGLProgram_CCGLProgram_addAttribute00); tolua_function(tolua_S,"link",tolua_CCGLProgram_CCGLProgram_link00); tolua_function(tolua_S,"use",tolua_CCGLProgram_CCGLProgram_use00); tolua_function(tolua_S,"updateUniforms",tolua_CCGLProgram_CCGLProgram_updateUniforms00); tolua_function(tolua_S,"setUniformLocationWith1i",tolua_CCGLProgram_CCGLProgram_setUniformLocationWith1i00); tolua_function(tolua_S,"setUniformLocationWith1f",tolua_CCGLProgram_CCGLProgram_setUniformLocationWith1f00); tolua_function(tolua_S,"setUniformLocationWith2f",tolua_CCGLProgram_CCGLProgram_setUniformLocationWith2f00); tolua_function(tolua_S,"setUniformLocationWith3f",tolua_CCGLProgram_CCGLProgram_setUniformLocationWith3f00); tolua_function(tolua_S,"setUniformLocationWith4f",tolua_CCGLProgram_CCGLProgram_setUniformLocationWith4f00); tolua_function(tolua_S,"setUniformLocationWith2fv",tolua_CCGLProgram_CCGLProgram_setUniformLocationWith2fv00); tolua_function(tolua_S,"setUniformLocationWith3fv",tolua_CCGLProgram_CCGLProgram_setUniformLocationWith3fv00); tolua_function(tolua_S,"setUniformLocationWith4fv",tolua_CCGLProgram_CCGLProgram_setUniformLocationWith4fv00); tolua_function(tolua_S,"setUniformLocationWithMatrix4fv",tolua_CCGLProgram_CCGLProgram_setUniformLocationWithMatrix4fv00); tolua_function(tolua_S,"setUniformsForBuiltins",tolua_CCGLProgram_CCGLProgram_setUniformsForBuiltins00); tolua_function(tolua_S,"vertexShaderLog",tolua_CCGLProgram_CCGLProgram_vertexShaderLog00); tolua_function(tolua_S,"fragmentShaderLog",tolua_CCGLProgram_CCGLProgram_fragmentShaderLog00); tolua_function(tolua_S,"programLog",tolua_CCGLProgram_CCGLProgram_programLog00); tolua_function(tolua_S,"reset",tolua_CCGLProgram_CCGLProgram_reset00); tolua_function(tolua_S,"getProgram",tolua_CCGLProgram_CCGLProgram_getProgram00); tolua_endmodule(tolua_S); tolua_endmodule(tolua_S); return 1; }
/* Open lib function */ LUALIB_API int luaopen_common_a (lua_State* tolua_S) { tolua_open(tolua_S); tolua_reg_types(tolua_S); tolua_module(tolua_S,NULL,0); tolua_beginmodule(tolua_S,NULL); tolua_cclass(tolua_S,"Nonexistent","Nonexistent","",NULL); tolua_beginmodule(tolua_S,"Nonexistent"); tolua_endmodule(tolua_S); { /* begin embedded lua code */ static unsigned char B[] = { 10,102,117,110, 99,116,105,111,110, 32, 78,111,110,101,120, 105,115,116,101,110,116, 58,101,120,105,115,116,115, 40, 41, 10,114,101,116,117,114,110, 32,102, 97,108,115,101, 10,101, 110,100,32 }; if (!luaL_loadbuffer(tolua_S,(char*)B,sizeof(B),"tolua: embedded Lua code")) { lua_pcall(tolua_S,0,LUA_MULTRET,0); } } /* end of embedded lua code */ tolua_function(tolua_S,"_",tolua_common_a__00); tolua_function(tolua_S,"N_",tolua_common_a_N_00); tolua_function(tolua_S,"Q_",tolua_common_a_Q_00); tolua_function(tolua_S,"PL_",tolua_common_a_PL_00); tolua_module(tolua_S,"log",0); tolua_beginmodule(tolua_S,"log"); tolua_module(tolua_S,"level",0); tolua_beginmodule(tolua_S,"level"); tolua_constant(tolua_S,"FATAL",LOG_FATAL); tolua_constant(tolua_S,"ERROR",LOG_ERROR); tolua_constant(tolua_S,"NORMAL",LOG_NORMAL); tolua_constant(tolua_S,"VERBOSE",LOG_VERBOSE); tolua_constant(tolua_S,"DEBUG",LOG_DEBUG); tolua_endmodule(tolua_S); tolua_function(tolua_S,"base",tolua_common_a_log_base00); tolua_endmodule(tolua_S); { /* begin embedded lua code */ static unsigned char B[] = { 10,102,117,110, 99,116,105,111,110, 32,108,111,103, 46,102, 97,116, 97,108, 40, 46, 46, 46, 41, 10,108,111,103, 46, 98, 97,115,101, 40,108,111,103, 46,108,101,118,101,108, 46, 70, 65, 84, 65, 76, 44, 32,115,116,114,105,110,103, 46,102,111, 114,109, 97,116, 40,117,110,112, 97, 99,107, 40, 97,114,103, 41, 41, 41, 10,101,110,100, 10,102,117,110, 99,116,105,111, 110, 32,108,111,103, 46,101,114,114,111,114, 40, 46, 46, 46, 41, 10,108,111,103, 46, 98, 97,115,101, 40,108,111,103, 46, 108,101,118,101,108, 46, 69, 82, 82, 79, 82, 44, 32,115,116, 114,105,110,103, 46,102,111,114,109, 97,116, 40,117,110,112, 97, 99,107, 40, 97,114,103, 41, 41, 41, 10,101,110,100, 10, 102,117,110, 99,116,105,111,110, 32,108,111,103, 46,110,111, 114,109, 97,108, 40, 46, 46, 46, 41, 10,108,111,103, 46, 98, 97,115,101, 40,108,111,103, 46,108,101,118,101,108, 46, 78, 79, 82, 77, 65, 76, 44, 32,115,116,114,105,110,103, 46,102, 111,114,109, 97,116, 40,117,110,112, 97, 99,107, 40, 97,114, 103, 41, 41, 41, 10,101,110,100, 10,102,117,110, 99,116,105, 111,110, 32,108,111,103, 46,118,101,114, 98,111,115,101, 40, 46, 46, 46, 41, 10,108,111,103, 46, 98, 97,115,101, 40,108, 111,103, 46,108,101,118,101,108, 46, 86, 69, 82, 66, 79, 83, 69, 44, 32,115,116,114,105,110,103, 46,102,111,114,109, 97, 116, 40,117,110,112, 97, 99,107, 40, 97,114,103, 41, 41, 41, 10,101,110,100, 10,102,117,110, 99,116,105,111,110, 32,108, 111,103, 46,100,101, 98,117,103, 40, 46, 46, 46, 41, 10,108, 111,103, 46, 98, 97,115,101, 40,108,111,103, 46,108,101,118, 101,108, 46, 68, 69, 66, 85, 71, 44, 32,115,116,114,105,110, 103, 46,102,111,114,109, 97,116, 40,117,110,112, 97, 99,107, 40, 97,114,103, 41, 41, 41, 10,101,110,100, 10,102,117,110, 99,116,105,111,110, 32,101,114,114,111,114, 95,108,111,103, 40,109,115,103, 41, 10,108,111,103, 46,101,114,114,111,114, 40,109,115,103, 41, 10,101,110,100, 10,102,117,110, 99,116, 105,111,110, 32,100,101, 98,117,103, 95,108,111,103, 40,109, 115,103, 41, 10,108,111,103, 46,100,101, 98,117,103, 40,109, 115,103, 41, 10,101,110,100,32 }; if (!luaL_loadbuffer(tolua_S,(char*)B,sizeof(B),"tolua: embedded Lua code")) { lua_pcall(tolua_S,0,LUA_MULTRET,0); } } /* end of embedded lua code */ tolua_function(tolua_S,"random",tolua_common_a_random00); tolua_function(tolua_S,"fc_version",tolua_common_a_fc_version00); { /* begin embedded lua code */ static unsigned char B[] = { 10,102,117,110, 99,116,105,111,110, 32, 95,102,114,101,101, 99,105,118, 95,115,116, 97,116,101, 95,100,117,109,112, 40, 41, 10,108,111, 99, 97,108, 32,114,101,115, 32, 61, 32, 39, 39, 10,102,111,114, 32,107, 44, 32,118, 32,105,110, 32,112, 97,105,114,115, 40, 95, 71, 41, 32,100,111, 10,105,102, 32, 107, 32, 61, 61, 32, 39, 95, 86, 69, 82, 83, 73, 79, 78, 39, 32,116,104,101,110, 10,101,108,115,101,105,102, 32,116,121, 112,101, 40,118, 41, 32, 61, 61, 32, 39, 98,111,111,108,101, 97,110, 39, 10,111,114, 32,116,121,112,101, 40,118, 41, 32, 61, 61, 32, 39,110,117,109, 98,101,114, 39, 32,116,104,101, 110, 10,108,111, 99, 97,108, 32,114,118, 97,108,117,101, 32, 61, 32,116,111,115,116,114,105,110,103, 40,118, 41, 10,114, 101,115, 32, 61, 32,114,101,115, 32, 46, 46, 32,107, 32, 46, 46, 32, 39, 61, 39, 32, 46, 46, 32,114,118, 97,108,117,101, 32, 46, 46, 32, 39, 92,110, 39, 10,101,108,115,101,105,102, 32,116,121,112,101, 40,118, 41, 32, 61, 61, 32, 39,115,116, 114,105,110,103, 39, 32,116,104,101,110, 10,108,111, 99, 97, 108, 32,114,118, 97,108,117,101, 32, 61, 32,115,116,114,105, 110,103, 46,102,111,114,109, 97,116, 40, 39, 37,113, 39, 44, 32,118, 41, 10,114,101,115, 32, 61, 32,114,101,115, 32, 46, 46, 32,107, 32, 46, 46, 32, 39, 61, 39, 32, 46, 46, 32,114, 118, 97,108,117,101, 32, 46, 46, 32, 39, 92,110, 39, 10,101, 108,115,101,105,102, 32,116,121,112,101, 40,118, 41, 32, 61, 61, 32, 39,117,115,101,114,100, 97,116, 97, 39, 32,116,104, 101,110, 10,108,111, 99, 97,108, 32,109,101,116,104,111,100, 32, 61, 32,115,116,114,105,110,103, 46,108,111,119,101,114, 40,116,111,108,117, 97, 46,116,121,112,101, 40,118, 41, 41, 10,114,101,115, 32, 61, 32,114,101,115, 32, 46, 46, 32,107, 32, 46, 46, 32, 39, 61,102,105,110,100, 46, 39, 32, 46, 46, 32,109,101,116,104,111,100, 10,105,102, 32,109,101,116,104, 111,100, 32, 61, 61, 32, 39, 99,105,116,121, 39, 32,111,114, 32,109,101,116,104,111,100, 32, 61, 61, 32, 39,117,110,105, 116, 39, 32,116,104,101,110, 10,114,101,115, 32, 61, 32,114, 101,115, 32, 46, 46, 32, 39, 40,110,105,108, 44, 39, 32, 46, 46, 32,118, 46,105,100, 32, 46, 46, 32, 39, 41, 39, 10,101, 108,115,101,105,102, 32,118, 46,105,100, 32,116,104,101,110, 10,114,101,115, 32, 61, 32,114,101,115, 32, 46, 46, 32, 39, 40, 39, 32, 46, 46, 32,118, 46,105,100, 32, 46, 46, 32, 39, 41, 39, 10,101,108,115,101, 10,114,101,115, 32, 61, 32,114, 101,115, 32, 46, 46, 32, 39, 40, 41, 39, 10,101,110,100, 10, 114,101,115, 32, 61, 32,114,101,115, 32, 46, 46, 32, 39, 92, 110, 39, 10,101,110,100, 10,101,110,100, 10,114,101,116,117, 114,110, 32,114,101,115, 10,101,110,100, 10,102,117,110, 99, 116,105,111,110, 32,108,105,115,116,101,110,118, 40, 41, 10, 108,111, 99, 97,108, 32,102,117,110, 99,116,105,111,110, 32, 95,108,105,115,116,101,110,118, 95,108,111,111,112, 40,111, 102,102,115,101,116, 44, 32,100, 97,116, 97, 41, 10,108,111, 99, 97,108, 32,110, 97,109,101, 10,108,111, 99, 97,108, 32, 118, 97,108,117,101, 10,102,111,114, 32,110, 97,109,101, 44, 118, 97,108,117,101, 32,105,110, 32,112, 97,105,114,115, 40, 100, 97,116, 97, 41, 32,100,111, 10,105,102, 32,110, 97,109, 101, 32,126, 61, 32, 34,108,111, 97,100,101,100, 34, 32, 97, 110,100, 32,110, 97,109,101, 32,126, 61, 32, 34, 95, 71, 34, 32, 97,110,100, 32,110, 97,109,101, 58,115,117, 98, 40, 48, 44, 50, 41, 32,126, 61, 32, 34, 95, 95, 34, 32,116,104,101, 110, 10,108,111,103, 46,110,111,114,109, 97,108, 40, 34, 37, 115, 45, 32, 37,115, 58, 32, 37,115, 34, 44, 32,111,102,102, 115,101,116, 44, 32,116,121,112,101, 40,118, 97,108,117,101, 41, 44, 32,110, 97,109,101, 41, 10,105,102, 32,116,121,112, 101, 40,118, 97,108,117,101, 41, 32, 61, 61, 32, 34,116, 97, 98,108,101, 34, 32,116,104,101,110, 10, 95,108,105,115,116, 101,110,118, 95,108,111,111,112, 40,111,102,102,115,101,116, 32, 46, 46, 32, 34, 32, 34, 44, 32,118, 97,108,117,101, 41, 10,101,110,100, 10,101,110,100, 10,101,110,100, 10,101,110, 100, 10, 95,108,105,115,116,101,110,118, 95,108,111,111,112, 40, 34, 34, 44, 32, 95, 71, 41, 10,101,110,100, 10, 99,111, 110,115,116, 32, 61, 32,123,125, 10,108,111, 99, 97,108, 32, 100, 97,116, 97, 32, 61, 32,123,125, 10, 99,111,110,115,116, 95,109,116, 32, 61, 32,123, 10, 95, 95,110,101,119,105,110, 100,101,120, 32, 61, 32,102,117,110, 99,116,105,111,110, 40, 97, 44, 98, 44, 99, 41, 10,105,102, 32,100, 97,116, 97, 91, 98, 93, 32, 61, 61, 32,110,105,108, 32,116,104,101,110, 10, 105,102, 32,116,121,112,101, 40, 99, 41, 32, 61, 61, 32, 39, 116, 97, 98,108,101, 39, 32,116,104,101,110, 10,108,111, 99, 97,108, 32,112,114,111,120,121, 32, 61, 32,123,125, 10,108, 111, 99, 97,108, 32,109,116, 32, 61, 32,123, 10, 95, 95,105, 110,100,101,120, 32, 61, 32, 99, 44, 10, 95, 95,110,101,119, 105,110,100,101,120, 32, 61, 32,102,117,110, 99,116,105,111, 110, 32, 40,116, 44,107, 44,118, 41, 10,108,111,103, 46,101, 114,114,111,114, 40, 91, 91, 34, 65,116,116,101,109,112,116, 32,116,111, 32,117,112,100, 97,116,101, 32,114,101, 97,100, 45,111,110,108,121, 32,116, 97, 98,108,101, 32, 39, 37,115, 39, 32,105,110,100,101,120, 32, 39, 37,115, 39, 32, 34, 10, 34,119,105,116,104, 32, 39, 37,115, 39, 46, 34, 93, 93, 44, 32, 98, 44, 32,116,111,115,116,114,105,110,103, 40,107, 41, 44, 32,116,111,115,116,114,105,110,103, 40,118, 41, 41, 10, 101,110,100, 10,125, 10,115,101,116,109,101,116, 97,116, 97, 98,108,101, 40,112,114,111,120,121, 44, 32,109,116, 41, 10, 100, 97,116, 97, 91, 98, 93, 32, 61, 32,112,114,111,120,121, 10,101,108,115,101, 10,100, 97,116, 97, 91, 98, 93, 32, 61, 32, 99, 10,101,110,100, 10,101,108,115,101, 10,108,111,103, 46,101,114,114,111,114, 40, 34, 73,108,108,101,103, 97,108, 32, 97,115,115,105,103,110,109,101,110,116, 32,116,111, 32, 99,111,110,115,116, 97,110,116, 32, 39, 37,115, 39, 46, 34, 44, 32,116,111,115,116,114,105,110,103, 40, 98, 41, 41, 10, 101,110,100, 10,101,110,100, 44, 10, 95, 95,105,110,100,101, 120, 32, 61, 32,102,117,110, 99,116,105,111,110, 40, 97, 44, 98, 41, 10,114,101,116,117,114,110, 32,100, 97,116, 97, 91, 98, 93, 10,101,110,100, 10,125, 10,115,101,116,109,101,116, 97,116, 97, 98,108,101, 40, 99,111,110,115,116, 44, 32, 99, 111,110,115,116, 95,109,116, 41, 10, 99,111,110,115,116, 46, 84, 82, 85, 69, 32, 61, 32, 49, 10, 99,111,110,115,116, 46, 70, 65, 76, 83, 69, 32, 61, 32, 48,32 }; if (!luaL_loadbuffer(tolua_S,(char*)B,sizeof(B),"tolua: embedded Lua code")) { lua_pcall(tolua_S,0,LUA_MULTRET,0); } } /* end of embedded lua code */ tolua_endmodule(tolua_S); return 1; }
void ScriptManager::registerConstant(const Common::UString &name, float value) { assert(!name.empty()); assert(_luaState &&_regNestingLevel > 0); tolua_constant(_luaState, name.c_str(), value); }