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

◆ Place()

override bool Terraria.GameContent.Biomes.DunesBiome.Place ( Point origin,
StructureMap structures )
inline

Definition at line 53 of file DunesBiome.cs.

54 {
55 int height = (int)((double)GenBase._random.Next(60, 100) * _heightScale);
56 int height2 = (int)((double)GenBase._random.Next(60, 100) * _heightScale);
59 DunesDescription description = DunesDescription.CreateFromPlacement(new Point(origin.X - random / 2 + 30, origin.Y), random, height);
60 DunesDescription description2 = DunesDescription.CreateFromPlacement(new Point(origin.X + random2 / 2 - 30, origin.Y), random2, height2);
61 PlaceSingle(description, structures);
62 PlaceSingle(description2, structures);
63 return true;
64 }
void PlaceSingle(DunesDescription description, StructureMap structures)
Definition DunesBiome.cs:66
static UnifiedRandom _random
Definition GenBase.cs:9
int GetRandom(UnifiedRandom random)

References Terraria.GameContent.Biomes.DunesBiome._heightScale, Terraria.WorldBuilding.GenBase._random, Terraria.GameContent.Biomes.DunesBiome._singleDunesWidth, Terraria.GameContent.Biomes.DunesBiome.DunesDescription.CreateFromPlacement(), Terraria.WorldBuilding.WorldGenRange.GetRandom(), Terraria.GameContent.Biomes.DunesBiome.PlaceSingle(), Microsoft.Xna.Framework.Point.X, and Microsoft.Xna.Framework.Point.Y.