public void FromXml(XmlNode node) { _totalScore = 0; _guid = Guid.Empty; _enableGameExplorer = false; _description = string.Empty; _releaseDate = DateTime.Now; _genre = DEFAULT_GENRE; _version = DEFAULT_VERSION; _windowsExperienceIndex = 1; _developerName = string.Empty; _developerURL = string.Empty; _enhancedSaveGames = false; _saveGameExtension = string.Empty; _saveGamesFolderName = null; _binaryFilesInSourceControl = false; _guiAlphaStyle = GUIAlphaStyle.Classic; _spriteAlphaStyle = SpriteAlphaStyle.Classic; _runGameLoopsWhileDialogOptionsDisplayed = false; _inventoryHotspotMarker = new InventoryHotspotMarker(); _useLowResCoordinatesInScript = true; _audioIndexer = 0; _enforceNewAudio = false; SerializeUtils.DeserializeFromXML(this, node); if (_guid == Guid.Empty) { _guid = Guid.NewGuid(); } if (_saveGamesFolderName == null) { this.SaveGameFolderName = _gameName; } }
public void FromXml(XmlNode node) { _graphicsDriver = GraphicsDriver.DX5; _totalScore = 0; _guid = Guid.Empty; _enableGameExplorer = false; _description = string.Empty; _releaseDate = DateTime.Now; _genre = DEFAULT_GENRE; _version = DEFAULT_VERSION; _windowsExperienceIndex = 1; _developerName = string.Empty; _developerURL = string.Empty; _enhancedSaveGames = false; _saveGameExtension = string.Empty; _saveGamesFolderName = null; _binaryFilesInSourceControl = false; _guiAlphaStyle = GUIAlphaStyle.Classic; _spriteAlphaStyle = SpriteAlphaStyle.Classic; _runGameLoopsWhileDialogOptionsDisplayed = false; _inventoryHotspotMarker = new InventoryHotspotMarker(); _useLowResCoordinatesInScript = true; _audioIndexer = 0; _enforceNewAudio = false; SerializeUtils.DeserializeFromXML(this, node); if (_guid == Guid.Empty) { _guid = Guid.NewGuid(); } if (_saveGamesFolderName == null) { this.SaveGameFolderName = _gameName; } }