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

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

Definition at line 16137 of file Main.cs.

16138 {
16139 int num = 28;
16140 if (270 == 0)
16141 {
16142 }
16143 int num2 = 32640;
16144 long num3 = -1717986919L;
16145 this.bgParallax = (double)num3;
16147 double num4 = this.bgParallax;
16149 double num5 = this.bgParallax;
16150 if (num2 == 0)
16151 {
16152 }
16154 float num7 = this.scAdj;
16155 int num8 = 32768;
16157 bool gameMenu = Main.gameMenu;
16158 int screenWidth = Main.screenWidth;
16160 if (this.bgLoops == 0)
16161 {
16162 }
16163 if (num8 == 0)
16164 {
16165 }
16166 int num9 = this.bgTopY;
16167 long num10 = 0L;
16168 int num11 = this.bgStartX;
16169 Rectangle? backgroundRect = this.GetBackgroundRect((int)num10);
16170 if (this.bgLoops == 0)
16171 {
16172 }
16173 int num12 = 28;
16174 if (17279 == 0)
16175 {
16176 }
16177 long num13 = 60293L;
16178 this.bgParallax = (double)num13;
16180 double num14 = this.bgParallax;
16182 double num15 = this.bgParallax;
16184 long num17 = 32752L;
16185 float num18 = this.scAdj;
16186 int num19 = 32768;
16188 bool gameMenu2 = Main.gameMenu;
16189 int num20 = this.bgStartX;
16190 this.bgTopY = (int)num17;
16192 if (num20 == 0)
16193 {
16194 }
16195 if (num20 != 0)
16196 {
16197 if (num20 == 0)
16198 {
16199 }
16200 int screenWidth2 = Main.screenWidth;
16202 if (this.bgLoops == 0)
16203 {
16204 }
16205 if (num19 == 0)
16206 {
16207 }
16208 int num21 = this.bgTopY;
16209 long num22 = 0L;
16210 int num23 = this.bgStartX;
16211 Rectangle? backgroundRect2 = this.GetBackgroundRect((int)num22);
16212 if (this.bgLoops == 0)
16213 {
16214 }
16215 int num24 = 28;
16216 if (270 == 0)
16217 {
16218 }
16219 long num25 = 36700L;
16220 this.bgParallax = (double)num25;
16222 double num26 = this.bgParallax;
16224 double num27 = this.bgParallax;
16226 long num29 = 32752L;
16227 float num30 = this.scAdj;
16228 int num31 = 32768;
16230 bool gameMenu3 = Main.gameMenu;
16231 int num32 = this.bgStartX;
16232 this.bgTopY = (int)num29;
16234 if (num32 == 0)
16235 {
16236 }
16237 if (num32 != 0)
16238 {
16239 if (num32 == 0)
16240 {
16241 }
16242 int screenWidth3 = Main.screenWidth;
16244 if (this.bgLoops == 0)
16245 {
16246 }
16247 if (num31 == 0)
16248 {
16249 }
16250 int num33 = this.bgTopY;
16251 long num34 = 0L;
16252 int num35 = this.bgStartX;
16253 Rectangle? backgroundRect3 = this.GetBackgroundRect((int)num34);
16254 int num36 = this.bgLoops;
16255 return;
16256 }
16257 }
16258 }
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
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.scAdj, Terraria.Main.screenPosition, Terraria.Main.screenWidth, and Terraria.Main.SetBackgroundOffsets().