Esempio n. 1
0
    private void onPartyFeedback(NetIncomingMessage a_msg)
    {
        ePartyFeedback ePartyFeedback = (ePartyFeedback)a_msg.ReadByte();
        string         str            = a_msg.ReadString();

        switch (ePartyFeedback)
        {
        case ePartyFeedback.invite:
            m_popupIdInvite = m_popupGui.ShowGui(true, str + LNG.Get("PARTY_POPUP_INVITED"));
            break;

        case ePartyFeedback.errorAlreadyInParty:
            m_popupGui.ShowGui(true, str + LNG.Get("PARTY_POPUP_ALREADY_IN_PARTY"));
            break;

        case ePartyFeedback.kicked:
            m_popupGui.ShowGui(true, str + LNG.Get("PARTY_POPUP_KICKED"));
            break;

        case ePartyFeedback.prodemoted:
            m_popupGui.ShowGui(true, str + LNG.Get("PARTY_POPUP_PRODEMOTED"));
            break;

        case ePartyFeedback.partyFull:
            m_popupGui.ShowGui(true, LNG.Get("PARTY_POPUP_FULL"));
            break;
        }
        DebugLogReadWriteMismatch(a_msg, "onPartyFeedback");
    }
Esempio n. 2
0
    private void onPartyFeedback(NetIncomingMessage a_msg)
    {
        ePartyFeedback ePartyFeedback = (ePartyFeedback)a_msg.ReadByte();
        string         str            = a_msg.ReadString();

        if (ePartyFeedback == ePartyFeedback.invite)
        {
            this.m_popupIdInvite = this.m_popupGui.ShowGui(true, str + LNG.Get("PARTY_POPUP_INVITED"));
        }
        else if (ePartyFeedback == ePartyFeedback.errorAlreadyInParty)
        {
            this.m_popupGui.ShowGui(true, str + LNG.Get("PARTY_POPUP_ALREADY_IN_PARTY"));
        }
        else if (ePartyFeedback == ePartyFeedback.kicked)
        {
            this.m_popupGui.ShowGui(true, str + LNG.Get("PARTY_POPUP_KICKED"));
        }
        else if (ePartyFeedback == ePartyFeedback.prodemoted)
        {
            this.m_popupGui.ShowGui(true, str + LNG.Get("PARTY_POPUP_PRODEMOTED"));
        }
        else if (ePartyFeedback == ePartyFeedback.partyFull)
        {
            this.m_popupGui.ShowGui(true, LNG.Get("PARTY_POPUP_FULL"));
        }
        this.DebugLogReadWriteMismatch(a_msg, "onPartyFeedback");
    }