private static void OnAskForAvatarRankingListMessageReceived(AskForAvatarRankingListMessage message, ServerSessionMessage requestMessage) { if (message.GetVillageType() == 1) { AvatarDuelRankingListMessage avatarDuelRankingListMessage = new AvatarDuelRankingListMessage(); LogicLong avatarId = message.RemoveAvatarId(); avatarDuelRankingListMessage.SetAvatarRankingList(ScoringManager.GetAvatarDuelRankingList(avatarId)); avatarDuelRankingListMessage.SetNextEndTimeSeconds(ScoringManager.GetNextEndTimeSeconds()); avatarDuelRankingListMessage.SetSeasonMonth(ScoringManager.GetSeasonMonth()); avatarDuelRankingListMessage.SetSeasonYear(ScoringManager.GetSeasonYear()); avatarDuelRankingListMessage.SetLastSeasonAvatarRankingList(ScoringManager.GetLastSeasonAvatarDuelRankingList(avatarId)); avatarDuelRankingListMessage.SetLastSeasonMonth(ScoringManager.GetLastSeasonMonth()); avatarDuelRankingListMessage.SetLastSeasonYear(ScoringManager.GetLastSeasonYear()); ServerMessageManager.SendMessage(ScoringMessageManager.CreateForwardLogicMessage(avatarDuelRankingListMessage, requestMessage.SessionId), ServerManager.GetProxySocket(requestMessage.SessionId)); } else { AvatarRankingListMessage avatarRankingListMessage = new AvatarRankingListMessage(); LogicLong avatarId = message.RemoveAvatarId(); avatarRankingListMessage.SetAvatarRankingList(ScoringManager.GetAvatarRankingList(avatarId)); avatarRankingListMessage.SetNextEndTimeSeconds(ScoringManager.GetNextEndTimeSeconds()); avatarRankingListMessage.SetSeasonMonth(ScoringManager.GetSeasonMonth()); avatarRankingListMessage.SetSeasonYear(ScoringManager.GetSeasonYear()); avatarRankingListMessage.SetLastSeasonAvatarRankingList(ScoringManager.GetLastSeasonAvatarRankingList(avatarId)); avatarRankingListMessage.SetLastSeasonMonth(ScoringManager.GetLastSeasonMonth()); avatarRankingListMessage.SetLastSeasonYear(ScoringManager.GetLastSeasonYear()); ServerMessageManager.SendMessage(ScoringMessageManager.CreateForwardLogicMessage(avatarRankingListMessage, requestMessage.SessionId), ServerManager.GetProxySocket(requestMessage.SessionId)); } }