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

◆ SetSectionFramed()

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

Definition at line 163 of file WorldSections.cs.

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

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