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

◆ FillColumn()

static void Terraria.GameContent.Biomes.TerrainPass.FillColumn ( int x,
double worldSurface,
double rockLayer )
inlinestaticprivate

Definition at line 201 of file TerrainPass.cs.

202 {
203 for (int i = 0; (double)i < worldSurface; i++)
204 {
205 Main.tile[x, i].active(active: false);
206 Main.tile[x, i].frameX = -1;
207 Main.tile[x, i].frameY = -1;
208 }
209 for (int j = (int)worldSurface; j < Main.maxTilesY; j++)
210 {
211 if ((double)j < rockLayer)
212 {
213 Main.tile[x, j].active(active: true);
214 Main.tile[x, j].type = 0;
215 Main.tile[x, j].frameX = -1;
216 Main.tile[x, j].frameY = -1;
217 }
218 else
219 {
220 Main.tile[x, j].active(active: true);
221 Main.tile[x, j].type = 1;
222 Main.tile[x, j].frameX = -1;
223 Main.tile[x, j].frameY = -1;
224 }
225 }
226 }

References Terraria.Main.maxTilesY, and Terraria.Main.tile.

Referenced by Terraria.GameContent.Biomes.TerrainPass.ApplyPass().