示例#1
0
 public void HandleMessage(MumbleClient client)
 {
     if (!client.Channels.TryGetValue(channel_id, out var channel))
     {
         channel = new MumbleChannel(client, this);
     }
     channel.Update(this);
 }
示例#2
0
 public void SendTextMessageToChannel(string message, MumbleChannel channel, bool recursive)
 {
     if (recursive)
     {
         SendTextMessage(message, null, Enumerable.Repeat(channel, 1), null);
     }
     else
     {
         SendTextMessage(message, Enumerable.Repeat(channel, 1), null, null);
     }
 }
示例#3
0
        public void SendUserState(MumbleChannel channel)
        {
            var message = new UserState();

            if (channel != null)
            {
                message.channel_id = channel.Id;
            }

            MumbleWrite(message);
        }
示例#4
0
 public void SendTextMessageToChannel(string message, MumbleChannel channel, bool recursive)
 {
     if (recursive)
     {
         SendTextMessage(message, null, Enumerable.Repeat(channel, 1), null);
     }
     else
     {
         SendTextMessage(message, Enumerable.Repeat(channel, 1), null, null);
     }
 }
示例#5
0
 public void SwitchChannel(MumbleChannel channel)
 {
     SendUserState(channel);
 }
示例#6
0
        public void HandleMessage(MumbleClient client)
        {
            MumbleChannel channel;
            if (!client.Channels.TryGetValue(channel_id, out channel))
            {
                channel = new MumbleChannel(client, this);
            }
            channel.Update(this);

        }
示例#7
0
 public void SwitchChannel(MumbleChannel channel)
 {
     SendUserState(channel);
 }