/* 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;
}
Beispiel #2
0
/* 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;
}
Beispiel #3
0
void ScriptManager::openLuaState() {
	_luaState = lua_open();
	if (!_luaState) {
		throw Common::Exception("Failed to open Lua state");
	}

	luaopen_base(_luaState);
	luaopen_io(_luaState);
	luaopen_math(_luaState);
	luaopen_string(_luaState);
	luaopen_table(_luaState);
	luaopen_loadlib(_luaState);
	luaopen_debug(_luaState);

	tolua_open(_luaState);

	lua_atpanic(_luaState, &ScriptManager::atPanic);
}
/* Open function */
TOLUA_API int tolua_PlayerControl_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,"PH",0);
  tolua_beginmodule(tolua_S,"PH");
   tolua_cclass(tolua_S,"PlayerControl","PH::PlayerControl","IObject",NULL);
   tolua_beginmodule(tolua_S,"PlayerControl");
    tolua_function(tolua_S,"getHealth",tolua_PlayerControl_PH_PlayerControl_getHealth00);
    tolua_function(tolua_S,"getMaxHealth",tolua_PlayerControl_PH_PlayerControl_getMaxHealth00);
    tolua_variable(tolua_S,"__CCObject__",tolua_get_PH__PlayerControl___CCObject__,NULL);
   tolua_endmodule(tolua_S);
  tolua_endmodule(tolua_S);
 tolua_endmodule(tolua_S);
 return 1;
}
Beispiel #5
0
int tolua_ftk_combo_box_init(lua_State* L)
{
	tolua_open(L);
	tolua_reg_types(L);
	tolua_module(L, NULL, 0);
	tolua_beginmodule(L, NULL);
	tolua_cclass(L,"FtkComboBox", "FtkComboBox", "FtkWidget", NULL);
	tolua_beginmodule(L, "FtkComboBox");
	tolua_function(L, "Create", lua_ftk_combo_box_create);
	tolua_function(L, "GetText", lua_ftk_combo_box_get_text);
	tolua_function(L, "SetText", lua_ftk_combo_box_set_text);
	tolua_function(L, "Append", lua_ftk_combo_box_append);
	tolua_endmodule(L);
	tolua_endmodule(L);


	return 1;
}
/* Open lib function */
LUALIB_API int luaopen_config (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,"eressea",0);
 tolua_beginmodule(tolua_S,"eressea");
 tolua_module(tolua_S,"config",0);
 tolua_beginmodule(tolua_S,"config");
 tolua_function(tolua_S,"reset",tolua_config_eressea_config_reset00);
 tolua_function(tolua_S,"read",tolua_config_eressea_config_read00);
 tolua_function(tolua_S,"parse",tolua_config_eressea_config_parse00);
 tolua_endmodule(tolua_S);
 tolua_endmodule(tolua_S);
 tolua_endmodule(tolua_S);
 return 1;
}
Beispiel #7
0
/* Open function */
TOLUA_API int tolua_HeroControl_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,"PH",0);
  tolua_beginmodule(tolua_S,"PH");
   tolua_cclass(tolua_S,"HeroControl","PH::HeroControl","",NULL);
   tolua_beginmodule(tolua_S,"HeroControl");
    tolua_function(tolua_S,"getHeroId",tolua_HeroControl_PH_HeroControl_getHeroId00);
    tolua_function(tolua_S,"getColor",tolua_HeroControl_PH_HeroControl_getColor00);
    tolua_function(tolua_S,"getEnergy",tolua_HeroControl_PH_HeroControl_getEnergy00);
   tolua_endmodule(tolua_S);
  tolua_endmodule(tolua_S);
 tolua_endmodule(tolua_S);
 return 1;
}
Beispiel #8
0
//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_toexport_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,"myClass","myClass","",tolua_collect_myClass);
#else
 tolua_cclass(tolua_S,"myClass","myClass","",NULL);
