public void HandleMessage(MumbleClient client) { if (!client.Channels.TryGetValue(channel_id, out var channel)) { channel = new MumbleChannel(client, this); } channel.Update(this); }
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); } }
public void SendUserState(MumbleChannel channel) { var message = new UserState(); if (channel != null) { message.channel_id = channel.Id; } MumbleWrite(message); }
public void SwitchChannel(MumbleChannel channel) { SendUserState(channel); }
public void HandleMessage(MumbleClient client) { MumbleChannel channel; if (!client.Channels.TryGetValue(channel_id, out channel)) { channel = new MumbleChannel(client, this); } channel.Update(this); }