Esempio n. 1
0
        private void InitGameDifficultySetting(GameStateModel game)
        {
            switch (game.Difficulty)
            {
            case GameDifficulfy.Easy:
                _gameDifficultySettings = (GameDifficultySettings)_settingsReader.Load(typeof(GameDifficultySettings), "GameDifficultyEasy");
                break;

            case GameDifficulfy.Normal:
                _gameDifficultySettings = (GameDifficultySettings)_settingsReader.Load(typeof(GameDifficultySettings), "GameDifficultyNormal");
                break;

            case GameDifficulfy.Hard:
                _gameDifficultySettings = (GameDifficultySettings)_settingsReader.Load(typeof(GameDifficultySettings), "GameDifficultyHard");
                break;
            }
        }