Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ SectionFramed()

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

Definition at line 127 of file WorldSections.cs.

128 {
129 if (x < 0 || x >= width)
130 {
131 return false;
132 }
133 if (y < 0 || y >= height)
134 {
135 return false;
136 }
137 return data[y * width + x][1];
138 }

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