#if USE_UNI_LUA using LuaAPI = UniLua.Lua; using RealStatePtr = UniLua.ILuaState; using LuaCSFunction = UniLua.CSharpFunctionDelegate; #else using LuaAPI = XLua.LuaDLL.Lua; using RealStatePtr = System.IntPtr; using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; #endif using XLua; using System.Collections.Generic; namespace XLua.CSObjectWrap { using Utils = XLua.Utils; public class SnxxzUIRuneTowerModelWrap { public static void __Register(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); System.Type type = typeof(Snxxz.UI.RuneTowerModel); Utils.BeginObjectRegister(type, L, translator, 0, 17, 9, 6); Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnInit", _m_UnInit); Utils.RegisterFunc(L, Utils.METHOD_IDX, "RequestChallengeTower", _m_RequestChallengeTower); Utils.RegisterFunc(L, Utils.METHOD_IDX, "RequestSetDungeonAction", _m_RequestSetDungeonAction); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetFloorCount", _m_GetFloorCount); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetFloorId", _m_GetFloorId); Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsTowerLastFloor", _m_IsTowerLastFloor); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetUnLockedRuneCategorys", _m_GetUnLockedRuneCategorys); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSweepableTowers", _m_GetSweepableTowers); Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnGetSweepResult", _m_OnGetSweepResult); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetNextUnLockFloor", _m_GetNextUnLockFloor); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetAccumulativeUnLockHoleCount", _m_GetAccumulativeUnLockHoleCount); Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnMapInitOk", _m_OnMapInitOk); Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPlayerLoginOk", _m_OnPlayerLoginOk); Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeforePlayerDataInitialize", _m_OnBeforePlayerDataInitialize); Utils.RegisterFunc(L, Utils.METHOD_IDX, "selectedFloorEvent", _e_selectedFloorEvent); Utils.RegisterFunc(L, Utils.METHOD_IDX, "sweepBoughtTimesChangeEvent", _e_sweepBoughtTimesChangeEvent); Utils.RegisterFunc(L, Utils.GETTER_IDX, "yesterdayPassFloor", _g_get_yesterdayPassFloor); Utils.RegisterFunc(L, Utils.GETTER_IDX, "currentTower", _g_get_currentTower); Utils.RegisterFunc(L, Utils.GETTER_IDX, "allTowerCompleted", _g_get_allTowerCompleted); Utils.RegisterFunc(L, Utils.GETTER_IDX, "currentFloor", _g_get_currentFloor); Utils.RegisterFunc(L, Utils.GETTER_IDX, "selectedFloor", _g_get_selectedFloor); Utils.RegisterFunc(L, Utils.GETTER_IDX, "newPassFloor", _g_get_newPassFloor); Utils.RegisterFunc(L, Utils.GETTER_IDX, "unLockShowTower", _g_get_unLockShowTower); Utils.RegisterFunc(L, Utils.GETTER_IDX, "sweepBoughtTimes", _g_get_sweepBoughtTimes); Utils.RegisterFunc(L, Utils.GETTER_IDX, "towerSweepResults", _g_get_towerSweepResults); Utils.RegisterFunc(L, Utils.SETTER_IDX, "yesterdayPassFloor", _s_set_yesterdayPassFloor); Utils.RegisterFunc(L, Utils.SETTER_IDX, "selectedFloor", _s_set_selectedFloor); Utils.RegisterFunc(L, Utils.SETTER_IDX, "newPassFloor", _s_set_newPassFloor); Utils.RegisterFunc(L, Utils.SETTER_IDX, "unLockShowTower", _s_set_unLockShowTower); Utils.RegisterFunc(L, Utils.SETTER_IDX, "sweepBoughtTimes", _s_set_sweepBoughtTimes); Utils.RegisterFunc(L, Utils.SETTER_IDX, "towerSweepResults", _s_set_towerSweepResults); Utils.EndObjectRegister(type, L, translator, null, null, null, null, null); Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); Utils.RegisterObject(L, translator, Utils.CLS_IDX, "RUNETOWER_MAPID", Snxxz.UI.RuneTowerModel.RUNETOWER_MAPID); Utils.EndClassRegister(type, L, translator); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if(LuaAPI.lua_gettop(L) == 1) { Snxxz.UI.RuneTowerModel gen_ret = new Snxxz.UI.RuneTowerModel(); translator.Push(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.RuneTowerModel constructor!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_Init(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RuneTowerModel gen_to_be_invoked = (Snxxz.UI.RuneTowerModel)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.Init( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_UnInit(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RuneTowerModel gen_to_be_invoked = (Snxxz.UI.RuneTowerModel)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.UnInit( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_RequestChallengeTower(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RuneTowerModel gen_to_be_invoked = (Snxxz.UI.RuneTowerModel)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.RequestChallengeTower( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_RequestSetDungeonAction(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RuneTowerModel gen_to_be_invoked = (Snxxz.UI.RuneTowerModel)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.RequestSetDungeonAction( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetFloorCount(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RuneTowerModel gen_to_be_invoked = (Snxxz.UI.RuneTowerModel)translator.FastGetCSObj(L, 1); { int __towerId = LuaAPI.xlua_tointeger(L, 2); int gen_ret = gen_to_be_invoked.GetFloorCount( __towerId ); LuaAPI.xlua_pushinteger(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetFloorId(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RuneTowerModel gen_to_be_invoked = (Snxxz.UI.RuneTowerModel)translator.FastGetCSObj(L, 1); { int __towerId = LuaAPI.xlua_tointeger(L, 2); int __floorIndex = LuaAPI.xlua_tointeger(L, 3); int gen_ret = gen_to_be_invoked.GetFloorId( __towerId, __floorIndex ); LuaAPI.xlua_pushinteger(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_IsTowerLastFloor(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RuneTowerModel gen_to_be_invoked = (Snxxz.UI.RuneTowerModel)translator.FastGetCSObj(L, 1); { int __floorId = LuaAPI.xlua_tointeger(L, 2); bool gen_ret = gen_to_be_invoked.IsTowerLastFloor( __floorId ); LuaAPI.lua_pushboolean(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetUnLockedRuneCategorys(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RuneTowerModel gen_to_be_invoked = (Snxxz.UI.RuneTowerModel)translator.FastGetCSObj(L, 1); { System.Collections.Generic.List gen_ret = gen_to_be_invoked.GetUnLockedRuneCategorys( ); translator.Push(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetSweepableTowers(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RuneTowerModel gen_to_be_invoked = (Snxxz.UI.RuneTowerModel)translator.FastGetCSObj(L, 1); { System.Collections.Generic.List gen_ret = gen_to_be_invoked.GetSweepableTowers( ); translator.Push(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_OnGetSweepResult(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RuneTowerModel gen_to_be_invoked = (Snxxz.UI.RuneTowerModel)translator.FastGetCSObj(L, 1); { string __json = LuaAPI.lua_tostring(L, 2); gen_to_be_invoked.OnGetSweepResult( __json ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetNextUnLockFloor(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RuneTowerModel gen_to_be_invoked = (Snxxz.UI.RuneTowerModel)translator.FastGetCSObj(L, 1); { int __floor = LuaAPI.xlua_tointeger(L, 2); int gen_ret = gen_to_be_invoked.GetNextUnLockFloor( __floor ); LuaAPI.xlua_pushinteger(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetAccumulativeUnLockHoleCount(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RuneTowerModel gen_to_be_invoked = (Snxxz.UI.RuneTowerModel)translator.FastGetCSObj(L, 1); { int __floor = LuaAPI.xlua_tointeger(L, 2); int gen_ret = gen_to_be_invoked.GetAccumulativeUnLockHoleCount( __floor ); LuaAPI.xlua_pushinteger(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_OnMapInitOk(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RuneTowerModel gen_to_be_invoked = (Snxxz.UI.RuneTowerModel)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.OnMapInitOk( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_OnPlayerLoginOk(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RuneTowerModel gen_to_be_invoked = (Snxxz.UI.RuneTowerModel)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.OnPlayerLoginOk( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_OnBeforePlayerDataInitialize(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RuneTowerModel gen_to_be_invoked = (Snxxz.UI.RuneTowerModel)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.OnBeforePlayerDataInitialize( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_yesterdayPassFloor(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RuneTowerModel gen_to_be_invoked = (Snxxz.UI.RuneTowerModel)translator.FastGetCSObj(L, 1); LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.yesterdayPassFloor); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_currentTower(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RuneTowerModel gen_to_be_invoked = (Snxxz.UI.RuneTowerModel)translator.FastGetCSObj(L, 1); LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.currentTower); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_allTowerCompleted(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RuneTowerModel gen_to_be_invoked = (Snxxz.UI.RuneTowerModel)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushboolean(L, gen_to_be_invoked.allTowerCompleted); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_currentFloor(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RuneTowerModel gen_to_be_invoked = (Snxxz.UI.RuneTowerModel)translator.FastGetCSObj(L, 1); LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.currentFloor); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_selectedFloor(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RuneTowerModel gen_to_be_invoked = (Snxxz.UI.RuneTowerModel)translator.FastGetCSObj(L, 1); LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.selectedFloor); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_newPassFloor(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RuneTowerModel gen_to_be_invoked = (Snxxz.UI.RuneTowerModel)translator.FastGetCSObj(L, 1); LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.newPassFloor); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_unLockShowTower(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RuneTowerModel gen_to_be_invoked = (Snxxz.UI.RuneTowerModel)translator.FastGetCSObj(L, 1); LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.unLockShowTower); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_sweepBoughtTimes(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RuneTowerModel gen_to_be_invoked = (Snxxz.UI.RuneTowerModel)translator.FastGetCSObj(L, 1); LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.sweepBoughtTimes); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_towerSweepResults(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RuneTowerModel gen_to_be_invoked = (Snxxz.UI.RuneTowerModel)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.towerSweepResults); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_yesterdayPassFloor(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RuneTowerModel gen_to_be_invoked = (Snxxz.UI.RuneTowerModel)translator.FastGetCSObj(L, 1); gen_to_be_invoked.yesterdayPassFloor = LuaAPI.xlua_tointeger(L, 2); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_selectedFloor(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RuneTowerModel gen_to_be_invoked = (Snxxz.UI.RuneTowerModel)translator.FastGetCSObj(L, 1); gen_to_be_invoked.selectedFloor = LuaAPI.xlua_tointeger(L, 2); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_newPassFloor(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RuneTowerModel gen_to_be_invoked = (Snxxz.UI.RuneTowerModel)translator.FastGetCSObj(L, 1); gen_to_be_invoked.newPassFloor = LuaAPI.xlua_tointeger(L, 2); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_unLockShowTower(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RuneTowerModel gen_to_be_invoked = (Snxxz.UI.RuneTowerModel)translator.FastGetCSObj(L, 1); gen_to_be_invoked.unLockShowTower = LuaAPI.xlua_tointeger(L, 2); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_sweepBoughtTimes(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RuneTowerModel gen_to_be_invoked = (Snxxz.UI.RuneTowerModel)translator.FastGetCSObj(L, 1); gen_to_be_invoked.sweepBoughtTimes = LuaAPI.xlua_tointeger(L, 2); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_towerSweepResults(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RuneTowerModel gen_to_be_invoked = (Snxxz.UI.RuneTowerModel)translator.FastGetCSObj(L, 1); gen_to_be_invoked.towerSweepResults = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _e_selectedFloorEvent(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int gen_param_count = LuaAPI.lua_gettop(L); Snxxz.UI.RuneTowerModel gen_to_be_invoked = (Snxxz.UI.RuneTowerModel)translator.FastGetCSObj(L, 1); System.Action gen_delegate = translator.GetDelegate>(L, 3); if (gen_delegate == null) { return LuaAPI.luaL_error(L, "#3 need System.Action!"); } if (gen_param_count == 3) { if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { gen_to_be_invoked.selectedFloorEvent += gen_delegate; return 0; } if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { gen_to_be_invoked.selectedFloorEvent -= gen_delegate; return 0; } } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.RuneTowerModel.selectedFloorEvent!"); return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _e_sweepBoughtTimesChangeEvent(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int gen_param_count = LuaAPI.lua_gettop(L); Snxxz.UI.RuneTowerModel gen_to_be_invoked = (Snxxz.UI.RuneTowerModel)translator.FastGetCSObj(L, 1); System.Action gen_delegate = translator.GetDelegate>(L, 3); if (gen_delegate == null) { return LuaAPI.luaL_error(L, "#3 need System.Action!"); } if (gen_param_count == 3) { if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { gen_to_be_invoked.sweepBoughtTimesChangeEvent += gen_delegate; return 0; } if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { gen_to_be_invoked.sweepBoughtTimesChangeEvent -= gen_delegate; return 0; } } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.RuneTowerModel.sweepBoughtTimesChangeEvent!"); return 0; } } }