void WhisperMessageSendAck(C2H.WhisperMessageSendAck packet) { if (IsConnected == false) { return; } ChatLine line = new ChatLine(packet); ChatLineManager.Instance.AddLine(line); m_ChatLabelCallback(line); }
public ChatLine(C2H.WhisperMessageSendAck whisper_message) { LineType = pe_MsgType.SendWhisper; Nickname = whisper_message.nickname; if (whisper_message.not_found == false && whisper_message.no_exist_nickname == false) { Msg = MakeMessage(pe_MsgType.SendWhisper, whisper_message.nickname, whisper_message.message); Level = whisper_message.level; } else if (whisper_message.not_found == true) { Msg = "[ " + Nickname + " ]" + Localization.Get("ChatNotFound"); } else if (whisper_message.no_exist_nickname == true) { Msg = "[ " + Nickname + " ]" + Localization.Get("ChatNoExistNickname"); } RecvAt = Network.Instance.ServerTime; HubType = pe_HubType.SmallHeroChat; }