// Token: 0x060002EF RID: 751 RVA: 0x00027AC8 File Offset: 0x00025CC8 public void Init(MessagePacket MP) { this.Kind = MP.ReadByte(-1); this.EventTime.BeginTime = MP.ReadLong(-1); this.EventTime.RequireTime = MP.ReadUInt(-1); this.AllyCapitalPoint.zoneID = MP.ReadUShort(-1); this.AllyCapitalPoint.pointID = MP.ReadByte(-1); this.AllyHead = MP.ReadUShort(-1); MP.ReadStringPlus(13, this.AllyName, -1); this.AllyNameID = this.AllyName.GetHashCode(false); this.AllyVIP = MP.ReadByte(-1); this.AllyRank = MP.ReadByte(-1); if (this.PositionInfo != 1) { this.AllyCurrTroop = MP.ReadUInt(-1); } this.AllyMAXTroop = MP.ReadUInt(-1); this.EnemyCapitalPoint.zoneID = MP.ReadUShort(-1); this.EnemyCapitalPoint.pointID = MP.ReadByte(-1); this.EnemyHead = MP.ReadUShort(-1); MP.ReadStringPlus(13, this.EnemyName, -1); this.EnemyVIP = MP.ReadByte(-1); this.EnemyRank = MP.ReadByte(-1); MP.ReadStringPlus(3, this.EnemyAllianceTag, -1); this.EnemyHomeKingdom = MP.ReadUShort(-1); this.WonderID = byte.MaxValue; this.UIWonderID = byte.MaxValue; this.AddCombatPower = 0u; }
// Token: 0x060012E0 RID: 4832 RVA: 0x0020ECA4 File Offset: 0x0020CEA4 public void Recv_MSG_RESP_WORLDRANKING_LEADERBOARDS_CLIENT(MessagePacket MP) { this.WorldLeaderBoardTopBoard.SortTime = MP.ReadLong(-1); MP.ReadStringPlus(3, this.WorldLeaderBoardTopBoard.PowerTop.AlliaceTag, -1); MP.ReadStringPlus(13, this.WorldLeaderBoardTopBoard.PowerTop.Name, -1); this.WorldLeaderBoardTopBoard.PowerTop.Value = MP.ReadULong(-1); this.WorldLeaderBoardTopBoard.PowerTop.KingdomID = MP.ReadUShort(-1); this.WorldLeaderBoardTopBoard.PowerTopHead = MP.ReadUShort(-1); MP.ReadStringPlus(3, this.WorldLeaderBoardTopBoard.KillsTop.AlliaceTag, -1); MP.ReadStringPlus(13, this.WorldLeaderBoardTopBoard.KillsTop.Name, -1); this.WorldLeaderBoardTopBoard.KillsTop.Value = MP.ReadULong(-1); this.WorldLeaderBoardTopBoard.KillsTop.KingdomID = MP.ReadUShort(-1); this.WorldLeaderBoardTopBoard.KillsTopHead = MP.ReadUShort(-1); MP.ReadStringPlus(3, this.WorldLeaderBoardTopBoard.AlliPowerTop.AlliaceTag, -1); MP.ReadStringPlus(20, this.WorldLeaderBoardTopBoard.AlliPowerTop.Name, -1); this.WorldLeaderBoardTopBoard.AlliPowerTop.Value = MP.ReadULong(-1); MP.ReadUInt(-1); this.WorldLeaderBoardTopBoard.AlliPowerTop.KingdomID = MP.ReadUShort(-1); this.WorldLeaderBoardTopBoard.PowerTopEmblem = MP.ReadUShort(-1); MP.ReadStringPlus(3, this.WorldLeaderBoardTopBoard.AlliKillsTop.AlliaceTag, -1); MP.ReadStringPlus(20, this.WorldLeaderBoardTopBoard.AlliKillsTop.Name, -1); this.WorldLeaderBoardTopBoard.AlliKillsTop.Value = MP.ReadULong(-1); MP.ReadUInt(-1); this.WorldLeaderBoardTopBoard.AlliKillsTop.KingdomID = MP.ReadUShort(-1); this.WorldLeaderBoardTopBoard.KillsTopEmblem = MP.ReadUShort(-1); GUIManager.Instance.UpdateUI(EGUIWindow.UI_LeaderBoard, 2, 0); }
// Token: 0x060002F7 RID: 759 RVA: 0x000280AC File Offset: 0x000262AC public void Init(MessagePacket MP) { MP.ReadStringPlus(13, this.AllyName, -1); this.AllyNameID = this.AllyName.GetHashCode(false); this.AllyVIP = MP.ReadByte(-1); this.AllyRank = MP.ReadByte(-1); this.MarchTime.BeginTime = MP.ReadLong(-1); this.MarchTime.RequireTime = MP.ReadUInt(-1); this.TroopFlag = MP.ReadUShort(-1); this.TroopSize = 0; this.TotalTroopNum = 0u; for (int i = 0; i < 16; i++) { if ((this.TroopFlag >> i & 1) == 1) { this.TroopData[i >> 2][i & 3] = MP.ReadUInt(-1); this.TotalTroopNum += this.TroopData[i >> 2][i & 3]; this.TroopSize += 1; } else { this.TroopData[i >> 2][i & 3] = 0u; } } }
// Token: 0x06000114 RID: 276 RVA: 0x00012688 File Offset: 0x00010888 public void Recv_MSG_RESP_ALLIANCEWAR_COMBAT_REPORT(MessagePacket MP) { GUIManager.Instance.HideUILock(EUILock.AllianceWar_Fs); this.mReportRandSeed = MP.ReadUShort(-1); this.mReportRandGap = MP.ReadByte(-1); this.mReportResult = MP.ReadByte(-1); for (int i = 0; i < 2; i++) { this.m_CombatPlayerData[i].Name = MP.ReadString(13, -1); this.m_CombatPlayerData[i].KingdomID = MP.ReadUShort(-1); this.m_CombatPlayerData[i].StrongholdLevel = MP.ReadByte(-1); this.m_CombatPlayerData[i].Level = MP.ReadByte(-1); this.m_CombatPlayerData[i].Head = MP.ReadUShort(-1); this.m_CombatPlayerData[i].VIPLevel = MP.ReadByte(-1); this.m_CombatPlayerData[i].AllianceRank = MP.ReadByte(-1); for (int j = 0; j < 5; j++) { this.m_CombatPlayerData[i].HeroInfo[j].ID = MP.ReadUShort(-1); this.m_CombatPlayerData[i].HeroInfo[j].Rank = MP.ReadByte(-1); this.m_CombatPlayerData[i].HeroInfo[j].Star = MP.ReadByte(-1); } if (this.m_CombatPlayerData[i].HeroInfo[0].ID != 0) { this.m_CombatPlayerData[i].bMain = (this.m_CombatPlayerData[i].Head == this.m_CombatPlayerData[i].HeroInfo[0].ID); } else { this.m_CombatPlayerData[i].bMain = false; } this.m_CombatPlayerData[i].LosePower = MP.ReadULong(-1); for (int k = 0; k < 16; k++) { this.m_CombatPlayerData[i].SurviveTroop[k] = MP.ReadUInt(-1); } for (int l = 0; l < 16; l++) { this.m_CombatPlayerData[i].DeadTroop[l] = MP.ReadUInt(-1); } for (int m = 0; m < 4; m++) { this.m_CombatPlayerData[i].AttackAttr[m] = MP.ReadUInt(-1); } for (int n = 0; n < 4; n++) { this.m_CombatPlayerData[i].DefenceAttr[n] = MP.ReadUInt(-1); } for (int num = 0; num < 4; num++) { this.m_CombatPlayerData[i].HealthAttr[num] = MP.ReadUInt(-1); } this.m_CombatPlayerData[i].ArmyCoordIndex = MP.ReadByte(-1); this.m_CombatPlayerData[i].ArmyCoordIndex = (byte)Mathf.Clamp((int)this.m_CombatPlayerData[i].ArmyCoordIndex, 0, 5); } Door door = GUIManager.Instance.FindMenu(EGUIWindow.Door) as Door; if (door != null) { door.OpenMenu(EGUIWindow.UI_Alliance_FS, 0, 0, false); } }
// Token: 0x060012D9 RID: 4825 RVA: 0x0020E1D4 File Offset: 0x0020C3D4 public void Recv_MSG_RESP_KVK_TOPBORAD(MessagePacket MP) { LeaderBoardManager.Instance.KingdomBoardNextTime = DataManager.Instance.ServerTime + 43200L; if (this.KvKTopBoard == null) { this.KvKTopBoard = new KVKBoardTopBoard(); } this.KvKTopBoard.SortTime = MP.ReadLong(-1); this.KvKTopBoard.TopKingdom = MP.ReadUShort(-1); this.KvKTopBoard.KvKTopAlliKingdomID = MP.ReadUShort(-1); this.KvKTopBoard.KvKTopAlliAllianceID = MP.ReadUInt(-1); MP.ReadStringPlus(3, this.KvKTopBoard.KvKTopAlliTag, -1); MP.ReadStringPlus(20, this.KvKTopBoard.KvKTopAlliName, -1); this.KvKTopBoard.KvKTopAlliScore = MP.ReadULong(-1); this.KvKTopBoard.KvKTopAlliEmblem = MP.ReadUShort(-1); MP.ReadStringPlus(13, this.KvKTopBoard.KvKAlliTopPlayerName, -1); this.KvKTopBoard.KvKAlliTopPlayerValue = MP.ReadULong(-1); this.KvKTopBoard.KvKAlliTopPlayerHead = MP.ReadUShort(-1); this.KvKTopBoard.KingdomEventRequireTime = MP.ReadUInt(-1); MP.ReadStringPlus(3, this.KvKTopBoard.KvKTopPlayerTag, -1); MP.ReadStringPlus(13, this.KvKTopBoard.KvKTopPlayerName, -1); this.KvKTopBoard.KvKPlayerValue = MP.ReadULong(-1); this.KvKTopBoard.KvKTopPlayerKingdomID = MP.ReadUShort(-1); this.KvKTopBoard.KvKPlayerHead = MP.ReadUShort(-1); this.KvKTopBoard.AllianceID = (ulong)DataManager.Instance.RoleAlliance.Id; GUIManager.Instance.UpdateUI(EGUIWindow.UI_KVKLBoard, 2, 0); }
// Token: 0x060012A3 RID: 4771 RVA: 0x0020B368 File Offset: 0x00209568 public static void readPrisonerData(MessagePacket MP) { byte b = MP.ReadByte(-1); if (!GameConstants.IsBetween((int)b, 0, 30)) { return; } if (DataManager.Instance.PrisonerList[(int)b].AlliTag == null) { DataManager.Instance.PrisonerList[(int)b].AlliTag = StringManager.Instance.SpawnString(30); } if (DataManager.Instance.PrisonerList[(int)b].name == null) { DataManager.Instance.PrisonerList[(int)b].name = StringManager.Instance.SpawnString(30); } DataManager.Instance.PrisonerList[(int)b].AlliTag.ClearString(); DataManager.Instance.PrisonerList[(int)b].name.ClearString(); DataManager.Instance.PrisonerList[(int)b].KingdomID = MP.ReadUShort(-1); MP.ReadStringPlus(3, DataManager.Instance.PrisonerList[(int)b].AlliTag, -1); MP.ReadStringPlus(13, DataManager.Instance.PrisonerList[(int)b].name, -1); DataManager.Instance.PrisonerList[(int)b].LordLevel = MP.ReadByte(-1); DataManager.Instance.PrisonerList[(int)b].head = MP.ReadUShort(-1); byte nowStat = MP.ReadByte(-1); DataManager.Instance.PrisonerList[(int)b].nowStat = (PrisonerState)nowStat; DataManager.Instance.PrisonerList[(int)b].StartActionTime = MP.ReadLong(-1); DataManager.Instance.PrisonerList[(int)b].TotalTime = MP.ReadUInt(-1); DataManager.Instance.PrisonerList[(int)b].Ransom = MP.ReadUInt(-1); MP.ReadUInt(-1); }
// Token: 0x060002F3 RID: 755 RVA: 0x00027E24 File Offset: 0x00026024 public void InitNpc(MessagePacket MP) { this.Kind = MP.ReadByte(-1); this.EventTime.BeginTime = MP.ReadLong(-1); this.EventTime.RequireTime = MP.ReadUInt(-1); this.AllyCapitalPoint.zoneID = MP.ReadUShort(-1); this.AllyCapitalPoint.pointID = MP.ReadByte(-1); this.AllyHead = MP.ReadUShort(-1); MP.ReadStringPlus(13, this.AllyName, -1); this.AllyNameID = this.AllyName.GetHashCode(false); this.AllyVIP = MP.ReadByte(-1); this.AllyRank = MP.ReadByte(-1); if (this.PositionInfo != 1) { this.AllyCurrTroop = MP.ReadUInt(-1); } this.AllyMAXTroop = MP.ReadUInt(-1); if (this.PositionInfo != 1) { this.AllyHomeKingdom = MP.ReadUShort(-1); } this.EnemyHead = 255; this.EnemyCapitalPoint.zoneID = MP.ReadUShort(-1); this.EnemyCapitalPoint.pointID = MP.ReadByte(-1); this.EnemyVIP = MP.ReadByte(-1); this.EnemyNPCID = MP.ReadUShort(-1); this.EnemyName.ClearString(); this.EnemyName.IntToFormat((long)this.EnemyVIP, 1, false); this.EnemyName.AppendFormat(DataManager.Instance.mStringTable.GetStringByID(12021u)); }
// Token: 0x06001416 RID: 5142 RVA: 0x0023460C File Offset: 0x0023280C public void RecvBlackMarket_Data(MessagePacket MP) { GUIManager.Instance.HideUILock(EUILock.BlackMarket); MP.ReadLong(-1); this.TradeLocks = MP.ReadByte(-1); this.TradeStatus = MP.ReadByte(-1); for (int i = 0; i < 4; i++) { this.MerchantmanData[i].itemID = MP.ReadUShort(-1); this.MerchantmanData[i].itemCount = MP.ReadUShort(-1); this.MerchantmanData[i].ResourceKind = MP.ReadByte(-1); this.MerchantmanData[i].ResourceCount = MP.ReadUInt(-1); this.MerchantmanData[i].Rare = MP.ReadByte(-1); } this.ExtraData = MP.ReadByte(-1); this.ExtraTreasureID = MallManager.Instance.TreasureIDTransToNew(MP.ReadUInt(-1)); if (this.ExtraData != 1) { this.ClearSendCheckBuy(); this.bNeedUpDateExtra = false; GUIManager.Instance.UpdateUI(EGUIWindow.UI_Merchantman, 1, 0); GUIManager.Instance.UpdateUI(EGUIWindow.UI_OpenBox, 3, 0); GUIManager.Instance.BuildingData.UpdateBuildState(5, 255); } }
// Token: 0x0600144D RID: 5197 RVA: 0x00239564 File Offset: 0x00237764 public void UpdateFBMissionProGress(MessagePacket MP) { byte b = MP.ReadByte(-1); if (this.CurMissionProcess.UserSerialNo == b) { byte b2 = MP.ReadByte(-1); if (this.CurMissionProcess.NodeIndex != b2) { this.CurMissionProcess.bShowHUD = 0; this.ClearHUDArray(); } this.CurMissionProcess.NodeIndex = b2; this.CurMissionProcess.MissionTime.BeginTime = MP.ReadLong(-1); this.CurMissionProcess.MissionTime.RequireTime = MP.ReadUInt(-1); if (this.CurMissionProcess.NodeIndex > 1) { AFAdvanceManager.Instance.TriggerAfAdvEvent(EAppsFlayerEvent.COMPLETE_VOYAGE_I); } if (this.CurMissionProcess.NodeIndex > 2) { AFAdvanceManager.Instance.TriggerAfAdvEvent(EAppsFlayerEvent.COMPLETE_VOYAGE_II); } if (this.CurMissionProcess.NodeIndex > 3) { AFAdvanceManager.Instance.TriggerAfAdvEvent(EAppsFlayerEvent.COMPLETE_VOYAGE_III); } if (this.CurMissionProcess.NodeIndex > 4) { AFAdvanceManager.Instance.TriggerAfAdvEvent(EAppsFlayerEvent.COMPLETE_VOYAGE_IV); } if (this.CurMissionProcess.NodeIndex > 5) { AFAdvanceManager.Instance.TriggerAfAdvEvent(EAppsFlayerEvent.COMPLETE_VOYAGE_V); } if (this.CurMissionProcess.NodeIndex > 10) { AFAdvanceManager.Instance.TriggerAfAdvEvent(EAppsFlayerEvent.COMPLETE_VOYAGE_X); } } else { int friendIndex = this.GetFriendIndex(b, byte.MaxValue); if (friendIndex < 0) { return; } this.UpdateFriendSerialNo = byte.MaxValue; this.FBFriends[friendIndex].NodeIndex = MP.ReadByte(-1); if (this.FBFriends[friendIndex].NodeIndex == 0) { this.FBFriends[friendIndex].NodeIndex = 1; } this.FBFriends[friendIndex].MissionTime.BeginTime = MP.ReadLong(-1); this.FBFriends[friendIndex].MissionTime.RequireTime = MP.ReadUInt(-1); this.NeedSort = 1; GUIManager.Instance.UpdateUI(EGUIWindow.UI_MissionFB, 0, 0); } }
// Token: 0x06001099 RID: 4249 RVA: 0x001D7624 File Offset: 0x001D5824 public void RecvArena_Info(MessagePacket MP) { this.m_ArenaPlace = MP.ReadUInt(-1); Array.Clear(this.m_ArenaDefHero, 0, this.m_ArenaDefHero.Length); Array.Clear(this.m_ArenaTarget, 0, this.m_ArenaTarget.Length); for (int i = 0; i < 5; i++) { this.m_ArenaDefHero[i] = MP.ReadUShort(-1); } this.m_ArenaTodayChallenge = MP.ReadByte(-1); this.m_ArenaTodayResetChallenge = MP.ReadByte(-1); this.m_ArenaLastChallengeTime = MP.ReadLong(-1); this.m_ArenaCrystalPrize = MP.ReadUInt(-1); for (int j = 0; j < 3; j++) { this.m_ArenaTarget[j].Head = MP.ReadUShort(-1); this.m_ArenaTarget[j].Name = MP.ReadString(13, -1); this.m_ArenaTarget[j].AllianceTagTag = MP.ReadString(3, -1); this.m_ArenaTarget[j].Place = MP.ReadUInt(-1); if (this.m_ArenaTarget[j].HeroData == null) { this.m_ArenaTarget[j].HeroData = new ArenaTargetHeroDataType[5]; } for (int k = 0; k < 5; k++) { this.m_ArenaTarget[j].HeroData[k].ID = MP.ReadUShort(-1); this.m_ArenaTarget[j].HeroData[k].Level = MP.ReadByte(-1); this.m_ArenaTarget[j].HeroData[k].Rank = MP.ReadByte(-1); this.m_ArenaTarget[j].HeroData[k].Star = MP.ReadByte(-1); this.m_ArenaTarget[j].HeroData[k].Equip = MP.ReadByte(-1); } } this.m_ArenaNewReportNum = MP.ReadByte(-1); this.m_NowArenaTopicID[0] = MP.ReadByte(-1); this.m_NowArenaTopicID[1] = MP.ReadByte(-1); this.m_NowArenaTopicEndTime = MP.ReadLong(-1); this.m_NowTopicEffect[0].Effect = MP.ReadUShort(-1); this.m_NowTopicEffect[0].Value = MP.ReadUShort(-1); this.m_NowTopicEffect[1].Effect = MP.ReadUShort(-1); this.m_NowTopicEffect[1].Value = MP.ReadUShort(-1); this.m_NextArenaTopicID[0] = MP.ReadByte(-1); this.m_NextArenaTopicID[1] = MP.ReadByte(-1); this.m_NextArenaTopicBeginTime = MP.ReadLong(-1); this.m_NextTopicEffect[0].Effect = MP.ReadUShort(-1); this.m_NextTopicEffect[0].Value = MP.ReadUShort(-1); this.m_NextTopicEffect[1].Effect = MP.ReadUShort(-1); this.m_NextTopicEffect[1].Value = MP.ReadUShort(-1); this.m_ArenaHistoryPlace = MP.ReadUInt(-1); this.m_ArenaExtraChallenge = MP.ReadByte(-1); GUIManager.Instance.BuildingData.UpdateBuildState(5, 255); GUIManager.Instance.UpdateUI(EGUIWindow.UI_Arena, 6, 0); DataManager.MissionDataManager.CheckChanged(eMissionKind.Record, 28, this.GetHeroAstrologyNum()); if (this.m_ArenaHistoryPlace > 0u && this.m_ArenaHistoryPlace < 65535u) { DataManager.MissionDataManager.CheckChanged(eMissionKind.Record, 29, (ushort)(65535u - this.m_ArenaHistoryPlace)); } }
// Token: 0x060008DC RID: 2268 RVA: 0x000B5C4C File Offset: 0x000B3E4C public void Recv_MSG_GAMBLE_JACKPOT(MessagePacket MP) { GamblingManager.GamebleJackpot gamebleJackpot = new GamblingManager.GamebleJackpot(); gamebleJackpot.KingdomID = MP.ReadUShort(-1); MP.ReadStringPlus(3, gamebleJackpot.Tag, -1); MP.ReadStringPlus(13, gamebleJackpot.Name, -1); uint num = MP.ReadUInt(-1); gamebleJackpot.PrizeWins = MP.ReadUInt(-1); gamebleJackpot.GameType = (UIBattle_Gambling.eMode)MP.ReadByte(-1); gamebleJackpot.WonTime = MP.ReadLong(-1); bool flag = DataManager.CompareStr(gamebleJackpot.Name, DataManager.Instance.RoleAttr.Name) == 0; this.AddJackpotData(gamebleJackpot); if (GUIManager.Instance.FindMenu(EGUIWindow.UI_Battle_Gambling) || gamebleJackpot.KingdomID == DataManager.MapDataController.kingdomData.kingdomID) { DataManager dataManager = DataManager.Instance; CString cstring = StringManager.Instance.StaticString1024(); cstring.Append("<color=#FFFF00>"); cstring.IntToFormat((long)((ulong)gamebleJackpot.PrizeWins), 1, true); cstring.AppendFormat(dataManager.mStringTable.GetStringByID(8473u)); cstring.Append("</color>"); MapMonster recordByKey = DataManager.MapDataController.MapMonsterTable.GetRecordByKey(this.m_GambleEventSave.MonsterID); HeroTeam recordByKey2 = dataManager.TeamTable.GetRecordByKey(recordByKey.MapTeamInfo[0].TeamID); Hero recordByKey3 = dataManager.HeroTable.GetRecordByKey(recordByKey2.Arrays[10].Hero); CString cstring2 = StringManager.Instance.StaticString1024(); GameConstants.FormatRoleName(cstring2, gamebleJackpot.Name, gamebleJackpot.Tag, null, 0, (gamebleJackpot.KingdomID != DataManager.MapDataController.kingdomData.kingdomID) ? gamebleJackpot.KingdomID : 0, null, null, null, null); CString cstring3 = StringManager.Instance.StaticString1024(); cstring3.Append("<color=#FFFF00>"); cstring3.Append(cstring2); cstring3.Append("</color>"); CString cstring4 = StringManager.Instance.SpawnString(1024); cstring4.StringToFormat(cstring3); if (gamebleJackpot.GameType == UIBattle_Gambling.eMode.Normal) { cstring4.StringToFormat(dataManager.mStringTable.GetStringByID(9171u)); } else { cstring4.StringToFormat(dataManager.mStringTable.GetStringByID(9179u)); } cstring4.StringToFormat(dataManager.mStringTable.GetStringByID((uint)recordByKey3.HeroName)); cstring4.StringToFormat(cstring); cstring4.AppendFormat(dataManager.mStringTable.GetStringByID(9180u)); this.GambleCountStr.Add(cstring4); GUIManager.Instance.SetRunningText(cstring4); } GUIManager.Instance.UpdateUI(EGUIWindow.UI_Battle_Gambling, 0, 0); GUIManager.Instance.UpdateUI(EGUIWindow.UI_Battle_Gambling, 2, 0); if (flag) { GUIManager.Instance.UpdateUI(EGUIWindow.UI_Battle_Gambling, 9, 0); } GUIManager.Instance.UpdateUI(EGUIWindow.UI_MonsterCrypt, 0, 0); }
// Token: 0x0600128D RID: 4749 RVA: 0x0020A15C File Offset: 0x0020835C public static void MSG_RESP_UPDATE_CAPTIVE(MessagePacket MP) { switch (MP.ReadByte(-1)) { case 0: DataManager.Instance.beCaptured.head = MP.ReadUShort(-1); break; case 1: DataManager.Instance.beCaptured.AlliTag.ClearString(); MP.ReadStringPlus(3, DataManager.Instance.beCaptured.AlliTag, -1); break; case 2: DataManager.Instance.beCaptured.name.ClearString(); MP.ReadStringPlus(13, DataManager.Instance.beCaptured.name, -1); break; case 3: { PointCode pointCode = default(PointCode); pointCode.zoneID = MP.ReadUShort(-1); pointCode.pointID = MP.ReadByte(-1); DataManager.Instance.beCaptured.MapID = GameConstants.PointCodeToMapID(pointCode.zoneID, pointCode.pointID); break; } case 4: DataManager.Instance.beCaptured.prisonerStat = (PrisonerState)MP.ReadByte(-1); DataManager.Instance.beCaptured.StartActionTime = MP.ReadLong(-1); DataManager.Instance.beCaptured.TotalTime = MP.ReadUInt(-1); break; case 5: DataManager.Instance.beCaptured.Ransom = MP.ReadUInt(-1); break; case 6: { PointCode pointCode2 = default(PointCode); pointCode2.zoneID = MP.ReadUShort(-1); pointCode2.pointID = MP.ReadByte(-1); DataManager.Instance.beCaptured.MapID = GameConstants.PointCodeToMapID(pointCode2.zoneID, pointCode2.pointID); DataManager.Instance.beCaptured.KingdomID = MP.ReadUShort(-1); DataManager.Instance.beCaptured.HomeKingdomID = MP.ReadUShort(-1); break; } } GUIManager.Instance.UpdateUI(EGUIWindow.UI_LordInfo, 0, 0); }
// Token: 0x060012E7 RID: 4839 RVA: 0x0020F3C0 File Offset: 0x0020D5C0 public void Recv_MSG_RESP_FOOTBALL_TOPBOARD(MessagePacket MP) { this.FootBallBoardTime = ActivityManager.Instance.ServerEventTime + 43200L; if (this.FootBallTopBoard == null) { this.FootBallTopBoard = new FootBallTopBoard(); } this.FootBallTopBoard.SortTime = MP.ReadLong(-1); if (this.FootBallTopBoard.SortTime == 0L) { this.FootBallBoardTime = 0L; } this.FootBallBoardType = MP.ReadByte(-1); this.FootBallTopBoard.EventRequireTime = MP.ReadUInt(-1); this.FootBallTopBoard.KingdomAlliance.KingdomID = MP.ReadUShort(-1); this.FootBallTopBoard.KingdomAlliance.AllianceID = MP.ReadUInt(-1); MP.ReadStringPlus(3, this.FootBallTopBoard.KingdomAlliance.AlliaceTag, -1); MP.ReadStringPlus(20, this.FootBallTopBoard.KingdomAlliance.Name, -1); this.FootBallTopBoard.KingdomAlliance.Value = MP.ReadULong(-1); this.FootBallTopBoard.KingdomAllianceTopEmblem = MP.ReadUShort(-1); MP.ReadStringPlus(3, this.FootBallTopBoard.KingdomPlayer.AlliaceTag, -1); MP.ReadStringPlus(13, this.FootBallTopBoard.KingdomPlayer.Name, -1); this.FootBallTopBoard.KingdomPlayer.Value = MP.ReadULong(-1); this.FootBallTopBoard.KingdomPlayer.KingdomID = MP.ReadUShort(-1); this.FootBallTopBoard.KingdomPlayerTopHead = MP.ReadUShort(-1); MP.ReadStringPlus(13, this.FootBallTopBoard.AlliancePlayer.Name, -1); this.FootBallTopBoard.AlliancePlayer.Value = MP.ReadULong(-1); this.FootBallTopBoard.AlliancePlayerTopHead = MP.ReadUShort(-1); if (this.FootBallBoardType == 2) { this.FootBallTopBoard.TopKingdom = MP.ReadUShort(-1); MP.ReadUShort(-1); this.FootBallTopBoard.TopWorldKingdom = MP.ReadUShort(-1); MP.ReadUShort(-1); this.FootBallTopBoard.WorldKingdomAlliance.KingdomID = MP.ReadUShort(-1); this.FootBallTopBoard.WorldKingdomAlliance.AllianceID = MP.ReadUInt(-1); MP.ReadStringPlus(3, this.FootBallTopBoard.WorldKingdomAlliance.AlliaceTag, -1); MP.ReadStringPlus(20, this.FootBallTopBoard.WorldKingdomAlliance.Name, -1); this.FootBallTopBoard.WorldKingdomAlliance.Value = MP.ReadULong(-1); this.FootBallTopBoard.WorldKingdomAllianceEmblem = MP.ReadUShort(-1); MP.ReadStringPlus(3, this.FootBallTopBoard.WorldKingdomPlayer.AlliaceTag, -1); MP.ReadStringPlus(13, this.FootBallTopBoard.WorldKingdomPlayer.Name, -1); this.FootBallTopBoard.WorldKingdomPlayer.Value = MP.ReadULong(-1); this.FootBallTopBoard.WorldKingdomPlayer.KingdomID = MP.ReadUShort(-1); this.FootBallTopBoard.WorldKingdomPlayerHead = MP.ReadUShort(-1); } this.FootBallTopBoard.AllianceID = (ulong)DataManager.Instance.RoleAlliance.Id; GUIManager.Instance.UpdateUI(EGUIWindow.UI_FootBallBoard, 2, 0); GUIManager.Instance.UpdateUI(EGUIWindow.UI_FootBallKVKBoard, 2, 0); }
// Token: 0x06001291 RID: 4753 RVA: 0x0020A4B8 File Offset: 0x002086B8 public static void MSG_RESP_LORD_BEINGRELEASED(MessagePacket MP) { PointCode pointCode = default(PointCode); pointCode.zoneID = MP.ReadUShort(-1); pointCode.pointID = MP.ReadByte(-1); DataManager.Instance.beCaptured.nowCaptureStat = LoadCaptureState.Returning; DataManager.Instance.beCaptured.MapID = GameConstants.PointCodeToMapID(pointCode.zoneID, pointCode.pointID); DataManager.Instance.beCaptured.StartActionTime = MP.ReadLong(-1); DataManager.Instance.beCaptured.TotalTime = MP.ReadUInt(-1); byte b = MP.ReadByte(-1); DataManager.Instance.SetQueueBarData(EQueueBarIndex.LordReturn, true, DataManager.Instance.beCaptured.StartActionTime, DataManager.Instance.beCaptured.TotalTime); DataManager.Instance.SetRecvQueueBarData(30); DataManager.Instance.CheckTroolCount(); GUIManager.Instance.UpdateUI(EGUIWindow.UI_ArmyInfo, 0, 0); ushort leaderID = DataManager.Instance.GetLeaderID(); if (leaderID != 0) { DataManager.Instance.TempFightHeroID[(int)leaderID] = 1; DataManager.Instance.SetFightHeroData(); GameManager.OnRefresh(NetworkNews.Refresh_Hero, null); GUIManager.Instance.UpdateUI(EGUIWindow.UI_HeroList_Soldier2, 0, 0); GUIManager.Instance.UpdateUI(EGUIWindow.UI_BattleHeroSelect, 2, 0); } GUIManager.Instance.UpdateUI(EGUIWindow.UI_LordInfo, 0, 0); GUIManager.Instance.UpdateUI(EGUIWindow.Door, 18, 0); DataManager.Instance.AttribVal.UpdateAttrVal(UpdateAttrKind.Hero); DataManager.Instance.AttribVal.UpdateLordEquipData(); GUIManager.Instance.CloseMenu(EGUIWindow.UI_SuicideBox); }
// Token: 0x060008DB RID: 2267 RVA: 0x000B5BF8 File Offset: 0x000B3DF8 public void Recv_MSG_RESP_GAMBLE_PRIZE(MessagePacket MP) { this.m_GambleGameInfo.Prize = MP.ReadUInt(-1); GUIManager.Instance.UpdateUI(EGUIWindow.UI_Battle_Gambling, 0, 0); GUIManager.Instance.UpdateUI(EGUIWindow.UI_Battle_Gambling, 2, 0); GUIManager.Instance.UpdateUI(EGUIWindow.UI_MonsterCrypt, 0, 0); }
// Token: 0x060012E2 RID: 4834 RVA: 0x0020EEE0 File Offset: 0x0020D0E0 public void Recv_MSG_RESP_FEDERAL_HISTORYKINGDATA(MessagePacket MP) { this.MobiWorldKingBoard.Clear(); if (MP.ReadByte(-1) == 0) { byte b = MP.ReadByte(-1); this.KingHead = MP.ReadUShort(-1); this.HistoryKingDataNum = MP.ReadByte(-1); for (int i = 0; i < (int)this.HistoryKingDataNum; i++) { HistoryWorldKingDataType historyWorldKingDataType = new HistoryWorldKingDataType(); historyWorldKingDataType.HomeKingdomID = MP.ReadUShort(-1); MP.ReadStringPlus(3, historyWorldKingDataType.AllianceTag, -1); MP.ReadStringPlus(13, historyWorldKingDataType.Name, -1); historyWorldKingDataType.OccupyTime = MP.ReadUInt(-1); historyWorldKingDataType.TakeOfficeTime = MP.ReadLong(-1); this.MobiWorldKingBoard.Add(historyWorldKingDataType); } GUIManager.Instance.UpdateUI(EGUIWindow.UI_NobilityBoard, 0, 0); } else { GUIManager.Instance.UpdateUI(EGUIWindow.UI_NobilityBoard, 0, 2); } }
// Token: 0x060008DE RID: 2270 RVA: 0x000B6004 File Offset: 0x000B4204 public void Recv_MSG_GAMBLE_HISTORY(MessagePacket MP) { if (this.m_GamebleJackpots == null) { return; } this.m_GamebleJackpots.Clear(); GamblingManager.GamebleJackpot[] array = new GamblingManager.GamebleJackpot[3]; for (int i = 0; i < 3; i++) { array[i] = new GamblingManager.GamebleJackpot(); array[i].KingdomID = MP.ReadUShort(-1); MP.ReadStringPlus(3, array[i].Tag, -1); MP.ReadStringPlus(13, array[i].Name, -1); array[i].PrizeWins = MP.ReadUInt(-1); array[i].GameType = (UIBattle_Gambling.eMode)MP.ReadByte(-1); array[i].WonTime = MP.ReadLong(-1); } int num = 2; while (num >= 0 && num < array.Length) { if (array[num].PrizeWins != 0u) { this.AddJackpotData(array[num]); } num--; } GUIManager.Instance.UpdateUI(EGUIWindow.UI_Battle_Gambling, 0, 0); GUIManager.Instance.UpdateUI(EGUIWindow.UI_Battle_Gambling, 2, 0); GUIManager.Instance.UpdateUI(EGUIWindow.UI_MonsterCrypt, 0, 0); }
// Token: 0x060002F2 RID: 754 RVA: 0x00027D7C File Offset: 0x00025F7C public void InitWonderDefence(MessagePacket MP) { this.WonderID = MP.ReadByte(-1); this.UIWonderID = this.WonderID; if (this.PositionInfo != 1) { this.AllyCurrTroop = MP.ReadUInt(-1); } this.AllyMAXTroop = MP.ReadUInt(-1); this.EnemyCapitalPoint.zoneID = MP.ReadUShort(-1); this.EnemyCapitalPoint.pointID = MP.ReadByte(-1); this.EnemyHead = MP.ReadUShort(-1); MP.ReadStringPlus(13, this.EnemyName, -1); MP.ReadStringPlus(3, this.EnemyAllianceTag, -1); this.EnemyHomeKingdom = MP.ReadUShort(-1); }
// Token: 0x06000110 RID: 272 RVA: 0x00012320 File Offset: 0x00010520 public void Recv_MSG_RESP_ALLIANCEWAR_MEMBER_DATA(MessagePacket MP) { this.m_AllianceWarHintData.bMain = false; this.m_AllianceWarHintData.Head = MP.ReadUShort(-1); for (int i = 0; i < 5; i++) { this.m_AllianceWarHintData.HeroData[i].ID = MP.ReadUShort(-1); this.m_AllianceWarHintData.HeroData[i].Rank = MP.ReadByte(-1); this.m_AllianceWarHintData.HeroData[i].Star = MP.ReadByte(-1); } if (this.m_AllianceWarHintData.HeroData[0].ID != 0) { this.m_AllianceWarHintData.bMain = (this.m_AllianceWarHintData.Head == this.m_AllianceWarHintData.HeroData[0].ID); } else { this.m_AllianceWarHintData.bMain = false; } for (int j = 0; j < 16; j++) { this.m_AllianceWarHintData.TroopData[j] = MP.ReadUInt(-1); } this.m_AllianceWarHintData.ArmyCoordIndex = MP.ReadByte(-1); this.m_AllianceWarHintData.ArmyCoordIndex = (byte)Mathf.Clamp((int)this.m_AllianceWarHintData.ArmyCoordIndex, 0, 5); GUIManager.Instance.UpdateUI(EGUIWindow.UI_AllianceWarRegister, 4, 0); }
// Token: 0x06001068 RID: 4200 RVA: 0x001D4894 File Offset: 0x001D2A94 public void RecvAmbushInfo(MessagePacket MP) { this.ClearAmbushData(); byte b = MP.ReadByte(-1); MP.ReadStringPlus(13, this.m_AmbushPlayerName, -1); this.m_AmbushPlayerCapitalPos.zoneID = MP.ReadUShort(-1); this.m_AmbushPlayerCapitalPos.pointID = MP.ReadByte(-1); this.m_AmbushPlayerHead = MP.ReadUShort(-1); for (int i = 0; i < this.m_HeroInfo.Length; i++) { this.m_HeroInfo[i].HeroID = MP.ReadUShort(-1); this.m_HeroInfo[i].Rank = MP.ReadByte(-1); this.m_HeroInfo[i].Star = MP.ReadByte(-1); } this.m_TroopFlag = MP.ReadUShort(-1); for (int j = 0; j < this.m_TroopData.Length; j++) { if ((this.m_TroopFlag >> j & 1) == 1) { this.m_TroopData[j] = MP.ReadUInt(-1); } } GUIManager.Instance.UpdateUI(EGUIWindow.UI_Ambush, 0, 0); GUIManager.Instance.BuildingData.UpdateBuildState(5, 255); if (b == 0) { this.m_Str.ClearString(); this.m_Str.StringToFormat(this.m_AmbushPlayerName); this.m_Str.AppendFormat(this.DM.mStringTable.GetStringByID(9742u)); this.GM.AddHUDMessage(this.m_Str.ToString(), 29, true); } }
// Token: 0x060011AE RID: 4526 RVA: 0x001EE340 File Offset: 0x001EC540 public void RecvFootBallKickFailedReturn(MessagePacket MP) { DataManager dataManager = DataManager.Instance; GUIManager guimanager = GUIManager.Instance; FAILED_REASON failed_REASON = (FAILED_REASON)MP.ReadByte(-1); byte b = MP.ReadByte(-1); if (b >= 8) { return; } dataManager.MarchEventData[(int)b].Type = (EMarchEventType)MP.ReadByte(-1); dataManager.MarchEventTime[(int)b].BeginTime = MP.ReadLong(-1); dataManager.MarchEventTime[(int)b].RequireTime = MP.ReadUInt(-1); dataManager.SetQueueBarData(EQueueBarIndex.MarchingBegin + (int)b, true, dataManager.MarchEventTime[(int)b].BeginTime, dataManager.MarchEventTime[(int)b].RequireTime); dataManager.CheckTroolCount(); guimanager.UpdateUI(EGUIWindow.UI_ArmyInfo, 0, 0); guimanager.UpdateUI(EGUIWindow.UI_BagFilter, -1, (int)(2 + b)); guimanager.UpdateUI(EGUIWindow.UI_Rally, 0, 0); if (failed_REASON == FAILED_REASON.FAILED_REASON_KICK_AWAY) { guimanager.AddHUDMessage(dataManager.mStringTable.GetStringByID(14737u), 255, true); } else if (failed_REASON == FAILED_REASON.FAILED_REASON_KICK_VANISH) { guimanager.AddHUDMessage(dataManager.mStringTable.GetStringByID(14738u), 255, true); } }
// Token: 0x06001073 RID: 4211 RVA: 0x001D56E8 File Offset: 0x001D38E8 public void RecvAmbushReturn(MessagePacket MP) { byte b = MP.ReadByte(-1); byte b2 = MP.ReadByte(-1); if (b2 >= 8) { return; } this.DM.MarchEventData[(int)b2].Point.zoneID = MP.ReadUShort(-1); this.DM.MarchEventData[(int)b2].Point.pointID = MP.ReadByte(-1); this.DM.MarchEventTime[(int)b2].BeginTime = MP.ReadLong(-1); this.DM.MarchEventTime[(int)b2].RequireTime = MP.ReadUInt(-1); this.DM.MarchEventData[(int)b2].PointKind = POINT_KIND.PK_CITY; this.DM.MarchEventData[(int)b2].bRallyHost = 1; this.DM.SetQueueBarData(EQueueBarIndex.MarchingBegin + (int)b2, true, this.DM.MarchEventTime[(int)b2].BeginTime, this.DM.MarchEventTime[(int)b2].RequireTime); switch (b) { case 0: this.DM.MarchEventData[(int)b2].Type = EMarchEventType.EMET_CampReturn; break; case 1: this.DM.MarchEventData[(int)b2].Type = EMarchEventType.EMET_CampReturn; GUIManager.Instance.AddHUDMessage(this.DM.mStringTable.GetStringByID(9730u), 14, true); break; case 2: this.DM.MarchEventData[(int)b2].Type = EMarchEventType.EMET_CampRetreat; break; } GUIManager.Instance.HideUILock(EUILock.Ambush); GUIManager.Instance.UpdateUI(EGUIWindow.UI_ArmyInfo, 0, 0); }
// Token: 0x0600128C RID: 4748 RVA: 0x00209F04 File Offset: 0x00208104 public static void MSG_RESP_LORD_BEINGCAPTIVE(MessagePacket MP) { if (DataManager.Instance.beCaptured.AlliTag == null) { DataManager.Instance.beCaptured.AlliTag = StringManager.Instance.SpawnString(30); } if (DataManager.Instance.beCaptured.name == null) { DataManager.Instance.beCaptured.name = StringManager.Instance.SpawnString(30); } DataManager.Instance.beCaptured.AlliTag.ClearString(); DataManager.Instance.beCaptured.name.ClearString(); DataManager.Instance.beCaptured.KingdomID = MP.ReadUShort(-1); DataManager.Instance.beCaptured.head = MP.ReadUShort(-1); MP.ReadStringPlus(3, DataManager.Instance.beCaptured.AlliTag, -1); MP.ReadStringPlus(13, DataManager.Instance.beCaptured.name, -1); PointCode pointCode = default(PointCode); pointCode.zoneID = MP.ReadUShort(-1); pointCode.pointID = MP.ReadByte(-1); DataManager.Instance.beCaptured.MapID = GameConstants.PointCodeToMapID(pointCode.zoneID, pointCode.pointID); byte prisonerStat = MP.ReadByte(-1); DataManager.Instance.beCaptured.prisonerStat = (PrisonerState)prisonerStat; DataManager.Instance.beCaptured.nowCaptureStat = LoadCaptureState.Captured; DataManager.Instance.beCaptured.StartActionTime = MP.ReadLong(-1); DataManager.Instance.beCaptured.TotalTime = MP.ReadUInt(-1); DataManager.Instance.beCaptured.Ransom = MP.ReadUInt(-1); DataManager.Instance.beCaptured.Bounty = MP.ReadUInt(-1); byte b = MP.ReadByte(-1); DataManager.Instance.beCaptured.HomeKingdomID = MP.ReadUShort(-1); ushort leaderID = DataManager.Instance.GetLeaderID(); if (leaderID != 0) { DataManager.Instance.TempFightHeroID[(int)leaderID] = 1; DataManager.Instance.SetFightHeroData(); GameManager.OnRefresh(NetworkNews.Refresh_Hero, null); GUIManager.Instance.UpdateUI(EGUIWindow.UI_HeroList_Soldier2, 1, 0); GUIManager.Instance.UpdateUI(EGUIWindow.UI_BattleHeroSelect, 3, 0); } GUIManager.Instance.UpdateUI(EGUIWindow.UI_LordInfo, 0, 0); GUIManager.Instance.UpdateUI(EGUIWindow.Door, 18, 0); DataManager.Instance.AttribVal.UpdateAttrVal(UpdateAttrKind.Hero); DataManager.Instance.AttribVal.UpdateLordEquipData(); }
// Token: 0x0600128F RID: 4751 RVA: 0x0020A3E4 File Offset: 0x002085E4 public static void MSG_RESP_PAY_RANSOM(MessagePacket MP) { if (MP.ReadByte(-1) == 0) { DataManager.Instance.Resource[4].Stock = MP.ReadUInt(-1); GameManager.OnRefresh(NetworkNews.Refresh_Resource, null); } }
// Token: 0x060012E9 RID: 4841 RVA: 0x0020F850 File Offset: 0x0020DA50 public void Recv_MSG_RESP_ALLIANCEMOBILIZATION_LEGENDRANK(MessagePacket MP) { byte b = MP.ReadByte(-1); if (b == 0) { ushort mobilizationAlliWorldRank = MP.ReadUShort(-1); ushort mobilizationAlliWorldLastRank = MP.ReadUShort(-1); byte b2 = MP.ReadByte(-1); ushort num = MP.ReadUShort(-1); if ((b2 & 1) > 0) { this.ClearMobiAlliWorldBoard(); this.MobilizationAlliWorldRank = 0; this.MobilizationAlliWorldLastRank = 0; this.MobiAlliWorldAllianceID = DataManager.Instance.RoleAlliance.Id; } this.MobilizationAlliWorldRank = (int)mobilizationAlliWorldRank; this.MobilizationAlliWorldLastRank = (int)mobilizationAlliWorldLastRank; for (int i = 0; i < (int)num; i++) { MobilizationAlliWorldBroudUnit mobilizationAlliWorldBroudUnit = new MobilizationAlliWorldBroudUnit(); mobilizationAlliWorldBroudUnit.AlliacneID = MP.ReadUInt(-1); mobilizationAlliWorldBroudUnit.State = MP.ReadByte(-1); mobilizationAlliWorldBroudUnit.ChangeRank = MP.ReadByte(-1); mobilizationAlliWorldBroudUnit.KingdomID = MP.ReadUShort(-1); MP.ReadStringPlus(3, mobilizationAlliWorldBroudUnit.AllianceTag, -1); MP.ReadStringPlus(20, mobilizationAlliWorldBroudUnit.Name, -1); mobilizationAlliWorldBroudUnit.Score = MP.ReadUInt(-1); this.MobilizationAlliWorldBoard.Add(mobilizationAlliWorldBroudUnit); } if (b2 >= 2) { this.MobilizationAlliWorldBoardTime = ActivityManager.Instance.ServerEventTime + 43200L; GUIManager.Instance.UpdateUI(EGUIWindow.UI_AlliMobi_WorldBoard, 0, 0); } } else if (b == 2) { GUIManager.Instance.UpdateUI(EGUIWindow.UI_AlliMobi_WorldBoard, 2, 0); } else { GUIManager.Instance.UpdateUI(EGUIWindow.UI_AlliMobi_WorldBoard, 5, 0); } }
// Token: 0x0600128E RID: 4750 RVA: 0x0020A348 File Offset: 0x00208548 public static void MSG_RESP_CHANGE_BOUNTY(MessagePacket MP) { byte b = MP.ReadByte(-1); if (b == 0) { DataManager.Instance.beCaptured.Bounty = MP.ReadUInt(-1); DataManager.Instance.Resource[4].Stock = MP.ReadUInt(-1); GameManager.OnRefresh(NetworkNews.Refresh_Resource, null); GUIManager.Instance.UpdateUI(EGUIWindow.UI_LordInfo, 0, 0); } else if (b == 3) { GUIManager.Instance.AddHUDMessage(DataManager.Instance.mStringTable.GetStringByID(7796u), 255, true); GUIManager.Instance.UpdateUI(EGUIWindow.UI_LordInfo, 0, 0); } }
// Token: 0x060008D9 RID: 2265 RVA: 0x000B55F4 File Offset: 0x000B37F4 public void Recv_MSG_RESP_GAMBLE_INFO(MessagePacket MP) { byte b = MP.ReadByte(-1); GUIManager.Instance.HideUILock(EUILock.UIBattleGambling); if (b == 0 || b == 1) { this.m_GambleGameInfo.InitGambleGameInfo(); this.m_GambleGameInfo.BigCost = MP.ReadUInt(-1); this.m_GambleGameInfo.SmallCost = MP.ReadUInt(-1); for (int i = 0; i < this.m_GambleGameInfo.GambleData.Length; i++) { this.m_GambleGameInfo.GambleData[i].Stage = MP.ReadByte(-1); this.m_GambleGameInfo.GambleData[i].RemainFreePlay = MP.ReadByte(-1); if (this.m_GambleGameInfo.GambleData[i].RemainFreePlay != 0 && this.mComboMax == 0) { this.mComboMax = this.m_GambleGameInfo.GambleData[i].RemainFreePlay; GUIManager.Instance.UpdateUI(EGUIWindow.UI_Battle_Gambling, 22, 0); } } this.m_GambleGameInfo.Prize = MP.ReadUInt(-1); GUIManager guimanager = GUIManager.Instance; DataManager dataManager = DataManager.Instance; guimanager.bClearWindowStack = false; this.BattleMonsterID = this.m_GambleEventSave.MonsterID; if (!DataManager.CheckGambleBattleResources()) { GUIManager.Instance.AddHUDMessage(dataManager.mStringTable.GetStringByID(8350u), 255, true); return; } if (BattleController.IsGambleMode) { BattleController.GambleResult = 0; BattleNetwork.RefreshGambleMode(BattleController.GambleMode); } else { DataManager.Instance.WorldCameraTransitionsPos = GameConstants.GamblingGuy; BattleController.GambleMode = EGambleMode.Normal; BattleController.GambleResult = 0; BattleController.BattleMode = EBattleMode.Gambling; guimanager.pDVMgr.NextTransitions(eTrans.BEGIN, eTransFunc.GambleBattle); } } }
// Token: 0x0600161F RID: 5663 RVA: 0x0025A85C File Offset: 0x00258A5C public static void DispatchResource(MessagePacket MP) { uint val = MP.ReadUInt(-1); long speed = MP.ReadLong(-1); DataManager.Instance.PetResource.SetResource(val, speed); GameManager.OnRefresh(NetworkNews.Refresh_PetResource, null); GUIManager.Instance.UpdateUI(EGUIWindow.UI_PetResourceStation, 1, 0); }
// Token: 0x06001275 RID: 4725 RVA: 0x00208FEC File Offset: 0x002071EC public void RecvShelterData(MessagePacket MP) { this.LordID = MP.ReadUShort(-1); if (this.LordID != 0) { this.LordInShelter = 1; } else { this.LordInShelter = 0; } this.ShelterTime.BeginTime = MP.ReadLong(-1); this.ShelterTime.RequireTime = MP.ReadUInt(-1); ushort num = MP.ReadUShort(-1); Array.Clear(this.TroopData, 0, this.TroopData.Length); for (int i = 0; i < 16; i++) { if ((num >> i & 1) == 1) { this.TroopData[i] = MP.ReadUInt(-1); } } if (this.LordInShelter == 1) { if (this.LordID != 0 && (int)this.LordID < DataManager.Instance.TempFightHeroID.Length) { DataManager.Instance.TempFightHeroID[(int)this.LordID] = 1; } DataManager.Instance.SetFightHeroData(); GameManager.OnRefresh(NetworkNews.Refresh_Hero, null); } if (this.ShelterTime.BeginTime > 0L) { DataManager.Instance.SetQueueBarData(EQueueBarIndex.HideArmy, true, this.ShelterTime.BeginTime, this.ShelterTime.RequireTime); } else { DataManager.Instance.SetQueueBarData(EQueueBarIndex.HideArmy, false, 0L, 0u); } DataManager.Instance.SetRecvQueueBarData(31); DataManager.Instance.AttribVal.UpdateSoldierConsume(SoldierConsumeType.Hide, byte.MaxValue); GUIManager.Instance.UpdateUI(EGUIWindow.UI_ArmyInfo, 2, 0); }
// Token: 0x06001290 RID: 4752 RVA: 0x0020A420 File Offset: 0x00208620 public static void RecvLordReleasedTime(MessagePacket MP) { DataManager.Instance.beCaptured.StartActionTime = MP.ReadLong(-1); DataManager.Instance.beCaptured.TotalTime = MP.ReadUInt(-1); DataManager.Instance.SetQueueBarData(EQueueBarIndex.LordReturn, true, DataManager.Instance.beCaptured.StartActionTime, DataManager.Instance.beCaptured.TotalTime); DataManager.Instance.SetRecvQueueBarData(30); DataManager.Instance.CheckTroolCount(); GUIManager.Instance.UpdateUI(EGUIWindow.UI_ArmyInfo, 0, 0); GUIManager.Instance.UpdateUI(EGUIWindow.UI_LordInfo, 0, 0); }