public void Destroy() { this.Clear(); this.joinGuildCD = 0; this.CurBossID = 0; this.Rank = 0; this.GuildBossRankDataDict.Clear(); this.mSchoolLootDataCaches.Clear(); this.GuildMines = null; this.MyOreData = null; this.mGWEnterData = null; this.IsFirst = false; if (Globals.Instance != null) { TeamSubSystem expr_6C = Globals.Instance.Player.TeamSystem; expr_6C.EquipPetEvent = (TeamSubSystem.PetUpdateCallback)Delegate.Remove(expr_6C.EquipPetEvent, new TeamSubSystem.PetUpdateCallback(this.OnEquipPetEvent)); } }
private void OnMsgGuildWarKillRank(MemoryStream stream) { MS2C_GuildWarKillRank mS2C_GuildWarKillRank = Serializer.NonGeneric.Deserialize(typeof(MS2C_GuildWarKillRank), stream) as MS2C_GuildWarKillRank; this.mGWKillRankData = mS2C_GuildWarKillRank.WarData; if (mS2C_GuildWarKillRank.WarData.Winner != EGuildWarTeamId.EGWTI_None) { this.mGWEnterData.Winner = mS2C_GuildWarKillRank.WarData.Winner; } if (this.QueryGWKillRankEvent != null) { this.QueryGWKillRankEvent(); } }
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(); } }
private void OnMsgGuildWarEnter(MemoryStream stream) { MS2C_GuildWarEnter mS2C_GuildWarEnter = Serializer.NonGeneric.Deserialize(typeof(MS2C_GuildWarEnter), stream) as MS2C_GuildWarEnter; if (mS2C_GuildWarEnter.Result != EGuildResult.EGR_Success) { GameUIManager.mInstance.ShowMessageTip("EGR", (int)mS2C_GuildWarEnter.Result); return; } this.mGWEnterData = mS2C_GuildWarEnter.WarData; if (this.LocalClientMember == null) { this.LocalClientMember = new GuildWarClientTeamMember(); } if (this.LocalClientMember != null) { this.LocalClientMember.Member = mS2C_GuildWarEnter.Player; this.LocalClientMember.Data = Tools.LocalPlayerToRemote(); } if (this.GuildWarEnterEvent != null) { this.GuildWarEnterEvent(); } }
private void OnMsgGuildWarEnd(MemoryStream stream) { MS2C_GuildWarEnd mS2C_GuildWarEnd = Serializer.NonGeneric.Deserialize(typeof(MS2C_GuildWarEnd), stream) as MS2C_GuildWarEnd; this.mGWKillRankData = mS2C_GuildWarEnd.WarData; if (this.mWarStateInfo != null) { if (this.mWarStateInfo.mWarState == EGuildWarState.EGWS_FinalFourGoing) { this.mWarStateInfo.mWarState = EGuildWarState.EGWS_FinalFourEnd; } else if (this.mWarStateInfo.mWarState == EGuildWarState.EGWS_FinalGoing) { this.mWarStateInfo.mWarState = EGuildWarState.EGWS_FinalEnd; } } if (this.mGWEnterData != null && mS2C_GuildWarEnd.WarData.Winner != EGuildWarTeamId.EGWTI_None) { this.mGWEnterData.Winner = mS2C_GuildWarEnd.WarData.Winner; } if (this.GuildWarEndEvent != null) { this.GuildWarEndEvent(); } }
private bool IsTwoTeamFull(GuildWarClient wClient) { return wClient != null && wClient.Red.GuildID != 0uL && wClient.Blue.GuildID != 0uL; }
private bool IsSelfTwoTeamFull(GuildWarClient wClient) { if (wClient == null) { return false; } ulong iD = Globals.Instance.Player.GuildSystem.Guild.ID; return this.IsTwoTeamFull(wClient) && (iD == wClient.Red.GuildID || iD == wClient.Blue.GuildID); }
private void RequestWarEnter(GuildWarClient wClient) { MC2S_GuildWarEnter mC2S_GuildWarEnter = new MC2S_GuildWarEnter(); mC2S_GuildWarEnter.WarID = wClient.WarID; Globals.Instance.CliSession.Send(979, mC2S_GuildWarEnter); }