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

◆ RefreshSections()

static void Terraria.WorldGen.RefreshSections ( int startX,
int startY,
int endX,
int endY )
inlinestatic

Definition at line 73940 of file WorldGen.cs.

73941 {
73942 int sectionX3 = Netplay.GetSectionX(startX);
73943 int sectionY = Netplay.GetSectionY(startY);
73944 int sectionX2 = Netplay.GetSectionX(endX);
73945 int sectionY2 = Netplay.GetSectionY(endY);
73946 for (int i = sectionX3; i <= sectionX2; i++)
73947 {
73948 for (int j = sectionY; j <= sectionY2; j++)
73949 {
73950 if (Main.sectionManager.SectionNeedsRefresh(i, j))
73951 {
73952 RefreshSection(i, j);
73953 }
73954 }
73955 }
73956 }
static void RefreshSection(int sectionX, int sectionY)

References Terraria.Netplay.GetSectionX(), Terraria.Netplay.GetSectionY(), and Terraria.Main.sectionManager.

Referenced by Terraria.GameContent.Drawing.TileDrawing.GetScreenDrawArea().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: