// Token: 0x06001297 RID: 4759 RVA: 0x0020A9CC File Offset: 0x00208BCC public static void MSG_RESP_ADD_PRISONER(MessagePacket MP) { JailManage.readPrisonerData(MP); JailManage.sortJail(); GUIManager.Instance.UpdateUI(EGUIWindow.UI_Jail, 0, 0); GUIManager.Instance.UpdateUI(EGUIWindow.UI_JailRoom, 0, 0); }
// Token: 0x0600129D RID: 4765 RVA: 0x0020AE2C File Offset: 0x0020902C public static void MSG_RESP_RELEASE_PRISONER(MessagePacket MP) { if (MP.ReadByte(-1) == 0) { byte b = MP.ReadByte(-1); DataManager.Instance.PrisonerList[(int)b].nowStat = PrisonerState.None; } JailManage.sortJail(); GUIManager.Instance.UpdateUI(EGUIWindow.UI_Jail, 0, 0); GUIManager.Instance.UpdateUI(EGUIWindow.UI_JailRoom, 0, 0); }
// Token: 0x0600129C RID: 4764 RVA: 0x0020ADCC File Offset: 0x00208FCC public static void MSG_RESP_CHANGE_RANSOM(MessagePacket MP) { if (MP.ReadByte(-1) == 0) { byte b = MP.ReadByte(-1); DataManager.Instance.PrisonerList[(int)b].Ransom = MP.ReadUInt(-1); } JailManage.sortJail(); GUIManager.Instance.UpdateUI(EGUIWindow.UI_Jail, 0, 0); GUIManager.Instance.UpdateUI(EGUIWindow.UI_JailRoom, 0, 0); }
// Token: 0x06001296 RID: 4758 RVA: 0x0020A96C File Offset: 0x00208B6C public static void MSG_RESP_PRISONER_LIST(MessagePacket MP) { JailManage.CleanJail(); DataManager.Instance.Prisoner_Requested = true; byte b = MP.ReadByte(-1); for (int i = 0; i < (int)b; i++) { JailManage.readPrisonerData(MP); } JailManage.sortJail(); GUIManager.Instance.UpdateUI(EGUIWindow.UI_Jail, 0, 0); GUIManager.Instance.UpdateUI(EGUIWindow.UI_JailRoom, 0, 0); }
// Token: 0x0600129F RID: 4767 RVA: 0x0020B0A8 File Offset: 0x002092A8 public static void MSG_PRISON_RESP_PRISONER_POISONEFFECT(MessagePacket MP) { byte b = MP.ReadByte(-1); DataManager.Instance.PrisonerList[(int)b].nowStat = PrisonerState.None; JailManage.sortJail(); GUIManager.Instance.UpdateUI(EGUIWindow.UI_Jail, 0, 0); if (GUIManager.Instance.FindMenu(EGUIWindow.UI_JailRoom) != null) { UIJailRoom uijailRoom = (UIJailRoom)GUIManager.Instance.FindMenu(EGUIWindow.UI_JailRoom); if (uijailRoom.DMIdx == b) { Door door = (Door)GUIManager.Instance.FindMenu(EGUIWindow.Door); door.CloseMenu(false); } } }
// Token: 0x0600129B RID: 4763 RVA: 0x0020AD18 File Offset: 0x00208F18 public static void MSG_RESP_RELEASE_ALL_PRISONER(MessagePacket MP) { DataManager.Instance.PrisonerNum = 0; DataManager.Instance.PrisonerHighestLevel = 0; GUIManager.Instance.BuildingData.UpdateBuildState(5, 255); DataManager.Instance.AttribVal.UpdateJailData(); for (byte b = 0; b < 30; b += 1) { DataManager.Instance.PrisonerList[(int)b].nowStat = PrisonerState.None; } JailManage.sortJail(); GUIManager.Instance.UpdateUI(EGUIWindow.UI_Jail, 0, 0); if (GUIManager.Instance.FindMenu(EGUIWindow.UI_JailRoom) != null) { Door door = (Door)GUIManager.Instance.FindMenu(EGUIWindow.Door); door.CloseMenu(false); } }
// Token: 0x0600129E RID: 4766 RVA: 0x0020AE88 File Offset: 0x00209088 public static void MSG_RESP_EXECUTE_PRISONER(MessagePacket MP) { if (MP.ReadByte(-1) == 0) { byte b = MP.ReadByte(-1); if (!GameConstants.IsBetween((int)b, 0, 30)) { return; } DataManager.Instance.PrisonerList[(int)b].nowStat = PrisonerState.None; GUIManager.Instance.MsgStr.ClearString(); CString cstring = StringManager.Instance.StaticString1024(); cstring.ClearString(); ushort kingdomID = (DataManager.Instance.PrisonerList[(int)b].KingdomID == DataManager.MapDataController.kingdomData.kingdomID) ? 0 : DataManager.Instance.PrisonerList[(int)b].KingdomID; GUIManager.Instance.FormatRoleNameForChat(cstring, DataManager.Instance.PrisonerList[(int)b].name, DataManager.Instance.PrisonerList[(int)b].AlliTag, kingdomID, GUIManager.Instance.IsArabic); GUIManager.Instance.MsgStr.StringToFormat(cstring); GUIManager.Instance.MsgStr.AppendFormat(DataManager.Instance.mStringTable.GetStringByID(12062u)); GUIManager.Instance.AddHUDMessage(GUIManager.Instance.MsgStr.ToString(), 31, true); Hero recordByKey = DataManager.Instance.HeroTable.GetRecordByKey(DataManager.Instance.PrisonerList[(int)b].head); if (DataManager.Instance.CheckHeroSound(DataManager.Instance.PrisonerList[(int)b].head)) { AudioManager.Instance.PlaySFX(recordByKey.DyingSound, 0f, PitchKind.SpeechSound, null, null); } UIJailRoom x = GUIManager.Instance.FindMenu(EGUIWindow.UI_JailRoom) as UIJailRoom; if (x != null) { Door door = GUIManager.Instance.FindMenu(EGUIWindow.Door) as Door; if (door != null) { door.CloseMenu(false); } } FBAdvanceManager.Instance.TriggerFbUniqueEvent(EFBEvent.FIRST_EXECUTION); } JailManage.sortJail(); GUIManager.Instance.UpdateUI(EGUIWindow.UI_Jail, 0, 0); GUIManager.Instance.UpdateUI(EGUIWindow.UI_JailRoom, 0, 0); }
// Token: 0x06001298 RID: 4760 RVA: 0x0020AA00 File Offset: 0x00208C00 public static void MSG_RESP_UPDATE_PRISONER(MessagePacket MP) { byte b = MP.ReadByte(-1); switch (MP.ReadByte(-1)) { case 0: if (DataManager.Instance.PrisonerList[(int)b].AlliTag == null) { DataManager.Instance.PrisonerList[(int)b].AlliTag = StringManager.Instance.SpawnString(30); } DataManager.Instance.PrisonerList[(int)b].AlliTag.ClearString(); MP.ReadStringPlus(3, DataManager.Instance.PrisonerList[(int)b].AlliTag, -1); break; case 1: if (DataManager.Instance.PrisonerList[(int)b].name == null) { DataManager.Instance.PrisonerList[(int)b].name = StringManager.Instance.SpawnString(30); } DataManager.Instance.PrisonerList[(int)b].name.ClearString(); MP.ReadStringPlus(13, DataManager.Instance.PrisonerList[(int)b].name, -1); break; case 2: DataManager.Instance.PrisonerList[(int)b].nowStat = (PrisonerState)MP.ReadByte(-1); DataManager.Instance.PrisonerList[(int)b].StartActionTime = MP.ReadLong(-1); DataManager.Instance.PrisonerList[(int)b].TotalTime = MP.ReadUInt(-1); break; case 4: DataManager.Instance.PrisonerList[(int)b].KingdomID = MP.ReadUShort(-1); break; } JailManage.sortJail(); GUIManager.Instance.UpdateUI(EGUIWindow.UI_Jail, 0, 0); GUIManager.Instance.UpdateUI(EGUIWindow.UI_JailRoom, 0, 0); }
// Token: 0x0600129A RID: 4762 RVA: 0x0020AC5C File Offset: 0x00208E5C public static void MSG_RESP_PRISONER_BAILED(MessagePacket MP) { byte b = MP.ReadByte(-1); if (!GameConstants.IsBetween((int)b, 0, 30)) { return; } DataManager.Instance.PrisonerList[(int)b].nowStat = PrisonerState.None; DataManager.Instance.Resource[4].Stock = MP.ReadUInt(-1); GameManager.OnRefresh(NetworkNews.Refresh_Resource, null); JailManage.sortJail(); GUIManager.Instance.UpdateUI(EGUIWindow.UI_Jail, 0, 0); if (GUIManager.Instance.FindMenu(EGUIWindow.UI_JailRoom) != null) { UIJailRoom uijailRoom = (UIJailRoom)GUIManager.Instance.FindMenu(EGUIWindow.UI_JailRoom); if (uijailRoom.DMIdx == b) { Door door = (Door)GUIManager.Instance.FindMenu(EGUIWindow.Door); door.CloseMenu(false); } } }