private void OnMsgQueryGuildWarState(MemoryStream stream) { MS2C_GuildWarQueryInfo mS2C_GuildWarQueryInfo = Serializer.NonGeneric.Deserialize(typeof(MS2C_GuildWarQueryInfo), stream) as MS2C_GuildWarQueryInfo; if (mS2C_GuildWarQueryInfo.Result != EGuildResult.EGR_Success) { GameUIManager.mInstance.ShowMessageTip("EGR", (int)mS2C_GuildWarQueryInfo.Result); return; } if (this.mWarStateInfo == null) { this.mWarStateInfo = new GuildWarStateInfo(); } this.mWarStateInfo.ResetStateInfo(mS2C_GuildWarQueryInfo.Status, mS2C_GuildWarQueryInfo.Timestamp, mS2C_GuildWarQueryInfo.Citys, mS2C_GuildWarQueryInfo.WarData); if (this.GetWarStateInfoEvent != null) { this.GetWarStateInfoEvent(); } }
public void Clear() { this.Guild = null; this.Members = null; this.GuildList = null; this.GuildListForSearch = null; this.GuildEventList = null; this.GuildRankDataList = null; this.mGWPlayerData = null; this.mGWKillRankData = null; this.StrongHold = null; this.mWarStateInfo = null; this.LocalClientMember = null; this.guildBossData.Clear(); this.StrongHoldMembers.Clear(); this.BattleRecords.Clear(); this.BattleSupportInfo.Clear(); this.mInteractionMsgs.Clear(); this.mSignRecords.Clear(); if (Globals.Instance != null && Globals.Instance.Player != null) { Globals.Instance.Player.ShowChatGuildNewMark = false; Globals.Instance.Player.GuildMsgs.Clear(); } }