Exemplo n.º 1
0
    void GuildAttendNotificationHandler(H2C.GuildAttendNotification packet)
    {
        if (GuildManager.Instance.IsGuildJoined == false)
        {
            return;
        }
        if (GuildManager.Instance.GuildInfo.info.guild_idx != packet.guild_idx)
        {
            return;
        }
        GuildManager.Instance.UpdateGuildMembers(packet.user_info.account_idx, packet.exp, true);

        if (IsListenGuild == true)
        {
            ChatLine line = new ChatLine(packet);
            ChatLineManager.Instance.AddLine(line);
            m_ChatLabelCallback(line);
        }

        GuildManager.Instance.SetGuildInfo(packet.guild_info);
        if (GameMain.Instance.CurrentGameMenu == GameMenu.Guild)
        {
            GameMain.Instance.GetCurrentMenu().UpdateMenu();
        }
    }
Exemplo n.º 2
0
 public ChatLine(H2C.GuildAttendNotification packet)
 {
     LineType = pe_MsgType.Guild;
     RecvAt   = Network.Instance.ServerTime;
     HubType  = pe_HubType.SmallHeroChat;
     Nickname = packet.user_info.nickname;
     Msg      = Localization.Format("GuildChatAttendFormat", Nickname, packet.exp);
 }