public static GameSettingsInfos LoadDatas(GraphicsDevice graphicsDevice, string xmlFile = "gameSettings.xml") { _xmlManager = new CXMLManager(); _xmlFile = xmlFile; _graphicsDevice = graphicsDevice; if (File.Exists(xmlFile)) { _gameSettings = _xmlManager.deserializeClass <GameSettingsInfos>(_xmlFile); } else { generateDefaultSettings(); } gamepadState = GamePad.GetState(PlayerIndex.One); useGamepad = gamepadState.IsConnected; return(_gameSettings); }
public CLevelInfo() { _xmlManager = new CXMLManager(); }