Exemplo n.º 1
0
        public static HexagonCollection GenerateWorld(WorldGenParamters world)
        {
            var collection = MakeDefaultHexagons(world.MaxRows, world.MaxCol, world.WrapEastWest);

            CenterSeed(collection, world);
            if (world.WaterSurrounds)
            {
                SidesOcean(collection, world);
            }


            TerrainController.FillAll(collection, world.MaxRows);

            return(collection);
        }
Exemplo n.º 2
0
 public WorldController()
 {
     this.collection = TerrainController.GenerateWorld(parameters);
 }