Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GenerateWorld()

void Terraria.WorldBuilding.WorldGenerator.GenerateWorld ( GenerationProgress progress = null)
inline

Definition at line 31 of file WorldGenerator.cs.

32 {
34 double num = 0.0;
35 foreach (GenPass pass in _passes)
36 {
37 num += pass.Weight;
38 }
39 if (progress == null)
40 {
41 progress = new GenerationProgress();
42 }
44 progress.TotalWeight = num;
45 foreach (GenPass pass2 in _passes)
46 {
47 WorldGen._genRand = new UnifiedRandom(_seed);
48 Main.rand = new UnifiedRandom(_seed);
49 stopwatch.Start();
50 progress.Start(pass2.Weight);
52 progress.End();
53 stopwatch.Reset();
54 }
56 }
GameConfiguration GetPassConfiguration(string name)
readonly WorldGenConfiguration _configuration
static GenerationProgress CurrentGenerationProgress
readonly List< GenPass > _passes

References Terraria.WorldBuilding.WorldGenerator._configuration, Terraria.WorldBuilding.WorldGenerator._passes, Terraria.WorldBuilding.WorldGenerator._seed, Terraria.WorldBuilding.WorldGenerator.CurrentGenerationProgress, and Terraria.WorldBuilding.WorldGenConfiguration.GetPassConfiguration().