Пример #1
0
    void GuildGoldNotificationHandler(H2C.GuildGoldNotification 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, GuildInfoManager.Config.GetGivePoint(packet.gold));

        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();
        }
    }
Пример #2
0
 public ChatLine(H2C.GuildGoldNotification packet)
 {
     LineType = pe_MsgType.Guild;
     RecvAt   = Network.Instance.ServerTime;
     HubType  = pe_HubType.SmallHeroChat;
     Nickname = packet.user_info.nickname;
     Msg      = Localization.Format("GuildChatGoldGiveFormat", Nickname, packet.gold);
 }