public static bool DisconnecteStreamServer(byte id) { StreamServer server = Streamservers[id]; server.CurrentConnection = null; Streamservers.Remove(id); Streamservers.Add(id, server); return(true); }
public static void LoadAvailableStreamServers() { XmlSerializer ser = new XmlSerializer(typeof(GameServerTemplate)); GameServerTemplate template = (GameServerTemplate)ser.Deserialize(new FileStream(@"data/Servers.xml", FileMode.Open)); for (int i = 0; i < template.xmlservers.Count; i++) { StreamServer game = template.xmlservers[i]; game.CurrentAuthorized = new List <int>(); Streamservers.Add(game.Id, game); } Logger.Trace("Loading from Servers.xml {0} servers", Streamservers.Count); }