Пример #1
0
        public static EChatChannel Convert_ChatMsgType_Channel(COM_CHAT_MSG_TYPE type)
        {
            switch (type)
            {
            case COM_CHAT_MSG_TYPE.COM_CHAT_MSG_TYPE_LOGIC_WORLD:
                return(EChatChannel.Lobby);

            case COM_CHAT_MSG_TYPE.COM_CHAT_MSG_TYPE_PRIVATE:
                return(EChatChannel.Friend);

            case COM_CHAT_MSG_TYPE.COM_CHAT_MSG_TYPE_ROOM:
                return(EChatChannel.Room);

            case COM_CHAT_MSG_TYPE.COM_CHAT_MSG_TYPE_GUILD:
                return(EChatChannel.Guild);

            case COM_CHAT_MSG_TYPE.COM_CHAT_MSG_TYPE_BATTLE:
                return(EChatChannel.Select_Hero);

            case COM_CHAT_MSG_TYPE.COM_CHAT_MSG_TYPE_TEAM:
                return(EChatChannel.Team);

            case COM_CHAT_MSG_TYPE.COM_CHAT_MSG_TYPE_SETTLE:
                return(EChatChannel.Settle);
            }
            return(EChatChannel.None);
        }
Пример #2
0
        public static EChatChannel Convert_ChatMsgType_Channel(COM_CHAT_MSG_TYPE type)
        {
            switch (type)
            {
            case 1:
                return(EChatChannel.Lobby);

            case 2:
                return(EChatChannel.Friend);

            case 3:
                return(EChatChannel.Room);

            case 4:
                return(EChatChannel.Guild);

            case 5:
                return(EChatChannel.Select_Hero);

            case 6:
                return(EChatChannel.Team);

            case 8:
                return(EChatChannel.Settle);

            case 11:
                return(EChatChannel.GuildMatchTeam);
            }
            return(EChatChannel.None);
        }