Ejemplo n.º 1
0
    void GuildLeaveNotificationHandler(H2C.GuildLeaveNotification packet)
    {
        if (GuildManager.Instance.IsGuildJoined == false)
        {
            return;
        }
        if (GuildManager.Instance.GuildInfo.info.guild_idx != packet.guild_idx)
        {
            return;
        }

        if (packet.user_info.account_idx == SHSavedData.AccountIdx)
        {
            return;
        }

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


        GuildManager.Instance.RemoveMember(packet.user_info.account_idx);

        if (GameMain.Instance.CurrentGameMenu == GameMenu.Guild)
        {
            GameMain.Instance.GetCurrentMenu().UpdateMenu();
        }
    }
Ejemplo n.º 2
0
 public ChatLine(H2C.GuildLeaveNotification packet)
 {
     LineType = pe_MsgType.Guild;
     RecvAt   = Network.Instance.ServerTime;
     HubType  = pe_HubType.SmallHeroChat;
     Nickname = packet.user_info.nickname;
     if (packet.is_expulsion)
     {
         Msg = Localization.Format("GuildChatExpulsionMember", Nickname);
     }
     else
     {
         Msg = Localization.Format("GuildChatLeaveMember", Nickname);
     }
 }