public ChatLine(H2C.RecvWhisperMessage whisper_message) { Msg = MakeMessage(pe_MsgType.RecvWhisper, whisper_message.nickname, whisper_message.message); LineType = pe_MsgType.RecvWhisper; AccountIdx = whisper_message.account_idx; Nickname = whisper_message.nickname; Level = whisper_message.level; RecvAt = Network.Instance.ServerTime; HubType = pe_HubType.SmallHeroChat; }
void RecvWhisperMessage(H2C.RecvWhisperMessage packet) { if (IsConnected == false) { return; } ChatLine line = new ChatLine(packet); ChatLineManager.Instance.AddLine(line); m_ChatLabelCallback(line); }