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

◆ RandomWorldPoint() [2/2]

static Point Terraria.WorldGen.RandomWorldPoint ( int top = 0,
int right = 0,
int bottom = 0,
int left = 0 )
inlinestatic

Definition at line 18780 of file WorldGen.cs.

18781 {
18782 return new Point(genRand.Next(left, Main.maxTilesX - right), genRand.Next(top, Main.maxTilesY - bottom));
18783 }
static UnifiedRandom genRand
Definition WorldGen.cs:1215

References Terraria.Main.maxTilesX, and Terraria.Main.maxTilesY.