/* Open lib function */ LUALIB_API int luaopen_client (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,"chat",0); tolua_beginmodule(tolua_S,"chat"); tolua_function(tolua_S,"base",tolua_client_chat_base00); tolua_endmodule(tolua_S); { /* begin embedded lua code */ static unsigned char B[] = { 10,102,117,110, 99,116,105,111,110, 32, 99,104, 97,116, 46, 109,115,103, 40, 46, 46, 46, 41, 10, 99,104, 97,116, 46, 98, 97,115,101, 40,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,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; }
TOLUA_API void tolua_open (lua_State* L) { int top = lua_gettop(L); lua_pushstring(L,"tolua_opened"); lua_rawget(L,LUA_REGISTRYINDEX); if (!lua_isboolean(L,-1)) { lua_pushstring(L,"tolua_opened"); lua_pushboolean(L,1); lua_rawset(L,LUA_REGISTRYINDEX); lua_pushstring(L,"tolua_super"); lua_newtable(L); lua_rawset(L,LUA_REGISTRYINDEX); lua_pushstring(L,"tolua_gc"); lua_newtable(L); lua_rawset(L,LUA_REGISTRYINDEX); /* weak value table */ lua_pushstring(L,"tolua_ubox"); lua_newtable(L); lua_pushvalue(L,-1); lua_pushliteral(L, "__mode"); lua_pushliteral(L, "v"); lua_rawset(L, -3); lua_setmetatable(L, -2); lua_rawset(L,LUA_REGISTRYINDEX); /* weak key table */ lua_pushstring(L,"tolua_peer"); lua_newtable(L); lua_pushvalue(L,-1); lua_pushliteral(L, "__mode"); lua_pushliteral(L, "k"); lua_rawset(L, -3); lua_setmetatable(L, -2); lua_rawset(L,LUA_REGISTRYINDEX); tolua_newmetatable(L,"tolua_commonclass"); tolua_module(L,NULL,0); tolua_beginmodule(L,NULL); tolua_module(L,"tolua",0); tolua_beginmodule(L,"tolua"); tolua_function(L,"type",tolua_bnd_type); tolua_function(L,"takeownership",tolua_bnd_takeownership); tolua_function(L,"releaseownership",tolua_bnd_releaseownership); tolua_function(L,"cast",tolua_bnd_cast); tolua_endmodule(L); tolua_endmodule(L); } lua_settop(L,top); }
/* Open function */ TOLUA_API int tolua_tarray_open (lua_State* tolua_S) { tolua_open(tolua_S); tolua_reg_types(tolua_S); tolua_module(tolua_S,NULL,1); tolua_beginmodule(tolua_S,NULL); #ifdef __cplusplus tolua_cclass(tolua_S,"Point","Point","",tolua_collect_Point); #else tolua_cclass(tolua_S,"Point","Point","",NULL); #endif tolua_beginmodule(tolua_S,"Point"); tolua_variable(tolua_S,"x",tolua_get_Point_x,tolua_set_Point_x); tolua_variable(tolua_S,"y",tolua_get_Point_y,tolua_set_Point_y); tolua_endmodule(tolua_S); tolua_array(tolua_S,"a",tolua_get_tarray_a,tolua_set_tarray_a); tolua_array(tolua_S,"p",tolua_get_tarray_p,NULL); tolua_array(tolua_S,"pp",tolua_get_tarray_pp,tolua_set_tarray_pp); tolua_module(tolua_S,"M",1); tolua_beginmodule(tolua_S,"M"); tolua_array(tolua_S,"a",tolua_get_tarray_M_ma,tolua_set_tarray_M_ma); tolua_array(tolua_S,"p",tolua_get_tarray_M_mp,NULL); tolua_array(tolua_S,"pp",tolua_get_tarray_M_mpp,tolua_set_tarray_M_mpp); tolua_endmodule(tolua_S); tolua_cclass(tolua_S,"Array","Array","",NULL); tolua_beginmodule(tolua_S,"Array"); tolua_array(tolua_S,"a",tolua_get_tarray_Array_a,tolua_set_tarray_Array_a); tolua_array(tolua_S,"p",tolua_get_tarray_Array_p,tolua_set_tarray_Array_p); tolua_array(tolua_S,"pp",tolua_get_tarray_Array_pp,tolua_set_tarray_Array_pp); tolua_endmodule(tolua_S); tolua_variable(tolua_S,"array",tolua_get_array,tolua_set_array); tolua_variable(tolua_S,"parray",tolua_get_parray_ptr,tolua_set_parray_ptr); tolua_endmodule(tolua_S); return 1; }
//打开baseobject库 int player_trade_open(lua_State* L) { tolua_open(L); player_trade_open_reg_types(L); tolua_module(L,NULL,0); tolua_beginmodule(L,NULL); { tolua_module(L,"Game",0); tolua_beginmodule(L,"Game"); { tolua_cclass(L,"PlayerTrade","CPlayerTrade","",collect_player_trade); tolua_beginmodule(L,"PlayerTrade"); { //册CPlayer类的函数 tolua_function(L,"new",player_trade_new); tolua_function(L,"new_local",player_trade_new_local); tolua_function(L,"delete",player_trade_delete); tolua_function(L,"open_trade_page",player_trade_open_trade_page); tolua_function(L,"open_trade_dialog",player_trade_open_trade_dialog); tolua_function(L,"player_trade_get_my_plug_id",player_trade_get_my_plug_id); tolua_function(L,"player_trade_get_you_id",player_trade_get_you_id); tolua_function(L,"player_trade_get_session_id",player_trade_get_session_id); //tolua_function(L,"player_trade_get_goods_id",player_trade_get_goods_id); //tolua_function(L,"player_trade_get_goods_guid",player_trade_get_goods_guid); } tolua_endmodule(L); } tolua_endmodule(L); } tolua_endmodule(L); return 1; }
void tolua_gmtool_open(lua_State * L) { /* register user types */ tolua_usertype(L, TOLUA_CAST "tag_iterator"); tolua_module(L, NULL, 0); tolua_beginmodule(L, NULL); { tolua_module(L, TOLUA_CAST "gmtool", 0); tolua_beginmodule(L, TOLUA_CAST "gmtool"); { tolua_function(L, TOLUA_CAST "open", &tolua_state_open); tolua_function(L, TOLUA_CAST "close", &tolua_state_close); tolua_function(L, TOLUA_CAST "editor", &tolua_run_mapper); tolua_function(L, TOLUA_CAST "get_selection", &tolua_selected_regions); tolua_function(L, TOLUA_CAST "get_cursor", &tolua_current_region); tolua_function(L, TOLUA_CAST "highlight", &tolua_highlight_region); tolua_function(L, TOLUA_CAST "select", &tolua_select_region); tolua_function(L, TOLUA_CAST "select_at", &tolua_select_coordinate); tolua_function(L, TOLUA_CAST "set_display", &tolua_set_display); tolua_function(L, TOLUA_CAST "make_block", &tolua_make_block); tolua_function(L, TOLUA_CAST "make_island", &tolua_make_island); } tolua_endmodule(L); } tolua_endmodule(L); }
/* Open function */ TOLUA_API int tolua_tmodule_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,"A",1); tolua_beginmodule(tolua_S,"A"); tolua_variable(tolua_S,"a",tolua_get_A_a,tolua_set_A_a); tolua_module(tolua_S,"B",1); tolua_beginmodule(tolua_S,"B"); tolua_variable(tolua_S,"b",tolua_get_B_b,tolua_set_B_b); tolua_module(tolua_S,"C",1); tolua_beginmodule(tolua_S,"C"); tolua_variable(tolua_S,"c",tolua_get_C_c,tolua_set_C_c); tolua_endmodule(tolua_S); tolua_endmodule(tolua_S); tolua_endmodule(tolua_S); tolua_module(tolua_S,"A",1); tolua_beginmodule(tolua_S,"A"); tolua_variable(tolua_S,"d",tolua_get_A_d,tolua_set_A_d); tolua_endmodule(tolua_S); 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; }
TOLUA_API void tolua_open (lua_State* L) { int top = lua_gettop(L); lua_pushstring(L,"tolua_opened"); lua_rawget(L,LUA_REGISTRYINDEX); if (!lua_isboolean(L,-1)) { lua_pushstring(L,"tolua_opened"); lua_pushboolean(L,1); lua_rawset(L,LUA_REGISTRYINDEX); #ifndef LUA_VERSION_NUM /* only prior to lua 5.1 */ /* create peer object table */ lua_pushstring(L, "tolua_peers"); lua_newtable(L); /* make weak key metatable for peers indexed by userdata object */ lua_newtable(L); lua_pushliteral(L, "__mode"); lua_pushliteral(L, "k"); lua_rawset(L, -3); /* stack: string peers mt */ lua_setmetatable(L, -2); /* stack: string peers */ lua_rawset(L,LUA_REGISTRYINDEX); #endif /* create object ptr -> udata mapping table */ lua_pushstring(L,"tolua_ubox"); lua_newtable(L); /* make weak value metatable for ubox table to allow userdata to be garbage-collected */ lua_newtable(L); lua_pushliteral(L, "__mode"); lua_pushliteral(L, "v"); lua_rawset(L, -3); /* stack: string ubox mt */ lua_setmetatable(L, -2); /* stack: string ubox */ lua_rawset(L,LUA_REGISTRYINDEX); lua_pushstring(L,"tolua_super"); lua_newtable(L); lua_rawset(L,LUA_REGISTRYINDEX); lua_pushstring(L,"tolua_gc"); lua_newtable(L);lua_rawset(L,LUA_REGISTRYINDEX); /* create gc_event closure */ lua_pushstring(L, "tolua_gc_event"); lua_pushstring(L, "tolua_gc"); lua_rawget(L, LUA_REGISTRYINDEX); lua_pushstring(L, "tolua_super"); lua_rawget(L, LUA_REGISTRYINDEX); lua_pushcclosure(L, class_gc_event, 2); lua_rawset(L, LUA_REGISTRYINDEX); tolua_newmetatable(L,"tolua_commonclass"); tolua_module(L,NULL,0); tolua_beginmodule(L,NULL); tolua_module(L,"tolua",0); tolua_beginmodule(L,"tolua"); tolua_function(L,"type",tolua_bnd_type); tolua_function(L,"takeownership",tolua_bnd_takeownership); tolua_function(L,"releaseownership",tolua_bnd_releaseownership); tolua_function(L,"cast",tolua_bnd_cast); tolua_function(L,"inherit", tolua_bnd_inherit); #ifdef LUA_VERSION_NUM /* lua 5.1 */ tolua_function(L, "setpeer", tolua_bnd_setpeer); tolua_function(L, "getpeer", tolua_bnd_getpeer); #endif tolua_endmodule(L); tolua_endmodule(L); } lua_settop(L,top); }
/* Open function */ TOLUA_API int tolua_bindings_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,"atlantis",1); tolua_beginmodule(tolua_S,"atlantis"); tolua_cclass(tolua_S,"unit","unit","",NULL); tolua_beginmodule(tolua_S,"unit"); tolua_variable(tolua_S,"id",tolua_get_unit_id,tolua_set_unit_id); tolua_variable(tolua_S,"number",tolua_get_unit_number,tolua_set_unit_number); tolua_variable(tolua_S,"money",tolua_get_unit_money,tolua_set_unit_money); tolua_variable(tolua_S,"faction",tolua_get_unit_faction_ptr,NULL); tolua_variable(tolua_S,"region",tolua_get_unit_region_ptr,NULL); tolua_variable(tolua_S,"name",tolua_get_unit_name,tolua_set_unit_name); tolua_endmodule(tolua_S); tolua_cclass(tolua_S,"faction","faction","",NULL); tolua_beginmodule(tolua_S,"faction"); tolua_variable(tolua_S,"id",tolua_get_faction_id,tolua_set_faction_id); tolua_variable(tolua_S,"name",tolua_get_faction_name,tolua_set_faction_name); tolua_variable(tolua_S,"email",tolua_get_faction_email,tolua_set_faction_email); tolua_endmodule(tolua_S); tolua_cclass(tolua_S,"region","region","",NULL); tolua_beginmodule(tolua_S,"region"); tolua_variable(tolua_S,"id",tolua_get_region_id,tolua_set_region_id); tolua_variable(tolua_S,"x",tolua_get_region_x,tolua_set_region_x); tolua_variable(tolua_S,"y",tolua_get_region_y,tolua_set_region_y); tolua_variable(tolua_S,"peasants",tolua_get_region_peasants,tolua_set_region_peasants); tolua_variable(tolua_S,"money",tolua_get_region_money,tolua_set_region_money); tolua_variable(tolua_S,"name",tolua_get_region_name,tolua_set_region_name); tolua_variable(tolua_S,"terrain",tolua_get_region_terrain,tolua_set_region_terrain); tolua_endmodule(tolua_S); tolua_module(tolua_S,"regions",0); tolua_beginmodule(tolua_S,"regions"); tolua_function(tolua_S,"create",tolua_bindings_atlantis_regions_create00); tolua_function(tolua_S,"get",tolua_bindings_atlantis_regions_get00); tolua_endmodule(tolua_S); tolua_module(tolua_S,"factions",0); tolua_beginmodule(tolua_S,"factions"); tolua_function(tolua_S,"create",tolua_bindings_atlantis_factions_create00); tolua_function(tolua_S,"get",tolua_bindings_atlantis_factions_get00); tolua_endmodule(tolua_S); tolua_variable(tolua_S,"turn",tolua_get_atlantis_turn,tolua_set_atlantis_turn); tolua_function(tolua_S,"free_game",tolua_bindings_atlantis_free_game00); tolua_function(tolua_S,"read_config",tolua_bindings_atlantis_read_config00); tolua_function(tolua_S,"read_game",tolua_bindings_atlantis_read_game00); tolua_function(tolua_S,"write_game",tolua_bindings_atlantis_write_game00); tolua_function(tolua_S,"write_reports",tolua_bindings_atlantis_write_reports00); tolua_function(tolua_S,"read_orders",tolua_bindings_atlantis_read_orders00); tolua_function(tolua_S,"process",tolua_bindings_atlantis_process00); tolua_endmodule(tolua_S); tolua_endmodule(tolua_S); return 1; }
void tolua_storage_open(lua_State * L) { /* register user types */ tolua_usertype(L, TOLUA_CAST "storage"); tolua_module(L, NULL, 0); tolua_beginmodule(L, NULL); { tolua_cclass(L, TOLUA_CAST "storage", TOLUA_CAST "storage", TOLUA_CAST "", NULL); tolua_beginmodule(L, TOLUA_CAST "storage"); { tolua_function(L, TOLUA_CAST "__tostring", tolua_storage_tostring); tolua_function(L, TOLUA_CAST "write", tolua_storage_write); tolua_function(L, TOLUA_CAST "read_int", tolua_storage_read_int); tolua_function(L, TOLUA_CAST "read_float", tolua_storage_read_float); tolua_function(L, TOLUA_CAST "write_unit", tolua_storage_write_unit); tolua_function(L, TOLUA_CAST "read_unit", tolua_storage_read_unit); tolua_function(L, TOLUA_CAST "close", tolua_storage_close); tolua_function(L, TOLUA_CAST "create", tolua_storage_create); } tolua_endmodule(L); } tolua_endmodule(L); }
/* Open function */ TOLUA_API int tolua_AppstorePurchase_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,"CAppstorePurchase","CAppstorePurchase","",tolua_collect_CAppstorePurchase); #else tolua_cclass(tolua_S,"CAppstorePurchase","CAppstorePurchase","",NULL); #endif tolua_beginmodule(tolua_S,"CAppstorePurchase"); tolua_function(tolua_S,"new",tolua_AppstorePurchase_CAppstorePurchase_new00); tolua_function(tolua_S,"new_local",tolua_AppstorePurchase_CAppstorePurchase_new00_local); tolua_function(tolua_S,".call",tolua_AppstorePurchase_CAppstorePurchase_new00_local); tolua_function(tolua_S,"delete",tolua_AppstorePurchase_CAppstorePurchase_delete00); tolua_function(tolua_S,"getInstance",tolua_AppstorePurchase_CAppstorePurchase_getInstance00); tolua_function(tolua_S,"registerPaymentQueue",tolua_AppstorePurchase_CAppstorePurchase_registerPaymentQueue00); tolua_function(tolua_S,"registerIsCanMakePayments",tolua_AppstorePurchase_CAppstorePurchase_registerIsCanMakePayments00); tolua_function(tolua_S,"registerRequestProduct",tolua_AppstorePurchase_CAppstorePurchase_registerRequestProduct00); tolua_function(tolua_S,"excCallback",tolua_AppstorePurchase_CAppstorePurchase_excCallback00); tolua_function(tolua_S,"buyProduct",tolua_AppstorePurchase_CAppstorePurchase_buyProduct00); tolua_function(tolua_S,"excReuestProductCallback",tolua_AppstorePurchase_CAppstorePurchase_excReuestProductCallback00); tolua_function(tolua_S,"excPaymentQueue",tolua_AppstorePurchase_CAppstorePurchase_excPaymentQueue00); tolua_function(tolua_S,"setTranscationReceipt",tolua_AppstorePurchase_CAppstorePurchase_setTranscationReceipt00); tolua_function(tolua_S,"getTranscationReceipt",tolua_AppstorePurchase_CAppstorePurchase_getTranscationReceipt00); tolua_function(tolua_S,"setRecordTransactionErrorCode",tolua_AppstorePurchase_CAppstorePurchase_setRecordTransactionErrorCode00); tolua_function(tolua_S,"getRecordTransactionErrorCode",tolua_AppstorePurchase_CAppstorePurchase_getRecordTransactionErrorCode00); tolua_endmodule(tolua_S); tolua_endmodule(tolua_S); return 1; }
/* Open function */ TOLUA_API int tolua_FadeUtility_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,"FADEUTILITYPARAMS","FADEUTILITYPARAMS","",tolua_collect_FADEUTILITYPARAMS); #else tolua_cclass(tolua_S,"FADEUTILITYPARAMS","FADEUTILITYPARAMS","",NULL); #endif tolua_beginmodule(tolua_S,"FADEUTILITYPARAMS"); tolua_variable(tolua_S,"ObjectName",tolua_get_FADEUTILITYPARAMS_ObjectName_ptr,tolua_set_FADEUTILITYPARAMS_ObjectName_ptr); tolua_variable(tolua_S,"CallbackEvent",tolua_get_FADEUTILITYPARAMS_CallbackEvent_ptr,tolua_set_FADEUTILITYPARAMS_CallbackEvent_ptr); tolua_variable(tolua_S,"FadeTime",tolua_get_FADEUTILITYPARAMS_FadeTime,tolua_set_FADEUTILITYPARAMS_FadeTime); tolua_variable(tolua_S,"StartFadeAmount",tolua_get_FADEUTILITYPARAMS_StartFadeAmount,tolua_set_FADEUTILITYPARAMS_StartFadeAmount); tolua_variable(tolua_S,"EndFadeAmount",tolua_get_FADEUTILITYPARAMS_EndFadeAmount,tolua_set_FADEUTILITYPARAMS_EndFadeAmount); tolua_variable(tolua_S,"bClearOverride",tolua_get_FADEUTILITYPARAMS_bClearOverride,tolua_set_FADEUTILITYPARAMS_bClearOverride); tolua_function(tolua_S,"new",tolua_FadeUtility_FADEUTILITYPARAMS_new00); tolua_function(tolua_S,"new_local",tolua_FadeUtility_FADEUTILITYPARAMS_new00_local); tolua_function(tolua_S,".call",tolua_FadeUtility_FADEUTILITYPARAMS_new00_local); tolua_function(tolua_S,"delete",tolua_FadeUtility_FADEUTILITYPARAMS_delete00); tolua_function(tolua_S,"SIZEOF",tolua_FadeUtility_FADEUTILITYPARAMS_SIZEOF00); tolua_endmodule(tolua_S); tolua_endmodule(tolua_S); return 1; }
/* Open function */ TOLUA_API int tolua_tdirective_open (lua_State* tolua_S) { tolua_open(tolua_S); tolua_reg_types(tolua_S); tolua_module(tolua_S,NULL,1); tolua_beginmodule(tolua_S,NULL); tolua_variable(tolua_S,"a",tolua_get_a,tolua_set_a); { a = 3; } { /* begin embedded lua code */ static unsigned char B[] = { 10, 65, 32, 61, 32, 52,32 }; lua_dobuffer(tolua_S,(char*)B,sizeof(B),"tolua: embedded Lua code"); } /* end of embedded lua code */ { /* begin embedded lua code */ static unsigned char B[] = { 10,102,117,110, 99,116,105,111,110, 32,102,117,110, 99, 32, 40, 41, 10,114,101,116,117,114,110, 32, 53, 10,101,110,100, 32 }; lua_dobuffer(tolua_S,(char*)B,sizeof(B),"tolua: embedded Lua code"); } /* end of embedded lua code */ tolua_endmodule(tolua_S); return 1; }
//打开baseobject库 int baseobject_open(lua_State* L) { tolua_open(L); baseobject_reg_types(L); //tolua_module(L,NULL,0); tolua_beginmodule(L,NULL); { tolua_module(L,"Game",0); tolua_beginmodule(L,"Game"); { tolua_cclass(L,"BaseObject","CBaseObject","",collect_baseobject); tolua_beginmodule(L,"BaseObject"); { //==类型转换 tolua_function(L,"change_type", baseobject_change_type); //注册CBaseObject类的函数 tolua_variable(L,"id", baseobject_getid, NULL); tolua_variable(L,"type", baseobject_gettype, NULL); tolua_variable(L,"name", baseobject_getname, baseobject_setname); // tolua_function(L,"add_object", baseobject_add_object); // tolua_function(L,"remove_object", baseobject_remove_object); // tolua_function(L,"recursive_find_object", baseobject_recursive_find_object); } tolua_endmodule(L); } tolua_endmodule(L); } tolua_endmodule(L); return 1; }
int tolua_sqlite_open(lua_State * L) { /* register user types */ tolua_usertype(L, LTYPE_DB); tolua_module(L, NULL, 0); tolua_beginmodule(L, NULL); { tolua_cclass(L, LTYPE_DB, LTYPE_DB, TOLUA_CAST "", NULL); tolua_beginmodule(L, LTYPE_DB); { tolua_function(L, TOLUA_CAST "open", &tolua_db_create); tolua_function(L, TOLUA_CAST "close", &tolua_db_close); tolua_function(L, TOLUA_CAST "update_factions", &tolua_db_update_factions); tolua_function(L, TOLUA_CAST "update_scores", &tolua_db_update_scores); tolua_function(L, TOLUA_CAST "execute", &tolua_db_execute); } tolua_endmodule(L); } tolua_endmodule(L); return 0; }
/* Open function */ TOLUA_API int tolua_DecalScript_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,"ADDDECALSPRITEMESSAGE","ADDDECALSPRITEMESSAGE","",tolua_collect_ADDDECALSPRITEMESSAGE); #else tolua_cclass(tolua_S,"ADDDECALSPRITEMESSAGE","ADDDECALSPRITEMESSAGE","",NULL); #endif tolua_beginmodule(tolua_S,"ADDDECALSPRITEMESSAGE"); tolua_variable(tolua_S,"m_Size",tolua_get_ADDDECALSPRITEMESSAGE_m_Size,tolua_set_ADDDECALSPRITEMESSAGE_m_Size); tolua_variable(tolua_S,"m_Position",tolua_get_ADDDECALSPRITEMESSAGE_m_Position_ptr,tolua_set_ADDDECALSPRITEMESSAGE_m_Position_ptr); tolua_variable(tolua_S,"m_Normal",tolua_get_ADDDECALSPRITEMESSAGE_m_Normal_ptr,tolua_set_ADDDECALSPRITEMESSAGE_m_Normal_ptr); tolua_variable(tolua_S,"m_TimeLinger",tolua_get_ADDDECALSPRITEMESSAGE_m_TimeLinger,tolua_set_ADDDECALSPRITEMESSAGE_m_TimeLinger); tolua_variable(tolua_S,"m_FadeTime",tolua_get_ADDDECALSPRITEMESSAGE_m_FadeTime,tolua_set_ADDDECALSPRITEMESSAGE_m_FadeTime); tolua_variable(tolua_S,"m_Color",tolua_get_ADDDECALSPRITEMESSAGE_m_Color,tolua_set_ADDDECALSPRITEMESSAGE_m_Color); tolua_variable(tolua_S,"m_Texture",tolua_get_ADDDECALSPRITEMESSAGE_m_Texture_ptr,tolua_set_ADDDECALSPRITEMESSAGE_m_Texture_ptr); tolua_variable(tolua_S,"m_Effect",tolua_get_ADDDECALSPRITEMESSAGE_m_Effect_ptr,tolua_set_ADDDECALSPRITEMESSAGE_m_Effect_ptr); tolua_variable(tolua_S,"m_hsTextureName",tolua_get_ADDDECALSPRITEMESSAGE_m_hsTextureName_ptr,tolua_set_ADDDECALSPRITEMESSAGE_m_hsTextureName_ptr); tolua_function(tolua_S,"new",tolua_DecalScript_ADDDECALSPRITEMESSAGE_new00); tolua_function(tolua_S,"new_local",tolua_DecalScript_ADDDECALSPRITEMESSAGE_new00_local); tolua_function(tolua_S,".call",tolua_DecalScript_ADDDECALSPRITEMESSAGE_new00_local); tolua_function(tolua_S,"delete",tolua_DecalScript_ADDDECALSPRITEMESSAGE_delete00); tolua_function(tolua_S,"SIZEOF",tolua_DecalScript_ADDDECALSPRITEMESSAGE_SIZEOF00); tolua_endmodule(tolua_S); tolua_endmodule(tolua_S); return 1; }
/* 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; }
bool CLuaFn::InitClass() { if(NULL == m_pState) { printf("[CLuaFn::InitClass]m_pState is NULL.\n"); return false; } tolua_open(m_pState); tolua_module(m_pState, NULL, 0); tolua_beginmodule(m_pState, NULL); m_LuaFnRegister.AddFunc("LuaFn_Tcp_Print", LuaFn_Tcp_Print); m_LuaFnRegister.AddFunc("Lua_Tcp_Buffer_In_Int32", Lua_Tcp_Buffer_In_Int32); m_LuaFnRegister.AddFunc("Lua_Tcp_Buffer_In_Int16", Lua_Tcp_Buffer_In_Int16); m_LuaFnRegister.AddFunc("Lua_Tcp_Buffer_In_Int8", Lua_Tcp_Buffer_In_Int8); m_LuaFnRegister.AddFunc("Lua_Tcp_Buffer_In_Block", Lua_Tcp_Buffer_In_Block); m_LuaFnRegister.AddFunc("Lua_Tcp_Buffer_Out_Int32", Lua_Tcp_Buffer_Out_Int32); m_LuaFnRegister.AddFunc("Lua_Tcp_Buffer_Out_Int16", Lua_Tcp_Buffer_Out_Int16); m_LuaFnRegister.AddFunc("Lua_Tcp_Buffer_Out_Int8", Lua_Tcp_Buffer_Out_Int8); for(int i = 0; i < m_LuaFnRegister.GetSize(); i++) { _FuncInfo* pFuncInfo = m_LuaFnRegister.GetFuncInfo(i); if(NULL != pFuncInfo) { tolua_function(m_pState, pFuncInfo->m_strFuncName.c_str(), pFuncInfo->m_FuncExecute); } } tolua_endmodule(m_pState); return true; }
/* Open function */ TOLUA_API int tolua_GUID_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,"CGUID","CGUID","",tolua_collect_CGUID); #else tolua_cclass(tolua_S,"CGUID","CGUID","",NULL); #endif tolua_beginmodule(tolua_S,"CGUID"); tolua_function(tolua_S,"new",tolua_GUID_CGUID_new00); tolua_function(tolua_S,"new_local",tolua_GUID_CGUID_new00_local); tolua_function(tolua_S,".call",tolua_GUID_CGUID_new00_local); tolua_function(tolua_S,"delete",tolua_GUID_CGUID_delete00); tolua_function(tolua_S,"new",tolua_GUID_CGUID_new01); tolua_function(tolua_S,"new_local",tolua_GUID_CGUID_new01_local); tolua_function(tolua_S,".call",tolua_GUID_CGUID_new01_local); tolua_function(tolua_S,".eq",tolua_GUID_CGUID__eq00); tolua_function(tolua_S,"tostring",tolua_GUID_CGUID_tostring00); tolua_function(tolua_S,"IsInvalid",tolua_GUID_CGUID_IsInvalid00); tolua_function(tolua_S,"CreateGUID",tolua_GUID_CGUID_CreateGUID00); tolua_variable(tolua_S,"GUID_INVALID",tolua_get_CGUID_GUID_INVALID,tolua_set_CGUID_GUID_INVALID); 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 lib function */ LUALIB_API int luaopen_tdirective (lua_State* tolua_S) { tolua_open(tolua_S); tolua_reg_types(tolua_S); tolua_module(tolua_S,NULL,1); tolua_beginmodule(tolua_S,NULL); tolua_variable(tolua_S,"a",tolua_get_a,tolua_set_a); { a = 3; } { /* begin embedded lua code */ static unsigned char B[] = { 10, 65, 32, 61, 32, 52,32 }; 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 */ { /* begin embedded lua code */ static unsigned char B[] = { 10,100,111,102,105,108,101, 40, 34,109,121, 97,115,115,101, 114,116, 46,108,117, 97, 34, 41, 10,102,117,110, 99,116,105, 111,110, 32,102,117,110, 99, 32, 40, 41, 10,114,101,116,117, 114,110, 32, 53, 10,101,110,100,32 }; 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; }
static void extendFunctions(lua_State* tolua_S) { tolua_module(tolua_S,"cc",0); tolua_beginmodule(tolua_S,"cc"); tolua_function(tolua_S,"LuaLoadChunksFromZIP",tolua_Cocos2d_Function_loadChunksFromZIP); tolua_endmodule(tolua_S); }
/* Open function */ TOLUA_API int tolua_extensions_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_cclass(tolua_S,"CCPhysicsNode","CCPhysicsNode","CCNode",NULL); tolua_beginmodule(tolua_S,"CCPhysicsNode"); tolua_function(tolua_S,"getB2Body",tolua_extensions_CCPhysicsNode_getB2Body00); tolua_function(tolua_S,"setB2Body",tolua_extensions_CCPhysicsNode_setB2Body00); tolua_function(tolua_S,"getPTMRatio",tolua_extensions_CCPhysicsNode_getPTMRatio00); tolua_function(tolua_S,"setPTMRatio",tolua_extensions_CCPhysicsNode_setPTMRatio00); tolua_function(tolua_S,"create",tolua_extensions_CCPhysicsNode_create00); tolua_endmodule(tolua_S); tolua_cclass(tolua_S,"CCPhysicsSprite","CCPhysicsSprite","CCSprite",NULL); tolua_beginmodule(tolua_S,"CCPhysicsSprite"); tolua_function(tolua_S,"getB2Body",tolua_extensions_CCPhysicsSprite_getB2Body00); tolua_function(tolua_S,"setB2Body",tolua_extensions_CCPhysicsSprite_setB2Body00); tolua_function(tolua_S,"getPTMRatio",tolua_extensions_CCPhysicsSprite_getPTMRatio00); tolua_function(tolua_S,"setPTMRatio",tolua_extensions_CCPhysicsSprite_setPTMRatio00); tolua_function(tolua_S,"createWithTexture",tolua_extensions_CCPhysicsSprite_createWithTexture00); tolua_function(tolua_S,"createWithTexture",tolua_extensions_CCPhysicsSprite_createWithTexture01); tolua_function(tolua_S,"createWithSpriteFrame",tolua_extensions_CCPhysicsSprite_createWithSpriteFrame00); tolua_function(tolua_S,"createWithSpriteFrameName",tolua_extensions_CCPhysicsSprite_createWithSpriteFrameName00); tolua_function(tolua_S,"create",tolua_extensions_CCPhysicsSprite_create00); tolua_function(tolua_S,"create",tolua_extensions_CCPhysicsSprite_create01); tolua_function(tolua_S,"create",tolua_extensions_CCPhysicsSprite_create02); tolua_endmodule(tolua_S); tolua_endmodule(tolua_S); return 1; }
/* Open function */ int tolua_Interface_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_cclass(tolua_S,"State","State","",NULL); tolua_beginmodule(tolua_S,"State"); tolua_function(tolua_S,"getName",tolua_Interface_State_getName00); tolua_endmodule(tolua_S); tolua_cclass(tolua_S,"Overseer","Overseer","",NULL); tolua_beginmodule(tolua_S,"Overseer"); tolua_function(tolua_S,"getSingletonPtr",tolua_Interface_Overseer_getSingletonPtr00); tolua_function(tolua_S,"getSingleton",tolua_Interface_Overseer_getSingleton00); tolua_function(tolua_S,"changeState",tolua_Interface_Overseer_changeState00); tolua_function(tolua_S,"pushState",tolua_Interface_Overseer_pushState00); tolua_function(tolua_S,"popState",tolua_Interface_Overseer_popState00); tolua_function(tolua_S,"getCurrentState",tolua_Interface_Overseer_getCurrentState00); tolua_function(tolua_S,"exit",tolua_Interface_Overseer_exit00); tolua_endmodule(tolua_S); tolua_cclass(tolua_S,"TitleScreenState","TitleScreenState","State",NULL); tolua_beginmodule(tolua_S,"TitleScreenState"); tolua_function(tolua_S,"getStatus",tolua_Interface_TitleScreenState_getStatus00); tolua_endmodule(tolua_S); tolua_endmodule(tolua_S); return 1; }
int tolua_ftk_config_init(lua_State* L) { tolua_open(L); tolua_reg_types(L); tolua_module(L, NULL, 0); tolua_beginmodule(L, NULL); tolua_cclass(L,"FtkConfig", "FtkConfig", "", NULL); tolua_beginmodule(L, "FtkConfig"); tolua_function(L, "GetTheme", lua_ftk_config_get_theme); tolua_function(L, "GetDataDir", lua_ftk_config_get_data_dir); tolua_function(L, "GetDataRootDir", lua_ftk_config_get_data_root_dir); tolua_function(L, "GetTestDataDir", lua_ftk_config_get_test_data_dir); tolua_function(L, "GetEnableCursor", lua_ftk_config_get_enable_cursor); tolua_function(L, "GetEnableStatusBar", lua_ftk_config_get_enable_status_bar); tolua_function(L, "SetTheme", lua_ftk_config_set_theme); tolua_function(L, "SetDataDir", lua_ftk_config_set_data_dir); tolua_function(L, "SetTestDataDir", lua_ftk_config_set_test_data_dir); tolua_function(L, "SetEnableCursor", lua_ftk_config_set_enable_cursor); tolua_function(L, "SetEnableStatusBar", lua_ftk_config_set_enable_status_bar); tolua_endmodule(L); tolua_endmodule(L); return 1; }
/* Open function */ TOLUA_API int tolua_XGameStateManger_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_cclass(tolua_S,"XGameStateManger","XGameStateManger","",NULL); tolua_beginmodule(tolua_S,"XGameStateManger"); tolua_function(tolua_S,"ChangeState",tolua_XGameStateManger_XGameStateManger_ChangeState00); tolua_function(tolua_S,"GetGameState",tolua_XGameStateManger_XGameStateManger_GetGameState00); tolua_function(tolua_S,"GetCurrState",tolua_XGameStateManger_XGameStateManger_GetCurrState00); tolua_function(tolua_S,"OnJump",tolua_XGameStateManger_XGameStateManger_OnJump00); tolua_function(tolua_S,"SetShowJoystick",tolua_XGameStateManger_XGameStateManger_SetShowJoystick00); tolua_function(tolua_S,"SetCityTouch",tolua_XGameStateManger_XGameStateManger_SetCityTouch00); tolua_function(tolua_S,"SetJoyStickStates",tolua_XGameStateManger_XGameStateManger_SetJoyStickStates00); tolua_function(tolua_S,"UseSkillByDir",tolua_XGameStateManger_XGameStateManger_UseSkillByDir00); tolua_function(tolua_S,"GetActivityRoleID",tolua_XGameStateManger_XGameStateManger_GetActivityRoleID00); tolua_function(tolua_S,"SetHEARTBEAT_REQ",tolua_XGameStateManger_XGameStateManger_SetHEARTBEAT_REQ00); tolua_function(tolua_S,"OnReLoadGame",tolua_XGameStateManger_XGameStateManger_OnReLoadGame00); tolua_function(tolua_S,"SetCheckWaiting",tolua_XGameStateManger_XGameStateManger_SetCheckWaiting00); tolua_function(tolua_S,"GetCheckWaiting",tolua_XGameStateManger_XGameStateManger_GetCheckWaiting00); tolua_function(tolua_S,"NetClose",tolua_XGameStateManger_XGameStateManger_NetClose00); tolua_function(tolua_S,"OnNetReLoadSucc",tolua_XGameStateManger_XGameStateManger_OnNetReLoadSucc00); tolua_function(tolua_S,"OnNetReLoadFaild",tolua_XGameStateManger_XGameStateManger_OnNetReLoadFaild00); tolua_function(tolua_S,"GetCurrMap",tolua_XGameStateManger_XGameStateManger_GetCurrMap00); tolua_endmodule(tolua_S); tolua_endmodule(tolua_S); return 1; }
void ScriptManager::beginRegister() { assert(_luaState && _regNestingLevel == 0); ++_regNestingLevel; tolua_module(_luaState, 0, 1); tolua_beginmodule(_luaState, 0); }
/* 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 */ int tolua__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,"IntensityCEGUI",0); tolua_beginmodule(tolua_S,"IntensityCEGUI"); tolua_function(tolua_S,"luaNewMap",tolua__IntensityCEGUI_luaNewMap00); tolua_function(tolua_S,"luaStartTest",tolua__IntensityCEGUI_luaStartTest00); tolua_function(tolua_S,"luaQuit",tolua__IntensityCEGUI_luaQuit00); tolua_function(tolua_S,"luaCharacterView",tolua__IntensityCEGUI_luaCharacterView00); tolua_function(tolua_S,"luaGetUsername",tolua__IntensityCEGUI_luaGetUsername00); tolua_function(tolua_S,"luaGetPassword",tolua__IntensityCEGUI_luaGetPassword00); tolua_function(tolua_S,"luaLogin",tolua__IntensityCEGUI_luaLogin00); tolua_function(tolua_S,"luaSetHorns",tolua__IntensityCEGUI_luaSetHorns00); tolua_function(tolua_S,"luaSetArmor",tolua__IntensityCEGUI_luaSetArmor00); tolua_function(tolua_S,"luaSetRightWeapon",tolua__IntensityCEGUI_luaSetRightWeapon00); tolua_function(tolua_S,"luaSetLeftWeapon",tolua__IntensityCEGUI_luaSetLeftWeapon00); tolua_function(tolua_S,"luaSetRightWeaponSparkle",tolua__IntensityCEGUI_luaSetRightWeaponSparkle00); tolua_function(tolua_S,"luaToggleEdit",tolua__IntensityCEGUI_luaToggleEdit00); tolua_function(tolua_S,"luaGetEditedUniqueId",tolua__IntensityCEGUI_luaGetEditedUniqueId00); tolua_function(tolua_S,"luaGetEditedClass",tolua__IntensityCEGUI_luaGetEditedClass00); tolua_function(tolua_S,"lauGetCurrEditedEntityKey",tolua__IntensityCEGUI_lauGetCurrEditedEntityKey00); tolua_function(tolua_S,"lauGetCurrEditedEntityGUIName",tolua__IntensityCEGUI_lauGetCurrEditedEntityGUIName00); tolua_function(tolua_S,"lauGetCurrEditedEntityValue",tolua__IntensityCEGUI_lauGetCurrEditedEntityValue00); tolua_function(tolua_S,"luaSetCurrEditedEntityValue",tolua__IntensityCEGUI_luaSetCurrEditedEntityValue00); tolua_function(tolua_S,"luaExecuteSauerCommand",tolua__IntensityCEGUI_luaExecuteSauerCommand00); tolua_function(tolua_S,"luaGetSauerVariable",tolua__IntensityCEGUI_luaGetSauerVariable00); tolua_function(tolua_S,"luaExecutePythonScript",tolua__IntensityCEGUI_luaExecutePythonScript00); tolua_function(tolua_S,"luaEvaluatePythonScriptInteger",tolua__IntensityCEGUI_luaEvaluatePythonScriptInteger00); tolua_function(tolua_S,"luaEvaluatePythonScriptFloat",tolua__IntensityCEGUI_luaEvaluatePythonScriptFloat00); tolua_function(tolua_S,"luaEvaluatePythonScriptString",tolua__IntensityCEGUI_luaEvaluatePythonScriptString00); tolua_function(tolua_S,"luaGetQueuedMessageTitle",tolua__IntensityCEGUI_luaGetQueuedMessageTitle00); tolua_function(tolua_S,"luaGetQueuedMessageText",tolua__IntensityCEGUI_luaGetQueuedMessageText00); tolua_function(tolua_S,"lauGetCurrClass",tolua__IntensityCEGUI_lauGetCurrClass00); tolua_function(tolua_S,"queueEntityCreation",tolua__IntensityCEGUI_queueEntityCreation00); tolua_function(tolua_S,"luaPopulateEntityList",tolua__IntensityCEGUI_luaPopulateEntityList00); tolua_function(tolua_S,"luaFocusOnEntity",tolua__IntensityCEGUI_luaFocusOnEntity00); tolua_function(tolua_S,"luaPopulateSettings",tolua__IntensityCEGUI_luaPopulateSettings00); tolua_function(tolua_S,"luaApplySoundSettings",tolua__IntensityCEGUI_luaApplySoundSettings00); tolua_endmodule(tolua_S); tolua_endmodule(tolua_S); return 1; }
TOLUA_API int register_all_PluginValuePotionLua_helper(lua_State* L) { tolua_module(L,"sdkbox",0); tolua_beginmodule(L,"sdkbox"); extern_PluginValuePotion(L); tolua_endmodule(L); return 1; }