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

◆ SectionLoaded()

bool Terraria.WorldSections.SectionLoaded ( int x,
int y )
inline

Definition at line 114 of file WorldSections.cs.

115 {
116 if (x < 0 || x >= width)
117 {
118 return false;
119 }
120 if (y < 0 || y >= height)
121 {
122 return false;
123 }
124 return data[y * width + x][0];
125 }

References Terraria.WorldSections.data, Terraria.WorldSections.height, and Terraria.WorldSections.width.