Esempio n. 1
0
 private void FillDefaultGameSettings(DefaultGameSettings defaultGameSettings)
 {
     Add(nameof(defaultGameSettings.IsFullScreen), defaultGameSettings.IsFullScreen);
     Add(nameof(defaultGameSettings.WindowWidth), defaultGameSettings.WindowWidth);
     Add(nameof(defaultGameSettings.WindowHeight), defaultGameSettings.WindowHeight);
     Add(nameof(defaultGameSettings.IsMouseVisible), defaultGameSettings.IsMouseVisible);
 }
Esempio n. 2
0
        public GameSettings()
        {
            _gameSettings = new Dictionary <string, object>();

            DefaultGameSettings = GetDefaultGameSettings();
        }