public GameEnvironmentPopulator(GameEnvironment world)
        {
            World = world;

            // TODO: Should all these creators be consistent with their constructor parameters?
            TileCreator = new TileCreator (world);
            PersonCreator = new PersonCreator (world.Context.Settings);
            PlantCreator = new PlantCreator (world.Context.Settings);
        }
示例#2
0
        public GameEnvironmentPopulator(GameEnvironment world)
        {
            World = world;


            // TODO: Should all these creators be consistent with their constructor parameters?
            TileCreator   = new TileCreator(world);
            PersonCreator = new PersonCreator(world.Context.Settings);
            PlantCreator  = new PlantCreator(world.Context.Settings);
        }
示例#3
0
        public void AddTilesFromSettings()
        {
            var tiles = TileCreator.Create(World.Context.Settings.DefaultTileQuantity);

            World.Tiles = tiles;
        }