/// <summary> /// Loads a default instance /// </summary> private static void LoadDefault() { _current = new GameSettings(); // Saves the default instance Save(); }
/// <summary> /// Load action /// </summary> /// <param name="stream"></param> private static void Load(Stream stream) { _current = (GameSettings)new XmlSerializer(typeof(GameSettings)).Deserialize(stream); }