terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ DrawSurfaceBG_Hallow()

void Terraria.Main.DrawSurfaceBG_Hallow ( double backgroundTopMagicNumber,
float bgGlobalScaleMultiplier,
int pushBGTopHack,
int[] bgTexIndexes )
inlineprivate

Definition at line 16339 of file Main.cs.

16340 {
16341 int num = 1;
16342 if (num == 0)
16343 {
16344 }
16345 int num2 = 16288;
16346 float num3 = this.scAdj;
16347 long num4 = -1717986919L;
16348 this.bgParallax = (double)num4;
16349 this.bgTopY = num;
16351 this.LoadBackground(pushBGTopHack);
16352 if (num2 == 0)
16353 {
16354 }
16355 double num5 = this.bgParallax;
16357 double num6 = this.bgParallax;
16358 double num7 = Math.IEEERemainder(num5, (double)0f);
16359 bool gameMenu = Main.gameMenu;
16360 int screenWidth = Main.screenWidth;
16362 if (this.bgLoops == 0)
16363 {
16364 }
16365 int num8 = this.bgTopY;
16366 long num9 = 0L;
16367 int num10 = this.bgStartX;
16368 Rectangle? backgroundRect = this.GetBackgroundRect((int)num9);
16369 int num11 = this.bgLoops;
16370 }
class f__AnonymousType0<< Count > j__TPar
static double IEEERemainder(double x, double y)
Definition Math.cs:56
float scAdj
Definition Main.cs:21283
double bgParallax
Definition Main.cs:20259
void LoadBackground(int i)
Definition Main.cs:15568
static Microsoft.Xna.Framework.Vector2 screenPosition
Definition Main.cs:1973
void SetBackgroundOffsets(int backgroundID, double backgroundTopMagicNumber, int pushBGTopHack)
Definition Main.cs:16334
Rectangle? GetBackgroundRect(int backgroundTextureIndex)
Definition Main.cs:16701
static int screenWidth
Definition Main.cs:2001
static bool gameMenu
Definition Main.cs:2673

References Terraria.Main.bgLoops, Terraria.Main.bgParallax, Terraria.Main.bgStartX, Terraria.Main.bgTopY, Terraria.Main.gameMenu, Terraria.Main.GetBackgroundRect(), System.Math.IEEERemainder(), j__TPar, Microsoft.Xna.Framework.Input.L, Terraria.Main.LoadBackground(), Terraria.Main.scAdj, Terraria.Main.screenPosition, Terraria.Main.screenWidth, and Terraria.Main.SetBackgroundOffsets().