Example #1
0
        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);
        }
Example #2
0
 public CLevelInfo()
 {
     _xmlManager = new CXMLManager();
 }