Contains global information about the GameMode.
Esempio n. 1
0
        /// <summary>
        /// Creates an instance of the <see cref="GameMode"/> class and loads the data model.
        /// </summary>
        internal GameMode(GameModeInfo gameModeInfo, GameContext gameContext, FileProvider fileLoader) : base(gameContext)
        {
            GameModeInfo = gameModeInfo;
            FileLoader   = fileLoader;

            // only continue if the game mode config file loaded correctly.
            if (GameModeInfo.IsValid)
            {
                MapFragmentManager = new MapFragmentManager(this);
                PokemonFactory     = new PokemonFactory(this);
            }

            IsValid = true;
        }
Esempio n. 2
0
        /// <summary>
        /// Creates an instance of the <see cref="GameMode"/> class and loads the data model.
        /// </summary>
        internal GameMode(GameModeInfo gameModeInfo, GameContext gameContext, FileProvider fileLoader) : base(gameContext)
        {
            GameModeInfo = gameModeInfo;
            FileLoader = fileLoader;

            // only continue if the game mode config file loaded correctly.
            if (GameModeInfo.IsValid)
            {
                MapFragmentManager = new MapFragmentManager(this);
                PokemonFactory = new PokemonFactory(this);
            }

            IsValid = true;
        }
Esempio n. 3
0
 public GameMode CreateGameMode(GameModeInfo gameModeInfo, GameContext gameContext)
 {
     return new GameMode(gameModeInfo, gameContext, new FileLoader());
 }
Esempio n. 4
0
 public GameMode CreateGameMode(GameModeInfo gameModeInfo, GameContext gameContext)
 {
     return(new GameMode(gameModeInfo, gameContext, new FileLoader()));
 }