public void Broadcast(COutPacket packet) { foreach (var kvp in Sockets) { kvp.Value.SendPacket(packet); } packet.Dispose(); }
public void Broadcast(COutPacket packet, params WvsGameClient[] excludes) { foreach (var kvp in Sockets) { if (!excludes.Contains(kvp.Value)) { kvp.Value.SendPacket(packet); } } packet.Dispose(); }