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
SandMound.cs
Go to the documentation of this file.
1using System;
6
8{
9 // Token: 0x02000908 RID: 2312
10 public static class SandMound
11 {
12 // Token: 0x0600467C RID: 18044 RVA: 0x00259BC0 File Offset: 0x00257DC0
13 public static void Place(DesertDescription description)
14 {
15 if (!true)
16 {
17 }
18 Rectangle <Desert>k__BackingField = description.<Desert>k__BackingField;
19 int width = description.<Desert>k__BackingField.Width;
20 int height = description.<Hive>k__BackingField.Height;
21 if (<Desert>k__BackingField == null)
22 {
23 }
24 int x = description.<Desert>k__BackingField.X;
25 int x2 = description.<Desert>k__BackingField.X;
26 long num = 0L;
27 int num2 = Math.Max(0, (int)num);
28 SurfaceMap <Surface>k__BackingField = description.<Surface>k__BackingField;
30 int num3 = 2;
31 int num4 = genRand.Next((int)num, num3);
32 if (<Desert>k__BackingField == null)
33 {
34 }
36 int num5 = 2;
37 int num6 = genRand2.Next((int)num, num5);
38 if (<Desert>k__BackingField == null)
39 {
40 }
41 if (<Desert>k__BackingField == null)
42 {
43 }
44 double num7 = Utils.UnclampedSmoothStep((double)x2, 0.8, (double)x2);
45 }
46
47 // Token: 0x0600467D RID: 18045 RVA: 0x00259C80 File Offset: 0x00257E80
50 {
51 int num;
52 do
53 {
54 num = 1;
55 if (num == 0)
56 {
57 }
58 }
59 while (num != 0);
60 if (cpp2il__autoParamName__idx_3.TileData_TileLiquid == null)
61 {
62 }
63 uint* tileData_TileLookup = cpp2il__autoParamName__idx_3.TileData_TileLookup;
64 short* tileData_TileSHeader = cpp2il__autoParamName__idx_3.TileData_TileSHeader;
65 if (tileData_TileLookup == null)
66 {
67 }
68 int num2 = 1;
69 WorldGen.SquareWallFrame(startX, height, num2 != 0);
70 }
71
72 // Token: 0x02000909 RID: 2313
74 [StructLayout(3)]
76 {
77 // Token: 0x04008289 RID: 33417
78 public int Main_maxTilesX;
79
80 // Token: 0x0400828A RID: 33418
82
83 // Token: 0x0400828B RID: 33419
85
86 // Token: 0x0400828C RID: 33420
88 }
89 }
90}
class f__AnonymousType0<< Count > j__TPar
static byte Max(byte val1, byte val2)
Definition Math.cs:111
static unsafe void< Place > g__PlaceSandColumn(int startX, int startY, int height, SandMound.<>c__DisplayClass0_0 cpp2il__autoParamName__idx_3)
Definition SandMound.cs:49
static void Place(DesertDescription description)
Definition SandMound.cs:13
static float UnclampedSmoothStep(float min, float max, float x)
Definition Utils.cs:89
static UnifiedRandom genRand
Definition WorldGen.cs:38
static void SquareWallFrame(int i, int j, bool resetFrame=true)