TModLoader v1.4.4.9
TModLoader 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 74032 of file WorldGen.cs.

74033 {
74034 Main.mapTime = Main.mapTimeMax + 10;
74035 noMapUpdate = true;
74037 for (int i = tileStartX - 1; i < tileEndX + 1; i++)
74038 {
74039 for (int j = tileStartY - 1; j < tileEndY + 1; j++)
74040 {
74041 if (Main.tile[i, j] == null)
74042 {
74043 Main.tile[i, j] = default(Tile);
74044 }
74045 Reframe(i, j, resetFrame: true);
74046 }
74047 }
74048 for (int k = sectionStartX; k <= sectionEndXInclusive; k++)
74049 {
74050 for (int l = sectionStartY; l <= sectionEndYInclusive; l++)
74051 {
74052 Main.sectionManager.SetSectionFramed(k, l);
74053 }
74054 }
74055 noMapUpdate = false;
74056 }
static bool noMapUpdate
Definition WorldGen.cs:1136
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, and Terraria.Main.tile.

Referenced by Terraria.MessageBuffer.GetData().

+ Here is the caller graph for this function: