public static Client Create(ServerNetworking.Connection connection) { RemoteClient c = new RemoteClient(connection.UniqueID); c.Connection = connection; c.Name = "unknown"; return(c); }
public static void SendToAllExcept(OutboundMessage m, Client c) { ServerNetworking.Connection exclude = c.IsLocal ? null : (c as RemoteClient).Connection; GameServer.Instance.Networking.SendToAllExcept(m, exclude); if (c != LocalClient && LocalClient != null) { LocalClient.Send(m); } }