Exemplo n.º 1
0
        public CChatChannel CreateChannel(EChatChannel type, ulong ullUid = 0, uint dwLogicWorldId = 0)
        {
            CChatChannel item = this._getChannel(type, ullUid, dwLogicWorldId);

            if (item == null)
            {
                if (type != EChatChannel.Friend)
                {
                    item = new CChatChannel(type, 0, 0L, 0);
                    this.NormalChannelList.Add(item);
                    return(item);
                }
                item = new CChatChannel(type, 0x1b58, ullUid, dwLogicWorldId);
                item.list.Add(CChatUT.Build_4_System(Singleton <CTextManager> .instance.GetText("Chat_Common_Tips_4")));
                item.ReadAll();
                this.FriendChannelList.Add(item);
            }
            return(item);
        }
Exemplo n.º 2
0
        public CChatChannel CreateChannel(EChatChannel type, ulong ullUid = 0uL, uint dwLogicWorldId = 0u)
        {
            CChatChannel cChatChannel = this._getChannel(type, ullUid, dwLogicWorldId);

            if (cChatChannel != null)
            {
                return(cChatChannel);
            }
            if (type != EChatChannel.Friend)
            {
                cChatChannel = new CChatChannel(type, 0u, 0uL, 0u);
                this.NormalChannelList.Add(cChatChannel);
            }
            else
            {
                cChatChannel = new CChatChannel(type, 7000u, ullUid, dwLogicWorldId);
                cChatChannel.list.Add(CChatUT.Build_4_System(Singleton <CTextManager> .instance.GetText("Chat_Common_Tips_4")));
                cChatChannel.ReadAll();
                this.FriendChannelList.Add(cChatChannel);
            }
            return(cChatChannel);
        }