| | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeforePlayerDataInitialize", _m_OnBeforePlayerDataInitialize); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPlayerLoginOk", _m_OnPlayerLoginOk); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnInit", _m_UnInit); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetTrialTokenCount", _m_GetTrialTokenCount); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "LineToTokenClass", _m_LineToTokenClass); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetTrialExchanges", _m_TryGetTrialExchanges); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetTrialRewards", _m_TryGetTrialRewards); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetTotalClass", _m_GetTotalClass); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TrialSendExchange", _m_TrialSendExchange); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "ProcessTrialError", _m_ProcessTrialError); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "CompleteTrialFloor", _m_CompleteTrialFloor); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "ProcessOpenTrialExchangeError", _m_ProcessOpenTrialExchangeError); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "EquipCompare", _m_EquipCompare); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetExchangeItemByJob", _m_GetExchangeItemByJob); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetDungeonRequirePetHorseLevel", _m_GetDungeonRequirePetHorseLevel); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPetHorseLevel", _m_GetPetHorseLevel); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetSatisfyExchange", _m_TryGetSatisfyExchange); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SatisfyExchangeBetter", _m_SatisfyExchangeBetter); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsAnySatisfyExchangeBetterEquip", _m_IsAnySatisfyExchangeBetterEquip); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsAnySatisfyExchangeBetter", _m_IsAnySatisfyExchangeBetter); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SelectEquipClassEvent", _e_SelectEquipClassEvent); |
| | | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "trialExchangeRemindLevel", _g_get_trialExchangeRemindLevel); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "trialSweepGradeLimit", _g_get_trialSweepGradeLimit); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "selectEquipClass", _g_get_selectEquipClass); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "openFromTask", _g_get_openFromTask); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "trialClassTokens", _g_get_trialClassTokens); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "trialTokens", _g_get_trialTokens); |
| | | |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "selectEquipClass", _s_set_selectEquipClass); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "openFromTask", _s_set_openFromTask); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "trialClassTokens", _s_set_trialClassTokens); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "trialTokens", _s_set_trialTokens); |
| | | |
| | | |
| | | Utils.EndObjectRegister(type, L, translator, null, null, |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetTrialTokenCount(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.TrialDungeonModel gen_to_be_invoked = (Snxxz.UI.TrialDungeonModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _itemId = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | int gen_ret = gen_to_be_invoked.GetTrialTokenCount( _itemId ); |
| | | 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_LineToTokenClass(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.TrialDungeonModel gen_to_be_invoked = (Snxxz.UI.TrialDungeonModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _line = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | int gen_ret = gen_to_be_invoked.LineToTokenClass( _line ); |
| | | 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_TryGetTrialExchanges(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.TrialDungeonModel gen_to_be_invoked = (Snxxz.UI.TrialDungeonModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _lv = LuaAPI.xlua_tointeger(L, 2); |
| | | System.Collections.Generic.List<TrialExchangeConfig> _list; |
| | | |
| | | bool gen_ret = gen_to_be_invoked.TryGetTrialExchanges( _lv, out _list ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | translator.Push(L, _list); |
| | | |
| | | |
| | | |
| | | |
| | | return 2; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_TryGetTrialRewards(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | bool gen_ret = gen_to_be_invoked.TryGetTrialRewards( _lineId, _grade, out _rewards ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | translator.Push(L, _rewards); |
| | | |
| | | |
| | | |
| | | |
| | | return 2; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetTotalClass(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.TrialDungeonModel gen_to_be_invoked = (Snxxz.UI.TrialDungeonModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | System.Collections.Generic.List<int> gen_ret = gen_to_be_invoked.GetTotalClass( ); |
| | | 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_TrialSendExchange(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.TrialDungeonModel gen_to_be_invoked = (Snxxz.UI.TrialDungeonModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int __id = LuaAPI.xlua_tointeger(L, 2); |
| | | int _error; |
| | | |
| | | bool gen_ret = gen_to_be_invoked.TrialSendExchange( __id, out _error ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | LuaAPI.xlua_pushinteger(L, _error); |
| | | |
| | | |
| | | |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_ProcessOpenTrialExchangeError(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.TrialDungeonModel gen_to_be_invoked = (Snxxz.UI.TrialDungeonModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | gen_to_be_invoked.ProcessOpenTrialExchangeError( ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_EquipCompare(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.TrialDungeonModel gen_to_be_invoked = (Snxxz.UI.TrialDungeonModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int __itemId = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | int gen_ret = gen_to_be_invoked.EquipCompare( __itemId ); |
| | | 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_GetExchangeItemByJob(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.TrialDungeonModel gen_to_be_invoked = (Snxxz.UI.TrialDungeonModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | TrialExchangeConfig _config = (TrialExchangeConfig)translator.GetObject(L, 2, typeof(TrialExchangeConfig)); |
| | | |
| | | int gen_ret = gen_to_be_invoked.GetExchangeItemByJob( _config ); |
| | | 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_GetDungeonRequirePetHorseLevel(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_TryGetSatisfyExchange(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.TrialDungeonModel gen_to_be_invoked = (Snxxz.UI.TrialDungeonModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _maxClass; |
| | | |
| | | bool gen_ret = gen_to_be_invoked.TryGetSatisfyExchange( out _maxClass ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | LuaAPI.xlua_pushinteger(L, _maxClass); |
| | | |
| | | |
| | | |
| | | |
| | | return 2; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_SatisfyExchangeBetter(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.TrialDungeonModel gen_to_be_invoked = (Snxxz.UI.TrialDungeonModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int __id = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | bool gen_ret = gen_to_be_invoked.SatisfyExchangeBetter( __id ); |
| | | 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_IsAnySatisfyExchangeBetterEquip(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.TrialDungeonModel gen_to_be_invoked = (Snxxz.UI.TrialDungeonModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int __class = LuaAPI.xlua_tointeger(L, 2); |
| | | int __id; |
| | | |
| | | bool gen_ret = gen_to_be_invoked.IsAnySatisfyExchangeBetterEquip( __class, out __id ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | LuaAPI.xlua_pushinteger(L, __id); |
| | | |
| | | |
| | | |
| | | |
| | | return 2; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_IsAnySatisfyExchangeBetter(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.TrialDungeonModel gen_to_be_invoked = (Snxxz.UI.TrialDungeonModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int __itemId = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | bool gen_ret = gen_to_be_invoked.IsAnySatisfyExchangeBetter( __itemId ); |
| | | 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 _g_get_trialExchangeRemindLevel(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.TrialDungeonModel gen_to_be_invoked = (Snxxz.UI.TrialDungeonModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.trialExchangeRemindLevel); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_trialSweepGradeLimit(RealStatePtr L) |
| | |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_selectEquipClass(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.TrialDungeonModel gen_to_be_invoked = (Snxxz.UI.TrialDungeonModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.selectEquipClass); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_openFromTask(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.TrialDungeonModel gen_to_be_invoked = (Snxxz.UI.TrialDungeonModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.lua_pushboolean(L, gen_to_be_invoked.openFromTask); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_trialClassTokens(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.TrialDungeonModel gen_to_be_invoked = (Snxxz.UI.TrialDungeonModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.trialClassTokens); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_trialTokens(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.TrialDungeonModel gen_to_be_invoked = (Snxxz.UI.TrialDungeonModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.trialTokens); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_selectEquipClass(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.TrialDungeonModel gen_to_be_invoked = (Snxxz.UI.TrialDungeonModel)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.selectEquipClass = 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_openFromTask(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.TrialDungeonModel gen_to_be_invoked = (Snxxz.UI.TrialDungeonModel)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.openFromTask = LuaAPI.lua_toboolean(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_trialClassTokens(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.TrialDungeonModel gen_to_be_invoked = (Snxxz.UI.TrialDungeonModel)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.trialClassTokens = (System.Collections.Generic.Dictionary<int, System.Collections.Generic.List<int>>)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary<int, System.Collections.Generic.List<int>>)); |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_trialTokens(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.TrialDungeonModel gen_to_be_invoked = (Snxxz.UI.TrialDungeonModel)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.trialTokens = (System.Collections.Generic.List<int>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List<int>)); |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_SelectEquipClassEvent(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | Snxxz.UI.TrialDungeonModel gen_to_be_invoked = (Snxxz.UI.TrialDungeonModel)translator.FastGetCSObj(L, 1); |
| | | System.Action gen_delegate = translator.GetDelegate<System.Action>(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.SelectEquipClassEvent += gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { |
| | | gen_to_be_invoked.SelectEquipClassEvent -= 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.TrialDungeonModel.SelectEquipClassEvent!"); |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | } |