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

◆ SectionRange()

bool Terraria.RemoteClient.SectionRange ( int size,
int firstX,
int firstY )
inline

Definition at line 155 of file RemoteClient.cs.

156 {
157 for (int i = 0; i < 4; i++)
158 {
159 int num = firstX;
160 int num2 = firstY;
161 if (i == 1)
162 {
163 num += size;
164 }
165 if (i == 2)
166 {
167 num2 += size;
168 }
169 if (i == 3)
170 {
171 num += size;
172 num2 += size;
173 }
174 int sectionX = Netplay.GetSectionX(num);
175 int sectionY = Netplay.GetSectionY(num2);
176 if (TileSections[sectionX, sectionY])
177 {
178 return true;
179 }
180 }
181 return false;
182 }

References Terraria.Netplay.GetSectionX(), Terraria.Netplay.GetSectionY(), and Terraria.RemoteClient.TileSections.