示例#1
0
 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;
 }
示例#2
0
    void RecvWhisperMessage(H2C.RecvWhisperMessage packet)
    {
        if (IsConnected == false)
        {
            return;
        }

        ChatLine line = new ChatLine(packet);

        ChatLineManager.Instance.AddLine(line);

        m_ChatLabelCallback(line);
    }