// Token: 0x0600D09F RID: 53407 RVA: 0x00392BD0 File Offset: 0x00390DD0 private void InviteNotifyUIController_OnRefuse() { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_InviteNotifyUIController_OnRefuse_hotfix != null) { this.m_InviteNotifyUIController_OnRefuse_hotfix.call(new object[] { this }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; ProjectLPlayerContext playerContext = GameManager.Instance.PlayerContext as ProjectLPlayerContext; if (this.m_inviteInfo.TeamRoomInviteInfo != null) { TeamRoomInviteInfo inviteInfo = this.m_inviteInfo.TeamRoomInviteInfo; TeamRoomInvitationRefusedNetTask teamRoomInvitationRefusedNetTask = new TeamRoomInvitationRefusedNetTask(inviteInfo.SessionId, inviteInfo.ChannelId, inviteInfo.RoomId); teamRoomInvitationRefusedNetTask.EventOnStop += delegate(Task task) { playerContext.RemoveTeamRoomAInviteInfo(inviteInfo.SessionId, inviteInfo.RoomId); TeamRoomInvitationRefusedNetTask teamRoomInvitationRefusedNetTask2 = task as TeamRoomInvitationRefusedNetTask; if (teamRoomInvitationRefusedNetTask2.Result != 0) { CommonUIController.Instance.ShowErrorMessage(teamRoomInvitationRefusedNetTask2.Result, 2f, null, true); } if (this.NextInviteInfo()) { this.UpdateView(); } else { this.CloseAndPause(); } }; teamRoomInvitationRefusedNetTask.Start(null); } else if (this.m_inviteInfo.PVPInviteInfo != null) { PVPInviteInfo inviteInfo = this.m_inviteInfo.PVPInviteInfo; BattlePracticeDeclineNetTask battlePracticeDeclineNetTask = new BattlePracticeDeclineNetTask(inviteInfo.Inviter.UserId); battlePracticeDeclineNetTask.EventOnStop += delegate(Task task) { playerContext.RemovePVPInviteInfo(inviteInfo.Inviter.UserId); BattlePracticeDeclineNetTask battlePracticeDeclineNetTask2 = task as BattlePracticeDeclineNetTask; if (battlePracticeDeclineNetTask2.Result != 0) { CommonUIController.Instance.ShowErrorMessage(battlePracticeDeclineNetTask2.Result, 2f, null, true); } if (this.NextInviteInfo()) { this.UpdateView(); } else { this.CloseAndPause(); } }; battlePracticeDeclineNetTask.Start(null); } }
// Token: 0x06007732 RID: 30514 RVA: 0x00208EB8 File Offset: 0x002070B8 public void DeSerialize(DSTeamNtf msg) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_DeSerializeDSTeamNtf_hotfix != null) { this.m_DeSerializeDSTeamNtf_hotfix.call(new object[] { this, msg }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; this.m_teamDS.ClearInitedData(); this.m_teamDS.RoomId = msg.RoomId; this.m_teamDS.GameFunctionTypeId = (GameFunctionType)msg.GameFunctionTypeId; this.m_teamDS.LocationId = msg.LocationId; this.m_teamDS.WaitingFunctionTypeId = (GameFunctionType)msg.WaitingFunctionTypeId; this.m_teamDS.WaitingLocationId = msg.WaitingLocationId; if (msg.LastInviteSendTime != 0L) { this.m_teamDS.LastInviteSendTime = new DateTime(msg.LastInviteSendTime); } foreach (ProTeamRoomInviteInfo pbInfo in msg.InviteInfos) { this.m_teamDS.SetTeamRoomInviteInfo(TeamRoomInviteInfo.PbTeamRoomInviteInfoToTeamRoomInviteInfo(pbInfo)); } }
public static int get_SessionId(IntPtr l) { int result; try { TeamRoomInviteInfo teamRoomInviteInfo = (TeamRoomInviteInfo)LuaObject.checkSelf(l); LuaObject.pushValue(l, true); LuaObject.pushValue(l, teamRoomInviteInfo.SessionId); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int constructor(IntPtr l) { int result; try { TeamRoomInviteInfo o = new TeamRoomInviteInfo(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int TeamRoomInviteInfoToPbTeamRoomInviteInfo_s(IntPtr l) { int result; try { TeamRoomInviteInfo info; LuaObject.checkType <TeamRoomInviteInfo>(l, 1, out info); ProTeamRoomInviteInfo o = TeamRoomInviteInfo.TeamRoomInviteInfoToPbTeamRoomInviteInfo(info); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_TimeOut(IntPtr l) { int result; try { TeamRoomInviteInfo teamRoomInviteInfo = (TeamRoomInviteInfo)LuaObject.checkSelf(l); DateTime timeOut; LuaObject.checkValueType <DateTime>(l, 2, out timeOut); teamRoomInviteInfo.TimeOut = timeOut; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_LocationId(IntPtr l) { int result; try { TeamRoomInviteInfo teamRoomInviteInfo = (TeamRoomInviteInfo)LuaObject.checkSelf(l); int locationId; LuaObject.checkType(l, 2, out locationId); teamRoomInviteInfo.LocationId = locationId; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_Name(IntPtr l) { int result; try { TeamRoomInviteInfo teamRoomInviteInfo = (TeamRoomInviteInfo)LuaObject.checkSelf(l); string name; LuaObject.checkType(l, 2, out name); teamRoomInviteInfo.Name = name; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
// Token: 0x0600D032 RID: 53298 RVA: 0x00390F8C File Offset: 0x0038F18C public void SetTeamRoomInviteInfo(TeamRoomInviteInfo info, int count, bool inBattle) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetTeamRoomInviteInfoTeamRoomInviteInfoInt32Boolean_hotfix != null) { this.m_SetTeamRoomInviteInfoTeamRoomInviteInfoInt32Boolean_hotfix.call(new object[] { this, info, count, inBattle }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; this.m_playerNameText.text = info.Name; this.m_playerLevelText.text = info.Level.ToString(); this.m_battleNameText.text = TeamUIController.GetGameFunctionName((GameFunctionType)info.GameFunctionTypeId, info.LocationId) + TeamUIController.GetLocationName((GameFunctionType)info.GameFunctionTypeId, info.LocationId); this.m_countText.text = count.ToString(); this.m_acceptButton.gameObject.SetActive(!inBattle); this.UpdateBackgroundButtonActive(); }
// Token: 0x0600D09E RID: 53406 RVA: 0x00392A4C File Offset: 0x00390C4C private void InviteNotifyUIController_OnAccept() { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_InviteNotifyUIController_OnAccept_hotfix != null) { this.m_InviteNotifyUIController_OnAccept_hotfix.call(new object[] { this }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; if (CommonUIController.Instance.IsAnyDisableInput() || CommonUIController.Instance.IsFading()) { return; } ProjectLPlayerContext playerContext = GameManager.Instance.PlayerContext as ProjectLPlayerContext; if (this.m_inviteInfo.TeamRoomInviteInfo != null) { TeamRoomInviteInfo inviteInfo = this.m_inviteInfo.TeamRoomInviteInfo; TeamRoomJoinNetTask teamRoomJoinNetTask = new TeamRoomJoinNetTask(inviteInfo.RoomId, (GameFunctionType)inviteInfo.GameFunctionTypeId, inviteInfo.LocationId, inviteInfo.SessionId); teamRoomJoinNetTask.EventOnStop += delegate(Task task) { playerContext.RemoveTeamRoomAInviteInfo(inviteInfo.SessionId, inviteInfo.RoomId); TeamRoomJoinNetTask teamRoomJoinNetTask2 = task as TeamRoomJoinNetTask; if (teamRoomJoinNetTask2.Result == 0) { ChatUITask.PauseUITask(); this.StartTeamRoomInfoUITask(); this.CloseAndPause(); } else { if (this.NextInviteInfo()) { this.UpdateView(); } else { this.CloseAndPause(); } if (teamRoomJoinNetTask2.Result == -3007) { CommonUIController.Instance.ShowMessage(StringTableId.StringTableId_Team_LocationLock, 2f, null, true); } else if (teamRoomJoinNetTask2.Result == -3018 || teamRoomJoinNetTask2.Result == -3006 || teamRoomJoinNetTask2.Result == -3016 || teamRoomJoinNetTask2.Result == -3003) { CommonUIController.Instance.ShowMessage(StringTableId.StringTableId_Team_NoTeamRoom, 2f, null, true); } else { WorldUITask.HandleAttackFailResult(teamRoomJoinNetTask2.Result, this.m_currIntent); } } }; teamRoomJoinNetTask.Start(null); } else if (this.m_inviteInfo.PVPInviteInfo != null) { PVPInviteInfo inviteInfo = this.m_inviteInfo.PVPInviteInfo; BattlePracticeAcceptNetTask battlePracticeAcceptNetTask = new BattlePracticeAcceptNetTask(inviteInfo.Inviter.UserId); battlePracticeAcceptNetTask.EventOnStop += delegate(Task task) { playerContext.RemovePVPInviteInfo(inviteInfo.Inviter.UserId); BattlePracticeAcceptNetTask battlePracticeAcceptNetTask2 = task as BattlePracticeAcceptNetTask; if (battlePracticeAcceptNetTask2.Result != 0) { CommonUIController.Instance.ShowErrorMessage(battlePracticeAcceptNetTask2.Result, 2f, null, true); } if (this.NextInviteInfo()) { this.UpdateView(); } else { this.CloseAndPause(); } }; battlePracticeAcceptNetTask.Start(null); } }
// Token: 0x06007785 RID: 30597 RVA: 0x00209D80 File Offset: 0x00207F80 public bool __callBase_SetTeamRoomInviteInfo(TeamRoomInviteInfo info) { return(this.m_owner.__callBase_SetTeamRoomInviteInfo(info)); }
// Token: 0x0600775E RID: 30558 RVA: 0x0020987C File Offset: 0x00207A7C private bool __callBase_SetTeamRoomInviteInfo(TeamRoomInviteInfo info) { return(base.SetTeamRoomInviteInfo(info)); }