예제 #1
0
 public ChatLine(H2C.FriendsRequest packet)
 {
     LineType = pe_MsgType.System;
     RecvAt   = Network.Instance.ServerTime;
     HubType  = pe_HubType.SmallHeroChat;
     Nickname = packet.send_user.nickname;
     Msg      = Localization.Format("FriendsRequestMessage", Nickname);
 }
예제 #2
0
    void FriendsRequestHandler(H2C.FriendsRequest packet)
    {
        if (packet.target_user.account_idx == SHSavedData.AccountIdx)
        {
            ChatLine line = new ChatLine(packet);
            ChatLineManager.Instance.AddLine(line);
            m_ChatLabelCallback(line);

            Network.Instance.NotifyMenu.is_friends_requested = true;
        }
    }