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

◆ ClearEdges()

void Terraria.Map.WorldMap.ClearEdges ( )
inline

Definition at line 160 of file WorldMap.cs.

161 {
162 for (int i = 0; i < MaxWidth; i++)
163 {
164 for (int j = 0; j < 40; j++)
165 {
166 _tiles[i, j].Clear();
167 }
168 }
169 for (int k = 0; k < MaxWidth; k++)
170 {
171 for (int l = MaxHeight - 40; l < MaxHeight; l++)
172 {
173 _tiles[k, l].Clear();
174 }
175 }
176 for (int m = 0; m < 40; m++)
177 {
178 for (int n = 40; n < MaxHeight - 40; n++)
179 {
180 _tiles[m, n].Clear();
181 }
182 }
183 for (int num = MaxWidth - 40; num < MaxWidth; num++)
184 {
185 for (int num2 = 40; num2 < MaxHeight - 40; num2++)
186 {
187 _tiles[num, num2].Clear();
188 }
189 }
190 }
readonly int MaxHeight
Definition WorldMap.cs:13
readonly int MaxWidth
Definition WorldMap.cs:11
MapTile[,] _tiles
Definition WorldMap.cs:17

References Terraria.Map.WorldMap._tiles, Terraria.Map.MapTile.Clear(), Terraria.Map.WorldMap.MaxHeight, and Terraria.Map.WorldMap.MaxWidth.

Referenced by Terraria.Map.WorldMap.Load().