Ejemplo n.º 1
0
        /// <summary>
        /// Loads a default instance
        /// </summary>
        private static void LoadDefault()
        {
            _current = new GameSettings();

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