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_Forest()

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

Definition at line 16755 of file Main.cs.

16756 {
16757 if (!true)
16758 {
16759 }
16760 int num = 16288;
16761 float num2 = this.scAdj;
16762 this.bgTopY = num;
16763 long num3 = 8192L;
16764 this.bgParallax = (double)num3;
16765 if (num3 != 0L)
16766 {
16767 return;
16768 }
16769 long num4 = 16336L;
16770 this.bgParallax = (double)num4;
16771 if (num4 == 0L)
16772 {
16773 }
16774 long num5 = 16384L;
16775 this.bgParallax = (double)num5;
16776 if (num5 != 0L)
16777 {
16778 return;
16779 }
16780 long num6 = 16336L;
16781 this.bgParallax = (double)num6;
16782 if (num6 == 0L)
16783 {
16784 }
16785 if (num6 == 0L)
16786 {
16787 }
16788 if (num6 == 0L)
16789 {
16790 }
16791 double num7 = this.bgParallax;
16793 double num8 = this.bgParallax;
16795 long num10 = 16537L;
16796 float num11 = this.scAdj;
16797 this.bgTopY = (int)num10;
16798 long num12 = 16537L;
16799 float num13 = this.scAdj;
16800 this.bgTopY = (int)num12;
16801 long num14 = 16537L;
16802 float num15 = this.scAdj;
16803 long num16 = 32752L;
16804 this.bgTopY = (int)num16;
16805 if (num16 == 0L)
16806 {
16807 }
16808 bool gameMenu = Main.gameMenu;
16809 int screenWidth = Main.screenWidth;
16811 int num17 = this.bgLoops;
16812 if (num14 == 0L)
16813 {
16814 }
16815 }
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
static Microsoft.Xna.Framework.Vector2 screenPosition
Definition Main.cs:1973
static int screenWidth
Definition Main.cs:2001
static bool gameMenu
Definition Main.cs:2673

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