#endif
 tolua_beginmodule(tolua_S,"myClass");
 tolua_function(tolua_S,"new",tolua_toexport_myClass_new00);
 tolua_function(tolua_S,"delete",tolua_toexport_myClass_delete00);
 tolua_function(tolua_S,"set",tolua_toexport_myClass_set00);
 tolua_endmodule(tolua_S);
 tolua_endmodule(tolua_S);
 return 1;
}
Beispiel #10
0
int tolua_ftk_popup_menu_init(lua_State* L)
{
	tolua_open(L);
	tolua_reg_types(L);
	tolua_module(L, NULL, 0);
	tolua_beginmodule(L, NULL);
	tolua_cclass(L,"FtkPopupMenu", "FtkPopupMenu", "FtkWidget", NULL);
	tolua_beginmodule(L, "FtkPopupMenu");
	tolua_function(L, "Create", lua_ftk_popup_menu_create);
	tolua_function(L, "Add", lua_ftk_popup_menu_add);
	tolua_function(L, "GetSelected", lua_ftk_popup_menu_get_selected);
	tolua_function(L, "CalcHeight", lua_ftk_popup_menu_calc_height);
	tolua_function(L, "SetClickedListener", lua_ftk_popup_menu_set_clicked_listener);
	tolua_endmodule(L);
	tolua_endmodule(L);


	return 1;
}
Beispiel #11
0
int tolua_ftk_file_browser_init(lua_State* L)
{
	tolua_open(L);
	tolua_reg_types(L);
	tolua_module(L, NULL, 0);
	tolua_beginmodule(L, NULL);
	tolua_cclass(L,"FtkFileBrowser", "FtkFileBrowser", "FtkWidget", NULL);
	tolua_beginmodule(L, "FtkFileBrowser");
	tolua_function(L, "Create", lua_ftk_file_browser_create);
	tolua_function(L, "SetPath", lua_ftk_file_browser_set_path);
	tolua_function(L, "SetFilter", lua_ftk_file_browser_set_filter);
	tolua_function(L, "SetChoosedHandler", lua_ftk_file_browser_set_choosed_handler);
	tolua_function(L, "Load", lua_ftk_file_browser_load);
	tolua_endmodule(L);
	tolua_endmodule(L);


	return 1;
}
Beispiel #12
0
int tolua_ftk_text_view_init(lua_State* L)
{
	tolua_open(L);
	tolua_reg_types(L);
	tolua_module(L, NULL, 0);
	tolua_beginmodule(L, NULL);
	tolua_cclass(L,"FtkTextView", "FtkTextView", "FtkWidget", NULL);
	tolua_beginmodule(L, "FtkTextView");
	tolua_function(L, "Create", lua_ftk_text_view_create);
	tolua_function(L, "GetText", lua_ftk_text_view_get_text);
	tolua_function(L, "SetText", lua_ftk_text_view_set_text);
	tolua_function(L, "InsertText", lua_ftk_text_view_insert_text);
	tolua_function(L, "SetReadonly", lua_ftk_text_view_set_readonly);
	tolua_endmodule(L);
	tolua_endmodule(L);


	return 1;
}
Beispiel #13
0
int lua_register_game(lua_State* L)
{
    tolua_open(L);
    tolua_module(L, "game", 0);
    tolua_beginmodule(L, "game");
    CLOVER_SCOPE_EXIT
    {
        tolua_endmodule(L);
    };

    tolua_function(L, "removeAllUnusedResources", lua_removeAllUnusedResources);
    tolua_function(L, "getPackagePath", lua_getPackagePath);
    tolua_function(L, "getResourcePath", lua_getResourcePath);
    tolua_function(L, "saveDecryptString", lua_saveDecryptString);
    tolua_function(L, "readDecryptFile", lua_readDecryptFile);
    tolua_function(L, "removeDirContent", lua_removeDirContent);
    tolua_function(L, "bxor", lua_bxor);
    return 0;
}
Beispiel #14
0
int tolua_ftk_entry_init(lua_State* L)
{
	tolua_open(L);
	tolua_reg_types(L);
	tolua_module(L, NULL, 0);
	tolua_beginmodule(L, NULL);
	tolua_cclass(L,"FtkEntry", "FtkEntry", "FtkWidget", NULL);
	tolua_beginmodule(L, "FtkEntry");
	tolua_function(L, "Create", lua_ftk_entry_create);
	tolua_function(L, "GetText", lua_ftk_entry_get_text);
	tolua_function(L, "SetText", lua_ftk_entry_set_text);
	tolua_function(L, "SetInputType", lua_ftk_entry_set_input_type);
	tolua_function(L, "InsertText", lua_ftk_entry_insert_text);
	tolua_endmodule(L);
	tolua_endmodule(L);


	return 1;
}
Beispiel #15
0
/* Open function */
TOLUA_API int tolua_Player_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,"Player","Player","",NULL);
  tolua_beginmodule(tolua_S,"Player");
   tolua_function(tolua_S,"addItem",tolua_Player_Player_addItem00);
   tolua_function(tolua_S,"setHealth",tolua_Player_Player_setHealth00);
   tolua_function(tolua_S,"getHealth",tolua_Player_Player_getHealth00);
   tolua_function(tolua_S,"setMaxHealth",tolua_Player_Player_setMaxHealth00);
   tolua_function(tolua_S,"getMaxHealth",tolua_Player_Player_getMaxHealth00);
   tolua_function(tolua_S,"setFactionStance",tolua_Player_Player_setFactionStance00);
   tolua_function(tolua_S,"getFactionStance",tolua_Player_Player_getFactionStance00);
  tolua_endmodule(tolua_S);
 tolua_endmodule(tolua_S);
 return 1;
}
Beispiel #16
0
/* Open lib function */
LUALIB_API int luaopen_game (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,"eressea",0);
 tolua_beginmodule(tolua_S,"eressea");
 tolua_module(tolua_S,"game",0);
 tolua_beginmodule(tolua_S,"game");
 tolua_function(tolua_S,"reset",tolua_game_eressea_game_reset00);
 tolua_function(tolua_S,"read",tolua_game_eressea_game_read00);
 tolua_function(tolua_S,"write",tolua_game_eressea_game_write00);
 tolua_function(tolua_S,"export",tolua_game_eressea_game_export00);
 tolua_function(tolua_S,"import",tolua_game_eressea_game_import00);
 tolua_endmodule(tolua_S);
 tolua_endmodule(tolua_S);
 tolua_endmodule(tolua_S);
 return 1;
}
//--------------------------------------
int register_extend_module(lua_State* L)
{
    lua_getglobal(L, "_G");
    if (lua_istable(L,-1))//stack:...,_G,
    {
        tolua_open(L);
        
        tolua_module(L, "extend", 0);
        tolua_beginmodule(L, "extend");
        
        lua_register_statistic(L);
        lua_register_advertisement(L);
        
        tolua_endmodule(L);

    }
    lua_pop(L, 1);
    
    return 1;
}
Beispiel #18
0
int tolua_ftk_bitmap_init(lua_State* L)
{
	tolua_open(L);
	tolua_reg_types(L);
	tolua_module(L, NULL, 0);
	tolua_beginmodule(L, NULL);
	tolua_cclass(L,"FtkBitmap", "FtkBitmap", "", NULL);
	tolua_beginmodule(L, "FtkBitmap");
	tolua_function(L, "Create", lua_ftk_bitmap_create);
	tolua_function(L, "Width", lua_ftk_bitmap_width);
	tolua_function(L, "Height", lua_ftk_bitmap_height);
	tolua_function(L, "Bits", lua_ftk_bitmap_bits);
	tolua_function(L, "Ref", lua_ftk_bitmap_ref);
	tolua_function(L, "Unref", lua_ftk_bitmap_unref);
	tolua_endmodule(L);
	tolua_endmodule(L);


	return 1;
}
Beispiel #19
0
/* Open function */
int tolua_sound_open (lua_State* tolua_S)
{
 tolua_open(tolua_S);
 toluaI_reg_types(tolua_S);
 tolua_module(tolua_S,"sound");
 tolua_function(tolua_S,"sound","__load_music",toluaI_sound_sound___load_music00);
 tolua_function(tolua_S,"sound","__play_music",toluaI_sound_sound___play_music00);
 tolua_function(tolua_S,"sound","is_playing_music",toluaI_sound_sound_is_playing_music00);
 tolua_function(tolua_S,"sound","is_paused_music",toluaI_sound_sound_is_paused_music00);
 tolua_function(tolua_S,"sound","pause_music",toluaI_sound_sound_pause_music00);
 tolua_function(tolua_S,"sound","is_fading_music",toluaI_sound_sound_is_fading_music00);
 tolua_function(tolua_S,"sound","resume_music",toluaI_sound_sound_resume_music00);
 tolua_function(tolua_S,"sound","fade_out_music",toluaI_sound_sound_fade_out_music00);
 tolua_function(tolua_S,"sound","stop_music",toluaI_sound_sound_stop_music00);
 tolua_function(tolua_S,"sound","volume_music",toluaI_sound_sound_volume_music00);
 tolua_function(tolua_S,"sound","set_position_music",toluaI_sound_sound_set_position_music00);
 tolua_function(tolua_S,"sound","__load_sample",toluaI_sound_sound___load_sample00);
 tolua_function(tolua_S,"sound","__play_sample",toluaI_sound_sound___play_sample00);
 tolua_tablevar(tolua_S,"sound","not_available",toluaI_get_sound_sound_not_available,toluaI_set_sound_sound_not_available);
 return 1;
}
Beispiel #20
0
/* Open lib function */
LUALIB_API int luaopen_tnamespace (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_endmodule(tolua_S);
 return 1;
}
Beispiel #21
0
/* Open function */
TOLUA_API int tolua_ClassTest_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,"CClassTest","CClassTest","",tolua_collect_CClassTest);
  #else
  tolua_cclass(tolua_S,"CClassTest","CClassTest","",NULL);
  #endif
  tolua_beginmodule(tolua_S,"CClassTest");
   tolua_function(tolua_S,"new",tolua_ClassTest_CClassTest_new00);
   tolua_function(tolua_S,"new_local",tolua_ClassTest_CClassTest_new00_local);
   tolua_function(tolua_S,".call",tolua_ClassTest_CClassTest_new00_local);
   tolua_function(tolua_S,"delete",tolua_ClassTest_CClassTest_delete00);
   tolua_function(tolua_S,"sum",tolua_ClassTest_CClassTest_sum00);
  tolua_endmodule(tolua_S);
 tolua_endmodule(tolua_S);
 return 1;
}
Beispiel #22
0
/* Open function */
TOLUA_API int tolua_lok_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,"ok","ok","",tolua_collect_ok);
  #else
  tolua_cclass(tolua_S,"ok","ok","",NULL);
  #endif
  tolua_beginmodule(tolua_S,"ok");
   tolua_function(tolua_S,"show",tolua_lok_ok_show00);
   tolua_function(tolua_S,"new",tolua_lok_ok_new00);
   tolua_function(tolua_S,"new_local",tolua_lok_ok_new00_local);
   tolua_function(tolua_S,".call",tolua_lok_ok_new00_local);
   tolua_function(tolua_S,"delete",tolua_lok_ok_delete00);
  tolua_endmodule(tolua_S);
 tolua_endmodule(tolua_S);
 return 1;
}
/* Open function */
TOLUA_API int tolua_Level_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,"Level","Level","",tolua_collect_Level);
  #else
  tolua_cclass(tolua_S,"Level","Level","",NULL);
  #endif
  tolua_beginmodule(tolua_S,"Level");
   tolua_function(tolua_S,"new",tolua_Level_Level_new00);
   tolua_function(tolua_S,"new_local",tolua_Level_Level_new00_local);
   tolua_function(tolua_S,".call",tolua_Level_Level_new00_local);
   tolua_function(tolua_S,"addActor",tolua_Level_Level_addActor00);
   tolua_function(tolua_S,"addActor",tolua_Level_Level_addActor01);
  tolua_endmodule(tolua_S);
 tolua_endmodule(tolua_S);
 return 1;
}
Beispiel #24
0
/* Open function */
TOLUA_API int tolua_Attack_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,"Attack","Attack","",tolua_collect_Attack);
  #else
  tolua_cclass(tolua_S,"Attack","Attack","",NULL);
  #endif
  tolua_beginmodule(tolua_S,"Attack");
   tolua_function(tolua_S,"new",tolua_Attack_Attack_new00);
   tolua_function(tolua_S,"new_local",tolua_Attack_Attack_new00_local);
   tolua_function(tolua_S,".call",tolua_Attack_Attack_new00_local);
   tolua_function(tolua_S,"new",tolua_Attack_Attack_new01);
   tolua_function(tolua_S,"new_local",tolua_Attack_Attack_new01_local);
   tolua_function(tolua_S,".call",tolua_Attack_Attack_new01_local);
  tolua_endmodule(tolua_S);
 tolua_endmodule(tolua_S);
 return 1;
}
/* Open function */
TOLUA_API int tolua_AIObjectScript_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,"COMMANDSEQUENCEPARAMS","COMMANDSEQUENCEPARAMS","",tolua_collect_COMMANDSEQUENCEPARAMS);
 #else
 tolua_cclass(tolua_S,"COMMANDSEQUENCEPARAMS","COMMANDSEQUENCEPARAMS","",NULL);
 #endif
 tolua_beginmodule(tolua_S,"COMMANDSEQUENCEPARAMS");
  tolua_variable(tolua_S,"targetName",tolua_get_COMMANDSEQUENCEPARAMS_targetName_ptr,tolua_set_COMMANDSEQUENCEPARAMS_targetName_ptr);
  tolua_function(tolua_S,"new",tolua_AIObjectScript_COMMANDSEQUENCEPARAMS_new00);
  tolua_function(tolua_S,"new_local",tolua_AIObjectScript_COMMANDSEQUENCEPARAMS_new00_local);
  tolua_function(tolua_S,".call",tolua_AIObjectScript_COMMANDSEQUENCEPARAMS_new00_local);
  tolua_function(tolua_S,"delete",tolua_AIObjectScript_COMMANDSEQUENCEPARAMS_delete00);
  tolua_function(tolua_S,"SIZEOF",tolua_AIObjectScript_COMMANDSEQUENCEPARAMS_SIZEOF00);
 tolua_endmodule(tolua_S);
 tolua_endmodule(tolua_S);
 return 1;
}
Beispiel #26
0
int tolua_ftk_fs_init(lua_State* L)
{
	tolua_open(L);
	tolua_reg_types(L);
	tolua_module(L, NULL, 0);
	tolua_beginmodule(L, NULL);
	tolua_cclass(L,"FtkFs", "FtkFs", "", NULL);
	tolua_beginmodule(L, "FtkFs");
	tolua_function(L, "Delete", lua_ftk_fs_delete);
	tolua_function(L, "DeleteDir", lua_ftk_fs_delete_dir);
	tolua_function(L, "DeleteFile", lua_ftk_fs_delete_file);
	tolua_function(L, "CreateDir", lua_ftk_fs_create_dir);
	tolua_function(L, "ChangeDir", lua_ftk_fs_change_dir);
	tolua_function(L, "Move", lua_ftk_fs_move);
	tolua_function(L, "Copy", lua_ftk_fs_copy);
	tolua_function(L, "IsRoot", lua_ftk_fs_is_root);
	tolua_endmodule(L);
	tolua_endmodule(L);


	return 1;
}
Beispiel #27
0
int tolua_ftk_sprite_init(lua_State* L)
{
	tolua_open(L);
	tolua_reg_types(L);
	tolua_module(L, NULL, 0);
	tolua_beginmodule(L, NULL);
	tolua_cclass(L,"FtkSprite", "FtkSprite", "", NULL);
	tolua_beginmodule(L, "FtkSprite");
	tolua_function(L, "Create", lua_ftk_sprite_create);
	tolua_function(L, "GetX", lua_ftk_sprite_get_x);
	tolua_function(L, "GetY", lua_ftk_sprite_get_y);
	tolua_function(L, "IsVisible", lua_ftk_sprite_is_visible);
	tolua_function(L, "Show", lua_ftk_sprite_show);
	tolua_function(L, "Move", lua_ftk_sprite_move);
	tolua_function(L, "SetIcon", lua_ftk_sprite_set_icon);
	tolua_function(L, "SetMoveListener", lua_ftk_sprite_set_move_listener);
	tolua_function(L, "Destroy", lua_ftk_sprite_destroy);
	tolua_endmodule(L);
	tolua_endmodule(L);


	return 1;
}
//打开Dialog库
int  game_client_tree_open(lua_State* L)
{
	tolua_open(L);
	game_client_tree_reg_types(L);
	tolua_module(L,NULL,0);
	tolua_beginmodule(L,NULL);
	{
		tolua_module(L,"Game",0);
		tolua_beginmodule(L,"Game");
		{
			tolua_cclass(L,"GameClientTree","CTreeGameClient","",NULL);
			tolua_beginmodule(L,"GameClientTree");
			{
				tolua_function(L,"insert_client_item",	game_client_tree_insert_client_item);
				tolua_function(L,"delete_client_item",	game_client_tree_delete_client_item);
			}
			tolua_endmodule(L);
		}
		tolua_endmodule(L);
	}
	tolua_endmodule(L);
	return 1;
}
Beispiel #29
0
int tolua_ftk_structs_init(lua_State* L)
{
	tolua_open(L);
	tolua_reg_types(L);
	tolua_module(L, NULL, 0);
	tolua_beginmodule(L, NULL);

	tolua_cclass(L, "FtkEvent", "FtkEvent", "", NULL);
	tolua_beginmodule(L, "FtkEvent");
	tolua_function(L, "Create", lua_ftk_event_create);
	tolua_variable(L, "type",tolua_get_FtkEvent_type, tolua_set_FtkEvent_type);
	tolua_variable(L, "widget",tolua_get_FtkEvent_widget, tolua_set_FtkEvent_widget);
	tolua_variable(L, "time",tolua_get_FtkEvent_time, tolua_set_FtkEvent_time);
	tolua_variable(L, "u_key_code",tolua_get_FtkEvent_u_key_code, tolua_set_FtkEvent_u_key_code);
	tolua_variable(L, "u_mouse_press",tolua_get_FtkEvent_u_mouse_press, tolua_set_FtkEvent_u_mouse_press);
	tolua_variable(L, "u_mouse_button",tolua_get_FtkEvent_u_mouse_button, tolua_set_FtkEvent_u_mouse_button);
	tolua_variable(L, "u_mouse_x",tolua_get_FtkEvent_u_mouse_x, tolua_set_FtkEvent_u_mouse_x);
	tolua_variable(L, "u_mouse_y",tolua_get_FtkEvent_u_mouse_y, tolua_set_FtkEvent_u_mouse_y);
	tolua_endmodule(L);
	
	tolua_cclass(L, "FtkGc", "FtkGc", "", NULL);
	tolua_beginmodule(L, "FtkGc");
	tolua_function(L, "Create", lua_ftk_gc_create);
	tolua_variable(L, "ref",tolua_get_FtkGc_ref, tolua_set_FtkGc_ref);
	tolua_variable(L, "mask",tolua_get_FtkGc_mask, tolua_set_FtkGc_mask);
	tolua_variable(L, "bg",tolua_get_FtkGc_bg, tolua_set_FtkGc_bg);
	tolua_variable(L, "fg",tolua_get_FtkGc_fg, tolua_set_FtkGc_fg);
	tolua_variable(L, "font",tolua_get_FtkGc_font, tolua_set_FtkGc_font);
	tolua_variable(L, "bitmap",tolua_get_FtkGc_bitmap, tolua_set_FtkGc_bitmap);
	tolua_variable(L, "alpha",tolua_get_FtkGc_alpha, tolua_set_FtkGc_alpha);
	tolua_variable(L, "line_mask",tolua_get_FtkGc_line_mask, tolua_set_FtkGc_line_mask);
	tolua_endmodule(L);
	
	tolua_endmodule(L);

	return 1;
}
Beispiel #30
0
/* Open function */
TOLUA_API int tolua_tfunction_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,"Role","Role","",tolua_collect_Role);
  #else
  tolua_cclass(tolua_S,"Role","Role","",NULL);
  #endif
  tolua_beginmodule(tolua_S,"Role");
   tolua_function(tolua_S,"new",tolua_tfunction_Role_new00);
   tolua_function(tolua_S,"new_local",tolua_tfunction_Role_new00_local);
   tolua_function(tolua_S,".call",tolua_tfunction_Role_new00_local);
   tolua_function(tolua_S,"SetLV",tolua_tfunction_Role_SetLV00);
   tolua_function(tolua_S,"SetExp",tolua_tfunction_Role_SetExp00);
   tolua_function(tolua_S,"GetLV",tolua_tfunction_Role_GetLV00);
   tolua_function(tolua_S,"Change",tolua_tfunction_Role_Change00);
  tolua_endmodule(tolua_S);
  #ifdef __cplusplus
  tolua_cclass(tolua_S,"TestClass","TestClass","",tolua_collect_TestClass);
  #else
  tolua_cclass(tolua_S,"TestClass","TestClass","",NULL);
  #endif
  tolua_beginmodule(tolua_S,"TestClass");
   tolua_function(tolua_S,"new",tolua_tfunction_TestClass_new00);
   tolua_function(tolua_S,"new_local",tolua_tfunction_TestClass_new00_local);
   tolua_function(tolua_S,".call",tolua_tfunction_TestClass_new00_local);
   tolua_function(tolua_S,"delete",tolua_tfunction_TestClass_delete00);
   tolua_function(tolua_S,"LvAdd",tolua_tfunction_TestClass_LvAdd00);
   tolua_function(tolua_S,"MakeObj",tolua_tfunction_TestClass_MakeObj00);
  tolua_endmodule(tolua_S);
 tolua_endmodule(tolua_S);
 return 1;
}