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

◆ SetSectionFramed()

void Terraria.WorldSections.SetSectionFramed ( int x,
int y )
inline

Definition at line 165 of file WorldSections.cs.

166 {
167 if (x >= 0 && x < width && y >= 0 && y < height)
168 {
169 BitsByte bitsByte = data[y * width + x];
170 if (bitsByte[0] && !bitsByte[1])
171 {
172 bitsByte[1] = true;
173 data[y * width + x] = bitsByte;
175 }
176 }
177 }

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