| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.DungeonAssistModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 10, 2, 0); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 21, 12, 0); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | 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, "GetAssistReward", _m_GetAssistReward); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHelpBattleConfig", _m_GetHelpBattleConfig); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetHelpInfoLocalSave", _m_SetHelpInfoLocalSave); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetAssistResult", _m_TryGetAssistResult); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateAssistCheckInResult", _m_UpdateAssistCheckInResult); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateAssistList", _m_UpdateAssistList); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdataAssistPlayer", _m_UpdataAssistPlayer); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateAssistResult", _m_UpdateAssistResult); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetAssistPlayerInfo", _m_GetAssistPlayerInfo); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetAssistPlayerInfos", _m_GetAssistPlayerInfos); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SendAssistCheckIn", _m_SendAssistCheckIn); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SendPlayerAssist", _m_SendPlayerAssist); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SendAssistRefresh", _m_SendAssistRefresh); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetFreeRefresh", _m_TryGetFreeRefresh); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateResultEvent", _e_UpdateResultEvent); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateCheckInResultEvent", _e_UpdateCheckInResultEvent); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdataAssistPlayerListEvent", _e_UpdataAssistPlayerListEvent); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdataAssistPlayerEvent", _e_UpdataAssistPlayerEvent); |
| | | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "helpInfoLocalSave", _g_get_helpInfoLocalSave); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "helpInfolist", _g_get_helpInfolist); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "helpBattleDict", _g_get_helpBattleDict); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "assistCoolTime", _g_get_assistCoolTime); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "freeRefreshNum", _g_get_freeRefreshNum); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "goldRefreshNum", _g_get_goldRefreshNum); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "refreshCostMoney", _g_get_refreshCostMoney); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "maxXianYuanCoins", _g_get_maxXianYuanCoins); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "checkInTotalTime", _g_get_checkInTotalTime); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "assistCoinsDict", _g_get_assistCoinsDict); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsCheckInOk", _g_get_IsCheckInOk); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "assistRefreshNum", _g_get_assistRefreshNum); |
| | | |
| | | |
| | | |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetAssistReward(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.DungeonAssistModel gen_to_be_invoked = (Snxxz.UI.DungeonAssistModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _type = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | System.Collections.Generic.List<int> gen_ret = gen_to_be_invoked.GetAssistReward( _type ); |
| | | 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_GetHelpBattleConfig(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.DungeonAssistModel gen_to_be_invoked = (Snxxz.UI.DungeonAssistModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _mapId = LuaAPI.xlua_tointeger(L, 2); |
| | | int _lineId = LuaAPI.xlua_tointeger(L, 3); |
| | | |
| | | TableConfig.DungeonHelpBattleConfig gen_ret = gen_to_be_invoked.GetHelpBattleConfig( _mapId, _lineId ); |
| | | 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_SetHelpInfoLocalSave(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_UpdataAssistPlayer(RealStatePtr L) |
| | | static int _m_UpdateAssistCheckInResult(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | |
| | | |
| | | |
| | | { |
| | | HB205_tagMCHelpBattleCheckInResult _checkInResult = (HB205_tagMCHelpBattleCheckInResult)translator.GetObject(L, 2, typeof(HB205_tagMCHelpBattleCheckInResult)); |
| | | |
| | | gen_to_be_invoked.UpdataAssistPlayer( ); |
| | | gen_to_be_invoked.UpdateAssistCheckInResult( _checkInResult ); |
| | | |
| | | |
| | | |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_UpdateAssistResult(RealStatePtr L) |
| | | static int _m_UpdateAssistList(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.DungeonAssistModel gen_to_be_invoked = (Snxxz.UI.DungeonAssistModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | HB207_tagMCHelpBattleList _battleList = (HB207_tagMCHelpBattleList)translator.GetObject(L, 2, typeof(HB207_tagMCHelpBattleList)); |
| | | |
| | | gen_to_be_invoked.UpdateAssistList( _battleList ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_UpdataAssistPlayer(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.DungeonAssistModel gen_to_be_invoked = (Snxxz.UI.DungeonAssistModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | HB206_tagMCHelpBattleCallResult _callResult = (HB206_tagMCHelpBattleCallResult)translator.GetObject(L, 2, typeof(HB206_tagMCHelpBattleCallResult)); |
| | | |
| | | gen_to_be_invoked.UpdataAssistPlayer( _callResult ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetAssistPlayerInfo(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.DungeonAssistModel gen_to_be_invoked = (Snxxz.UI.DungeonAssistModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _playerId = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | Snxxz.UI.DungeonAssistModel.AssistPlayerInfo gen_ret = gen_to_be_invoked.GetAssistPlayerInfo( _playerId ); |
| | | 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_GetAssistPlayerInfos(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | |
| | | |
| | | { |
| | | |
| | | gen_to_be_invoked.UpdateAssistResult( ); |
| | | System.Collections.Generic.List<Snxxz.UI.DungeonAssistModel.AssistPlayerInfo> gen_ret = gen_to_be_invoked.GetAssistPlayerInfos( ); |
| | | 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_SendAssistCheckIn(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.DungeonAssistModel gen_to_be_invoked = (Snxxz.UI.DungeonAssistModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | gen_to_be_invoked.SendAssistCheckIn( ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_SendPlayerAssist(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.DungeonAssistModel gen_to_be_invoked = (Snxxz.UI.DungeonAssistModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | |
| | | if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) |
| | | { |
| | | int _isOneKey = LuaAPI.xlua_tointeger(L, 2); |
| | | int _playerId = LuaAPI.xlua_tointeger(L, 3); |
| | | int _isGold = LuaAPI.xlua_tointeger(L, 4); |
| | | |
| | | gen_to_be_invoked.SendPlayerAssist( _isOneKey, _playerId, _isGold ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) |
| | | { |
| | | int _isOneKey = LuaAPI.xlua_tointeger(L, 2); |
| | | int _playerId = LuaAPI.xlua_tointeger(L, 3); |
| | | |
| | | gen_to_be_invoked.SendPlayerAssist( _isOneKey, _playerId ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) |
| | | { |
| | | int _isOneKey = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | gen_to_be_invoked.SendPlayerAssist( _isOneKey ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | return LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.DungeonAssistModel.SendPlayerAssist!"); |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_SendAssistRefresh(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.DungeonAssistModel gen_to_be_invoked = (Snxxz.UI.DungeonAssistModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | gen_to_be_invoked.SendAssistRefresh( ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_TryGetFreeRefresh(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.DungeonAssistModel gen_to_be_invoked = (Snxxz.UI.DungeonAssistModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _remainNum; |
| | | |
| | | bool gen_ret = gen_to_be_invoked.TryGetFreeRefresh( out _remainNum ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | LuaAPI.xlua_pushinteger(L, _remainNum); |
| | | |
| | | |
| | | |
| | | |
| | | return 2; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | |
| | | |
| | | Snxxz.UI.DungeonAssistModel gen_to_be_invoked = (Snxxz.UI.DungeonAssistModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.helpInfolist); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_helpBattleDict(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.DungeonAssistModel gen_to_be_invoked = (Snxxz.UI.DungeonAssistModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.helpBattleDict); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_assistCoolTime(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.DungeonAssistModel gen_to_be_invoked = (Snxxz.UI.DungeonAssistModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.assistCoolTime); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_freeRefreshNum(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.DungeonAssistModel gen_to_be_invoked = (Snxxz.UI.DungeonAssistModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.freeRefreshNum); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_goldRefreshNum(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.DungeonAssistModel gen_to_be_invoked = (Snxxz.UI.DungeonAssistModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.goldRefreshNum); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_refreshCostMoney(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.DungeonAssistModel gen_to_be_invoked = (Snxxz.UI.DungeonAssistModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.refreshCostMoney); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_maxXianYuanCoins(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.DungeonAssistModel gen_to_be_invoked = (Snxxz.UI.DungeonAssistModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.maxXianYuanCoins); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_checkInTotalTime(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.DungeonAssistModel gen_to_be_invoked = (Snxxz.UI.DungeonAssistModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.checkInTotalTime); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_assistCoinsDict(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.DungeonAssistModel gen_to_be_invoked = (Snxxz.UI.DungeonAssistModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.assistCoinsDict); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_IsCheckInOk(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.DungeonAssistModel gen_to_be_invoked = (Snxxz.UI.DungeonAssistModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsCheckInOk); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_assistRefreshNum(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.DungeonAssistModel gen_to_be_invoked = (Snxxz.UI.DungeonAssistModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.assistRefreshNum); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_UpdataAssistPlayerEvent(RealStatePtr L) |
| | | static int _e_UpdateCheckInResultEvent(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | |
| | | { |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { |
| | | gen_to_be_invoked.UpdateCheckInResultEvent += gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { |
| | | gen_to_be_invoked.UpdateCheckInResultEvent -= 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.DungeonAssistModel.UpdateCheckInResultEvent!"); |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_UpdataAssistPlayerListEvent(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | Snxxz.UI.DungeonAssistModel gen_to_be_invoked = (Snxxz.UI.DungeonAssistModel)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.UpdataAssistPlayerListEvent += gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { |
| | | gen_to_be_invoked.UpdataAssistPlayerListEvent -= 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.DungeonAssistModel.UpdataAssistPlayerListEvent!"); |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_UpdataAssistPlayerEvent(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | Snxxz.UI.DungeonAssistModel gen_to_be_invoked = (Snxxz.UI.DungeonAssistModel)translator.FastGetCSObj(L, 1); |
| | | System.Action<int> gen_delegate = translator.GetDelegate<System.Action<int>>(L, 3); |
| | | if (gen_delegate == null) { |
| | | return LuaAPI.luaL_error(L, "#3 need System.Action<int>!"); |
| | | } |
| | | |
| | | if (gen_param_count == 3) |
| | | { |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { |
| | | gen_to_be_invoked.UpdataAssistPlayerEvent += gen_delegate; |
| | | return 0; |
| | | } |