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

◆ SectionTileFrame()

static void Terraria.WorldGen.SectionTileFrame ( int sectionStartX,
int sectionStartY,
int sectionEndXInclusive,
int sectionEndYInclusive )
inlinestatic

Definition at line 70502 of file WorldGen.cs.

70503 {
70504 Main.mapTime = Main.mapTimeMax + 10;
70505 noMapUpdate = true;
70507 for (int i = tileStartX - 1; i < tileEndX + 1; i++)
70508 {
70509 for (int j = tileStartY - 1; j < tileEndY + 1; j++)
70510 {
70511 if (Main.tile[i, j] == null)
70512 {
70513 Main.tile[i, j] = new Tile();
70514 }
70515 Reframe(i, j, resetFrame: true);
70516 }
70517 }
70518 for (int k = sectionStartX; k <= sectionEndXInclusive; k++)
70519 {
70520 for (int l = sectionStartY; l <= sectionEndYInclusive; l++)
70521 {
70522 Main.sectionManager.SetSectionFramed(k, l);
70523 }
70524 }
70525 noMapUpdate = false;
70526 }
static bool noMapUpdate
Definition WorldGen.cs:898
static void GetSectionBounds(int sectionStartX, int sectionStartY, int sectionEndXInclusive, int sectionEndYInclusive, out int tileStartX, out int tileEndX, out int tileStartY, out int tileEndY)
static void Reframe(int x, int y, bool resetFrame=false)

References Terraria.Main.sectionManager, Terraria.DataStructures.Tile, and Terraria.Main.tile.

Referenced by Terraria.MessageBuffer.GetData().