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
AmbientWindSystem.cs
Go to the documentation of this file.
1using System;
6
8{
9 // Token: 0x020007B4 RID: 1972
10 public class AmbientWindSystem
11 {
12 // Token: 0x06004047 RID: 16455 RVA: 0x00242C4C File Offset: 0x00240E4C
14 {
15 }
16
17 // Token: 0x06004048 RID: 16456 RVA: 0x00242C68 File Offset: 0x00240E68
18 public void Update()
19 {
20 int num = 1;
21 if (num == 0)
22 {
23 }
25 if (num == 0)
26 {
27 }
30 this._airSpaceTests = (float)num;
31 if (num == 0)
32 {
33 }
34 float airSpaceTests = this._airSpaceTests;
36 }
37
38 // Token: 0x06004049 RID: 16457 RVA: 0x00242D2C File Offset: 0x00240F2C
43
44 // Token: 0x0600404A RID: 16458 RVA: 0x00242D6C File Offset: 0x00240F6C
46 {
47 int num = 1;
48 if (num == 0)
49 {
50 }
52 if (num == 0)
53 {
54 return;
55 }
56 }
57
58 // Token: 0x0600404B RID: 16459 RVA: 0x00242D90 File Offset: 0x00240F90
59 private void TrySpawningWind(int x, int y)
60 {
61 if (!true)
62 {
63 }
64 Tile tile;
65 short sTileHeader = tile.sTileHeader;
66 int num = 29728;
67 if (num == 0)
68 {
69 }
70 if (num != 0)
71 {
72 if (num == 0)
73 {
74 }
75 this.SpawnFloorCloud(x, y);
76 UnifiedRandom random = this._random;
77 int num2 = 3;
78 if (random.Next(num2) == 0)
79 {
80 this.SpawnFloorCloud(x, int.MinValue);
81 }
82 }
83 }
84
85 // Token: 0x0600404C RID: 16460 RVA: 0x00242DE0 File Offset: 0x00240FE0
86 private void SpawnAirborneCloud(int x, int y)
87 {
88 UnifiedRandom random = this._random;
89 int num = 2;
90 int num2 = 6;
91 int num3 = random.Next(num, num2);
92 float num4 = this._random.NextFloatDirection();
93 float num5 = this._random.NextFloatDirection();
94 float num6 = this._random.NextFloatDirection();
96 int num7 = 4;
97 int num8 = random2.Next(num7);
99 if (num8 == 0)
100 {
101 return;
102 }
103 int num9 = 4;
104 if (random3.Next(num9) != 0)
105 {
106 return;
107 }
109 int num10 = 9;
110 int num11 = 16;
111 int num12 = random4.Next(num10, num11);
112 if (random4 == null)
113 {
114 }
115 int num13;
116 float num14;
117 if (num13 == 0)
118 {
119 num14 = this._random.NextFloatDirection();
120 }
121 Vector2 vector = this._random.NextVector2Circular(num14, num14);
123 int num15 = 2;
124 int num16 = random5.Next(num15);
126 float num17 = random6.NextFloat();
127 if (random6 == null)
128 {
129 }
130 int myPlayer = Main.myPlayer;
131 Gore gore;
132 gore.PlayerOnly = myPlayer;
133 }
134
135 // Token: 0x0600404D RID: 16461 RVA: 0x00242EF8 File Offset: 0x002410F8
136 private void SpawnFloorCloud(int x, int y)
137 {
138 if (!true)
139 {
140 }
141 UnifiedRandom random = this._random;
142 int num = 1087;
143 int num2 = 1090;
144 int num3 = random.Next(num, num2);
146 float num4 = random2.NextFloat();
148 if (random2 == null)
149 {
150 }
151 float num5 = random3.NextFloat();
152 if (random2 == null)
153 {
154 }
155 if (!true)
156 {
157 }
158 int num6 = 1;
159 if (num6 == 0)
160 {
161 }
162 if (num6 == 0)
163 {
164 }
165 int myPlayer = Main.myPlayer;
166 Gore gore;
167 gore.PlayerOnly = myPlayer;
168 }
169
170 // Token: 0x0600404E RID: 16462 RVA: 0x000021DB File Offset: 0x000003DB
171 private void TestAirCloud(int x, int y)
172 {
173 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
174 }
175
176 // Token: 0x0600404F RID: 16463 RVA: 0x00242F78 File Offset: 0x00241178
177 private bool DoesTileAllowWind(Tile t)
178 {
179 if (!true)
180 {
181 return;
182 }
183 }
184
185 // Token: 0x04007E12 RID: 32274
187
188 // Token: 0x04007E13 RID: 32275
190
191 // Token: 0x04007E14 RID: 32276
192 private int _updatesCounter;
193
194 // Token: 0x04007E15 RID: 32277
195 private int _lastFrame = 1;
196
197 // Token: 0x04007E16 RID: 32278
198 private float _airSpaceTests;
199
200 // Token: 0x04007E17 RID: 32279
201 private float _floorSpaceTests;
202 }
203}
class f__AnonymousType0<< Count > j__TPar
Vector2 Center
Definition Entity.cs:134
static int myPlayer
Definition Main.cs:2337
static Player LocalPlayer
Definition Main.cs:5267
bool ZoneGraveyard
Definition Player.cs:1070
short sTileHeader
Definition Tile.cs:137