/// <summary> /// Starts building every world component /// </summary> public void Build() { sim.World.Paused = true; task = "Building Terrain"; Terrain newTerrain = new Terrain(data, sim); newTerrain.LoadContent(sim.Content, data.Climate); newTerrain.Build(); sim.World.LoadTerrain(newTerrain); progress = 0.3f; task = "Building Water"; Water newWater = new Water(sim); newWater.LoadContent(sim.Content, newTerrain); sim.World.Water = newWater; progress = 0.35f; task = "Building Vegetation"; Vegetation newVegetation = new Vegetation(sim, data); newVegetation.LoadContent(sim.Content, newTerrain, data.Climate); sim.World.Vegetation = newVegetation; progress = 0.6f; task = "Building Pathfinding Nodes"; LinkedList <Vector3> nodes = new LinkedList <Vector3>(); task = "Building Weather"; sim.World.Weather.BuildWeather(newTerrain, data.Climate); sim.World.Paused = false; progress = 1.0f; }
/// <summary> /// Starts building every world component /// </summary> public void Build() { sim.World.Paused = true; task = "Building Terrain"; Terrain newTerrain = new Terrain(data, sim); newTerrain.LoadContent(sim.Content, data.Climate); newTerrain.Build(); sim.World.LoadTerrain(newTerrain); progress = 0.3f; task = "Building Water"; Water newWater = new Water(sim); newWater.LoadContent(sim.Content, newTerrain); sim.World.Water = newWater; progress = 0.35f; task = "Building Vegetation"; Vegetation newVegetation = new Vegetation(sim, data); newVegetation.LoadContent(sim.Content, newTerrain, data.Climate); sim.World.Vegetation = newVegetation; progress = 0.6f; task = "Building Pathfinding Nodes"; LinkedList<Vector3> nodes = new LinkedList<Vector3>(); task = "Building Weather"; sim.World.Weather.BuildWeather(newTerrain, data.Climate); sim.World.Paused = false; progress = 1.0f; }