// Token: 0x060012D7 RID: 4823 RVA: 0x0020DE64 File Offset: 0x0020C064 public void Recv_MSG_RESP_ARENA_BOARDDATA(MessagePacket MP) { ArenaManager.Instance.m_ArenaTargetHint.AllianceTagTag = MP.ReadString(3, -1); ArenaManager.Instance.m_ArenaTargetHint.Name = MP.ReadString(13, -1); ArenaManager.Instance.m_ArenaTargetHint.Place = (uint)((byte)MP.ReadULong(-1)); ArenaManager.Instance.m_ArenaTargetHint.HeroData = new ArenaTargetHeroDataType[5]; ArenaManager instance = ArenaManager.Instance; instance.m_ArenaTargetHint.Place = instance.m_ArenaTargetHint.Place + 1u; for (int i = 0; i < 5; i++) { ArenaManager.Instance.m_ArenaTargetHint.HeroData[i].ID = MP.ReadUShort(-1); ArenaManager.Instance.m_ArenaTargetHint.HeroData[i].Level = MP.ReadByte(-1); ArenaManager.Instance.m_ArenaTargetHint.HeroData[i].Rank = MP.ReadByte(-1); ArenaManager.Instance.m_ArenaTargetHint.HeroData[i].Star = MP.ReadByte(-1); ArenaManager.Instance.m_ArenaTargetHint.HeroData[i].Equip = MP.ReadByte(-1); MP.ReadInt(-1); } ArenaManager.Instance.m_ArenaTargetHint.Head = ArenaManager.Instance.m_ArenaTargetHint.HeroData[0].ID; Transform parent = this.hintTarget.transform.parent; this.hintTarget.transform.SetParent(this.hintCenter); Vector2 anchoredPosition = this.hintTarget.GetComponent <RectTransform>().anchoredPosition; this.hintTarget.transform.SetParent(parent); this.hintTarget.transform.SetSiblingIndex(11); float num = anchoredPosition.y + 410f; num = Mathf.Clamp(num, -190f, 150f); GUIManager.Instance.m_Arena_Hint.Show(this.hintTarget, -40f, num, 0); }
// Token: 0x06001F82 RID: 8066 RVA: 0x003C23F0 File Offset: 0x003C05F0 public static void RespSuicideNumByPowerBoard(MessagePacket MP) { GUIManager.Instance.HideUILock(EUILock.LordInfo); int num = MP.ReadInt(-1); UISuicideBox.ItemRequire = MP.ReadUShort(-1); if (GUIManager.Instance.FindMenu(EGUIWindow.UI_SuicideBox) != null) { GUIManager.Instance.UpdateUI(EGUIWindow.UI_SuicideBox, 0, 0); } else { UISuicideBox.OpenSelf(false); } }
// Token: 0x06002583 RID: 9603 RVA: 0x0042BC58 File Offset: 0x00429E58 public void Enter(MessagePacket MP) { if (NetworkPeeper.Stage != LoginPhase.LP_Connecting) { this.LostInSpace = true; return; } AddressFamily addressFamily = AddressFamily.Unknown; CString cstring = StringManager.Instance.StaticString1024(); cstring.ClearString(); string text = MP.ReadString(16, MP.Offset + 4); GameConstants.GetHostName(cstring, text, "lm-proxy-"); IPAddress[] array = null; try { array = Dns.GetHostAddresses(cstring.ToString()); } catch (Exception ex) { Debug.Log("[Enter]:" + ex.Message); } if (array == null) { array = new IPAddress[1]; if (IPAddress.TryParse(text, out array[0])) { addressFamily = array[0].AddressFamily; } } else if (array.Length > 0 && array[0] != null) { addressFamily = array[0].AddressFamily; } cstring.ClearString(); if (addressFamily == AddressFamily.Unknown) { this.LostInSpace = true; return; } this.ConnectTime = 15f; NetworkPeeper.Sucket = new Socket(addressFamily, SocketType.Stream, ProtocolType.Tcp) { Blocking = false, SendTimeout = 0, ReceiveTimeout = 0 }; try { NetworkPeeper.Sucket.SetSocketOption(SocketOptionLevel.Tcp, SocketOptionName.Debug, true); NetworkPeeper.Sucket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.Linger, NetworkManager.LOL); } catch { } if (NetworkPeeper.Sucket.BeginConnect(array[0], MP.ReadInt(-1), new AsyncCallback(this.ConnectCallback), NetworkPeeper.Sucket).CompletedSynchronously) { this.ConnectCallback(null); } }