terraria-cpp2il v1.4.4.9
Terraria mobile dump, with CallAnalysis (see source code). Dump with reconstucted method: https://infinitynichto.github.io/terraria-cpp2il-methodrecon
Loading...
Searching...
No Matches
Rain.cs
Go to the documentation of this file.
1using System;
8
9namespace Terraria
10{
11 [global::Cpp2ILInjected.Token(Token = "0x2000453")]
12 public class Rain
13 {
14 [global::Cpp2ILInjected.Token(Token = "0x600297E")]
15 [global::Cpp2ILInjected.Address(RVA = "0x115C55C", Offset = "0x115C55C", Length = "0x8C")]
16 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
17 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(WorldGen), Member = "SaveAndQuitCallBack", MemberParameters = new object[] { typeof(object) }, ReturnType = typeof(void))]
18 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(WorldGen), Member = "RenameWorldCallBack", MemberParameters = new object[] { typeof(object) }, ReturnType = typeof(void))]
19 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
20 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_rain", ReturnType = typeof(Rain[]))]
21 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 3)]
22 public static void ClearRain()
23 {
24 throw null;
25 }
26
27 [global::Cpp2ILInjected.Token(Token = "0x600297F")]
28 [global::Cpp2ILInjected.Address(RVA = "0x115C5E8", Offset = "0x115C5E8", Length = "0x6C8")]
29 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
30 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Main), Member = "DoUpdate", MemberParameters = new object[] { typeof(GameTime) }, ReturnType = typeof(void))]
31 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
32 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_NetHostOnly", ReturnType = typeof(bool))]
33 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_myPlayer", ReturnType = typeof(int))]
34 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Player), Member = "get_ZoneDungeon", ReturnType = typeof(bool))]
35 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_screenPosition", ReturnType = typeof(Vector2))]
36 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_gameMenu", ReturnType = typeof(bool))]
37 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_screenWidth", ReturnType = typeof(int))]
38 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(EffectManager<>), Member = "get_Item", MemberParameters = new object[] { typeof(string) }, ReturnType = "T")]
39 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UnifiedRandom), Member = "Next", MemberParameters = new object[]
40 {
41 typeof(int),
42 typeof(int)
43 }, ReturnType = typeof(int))]
44 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Rain), Member = "GetRainFallVelocity", ReturnType = typeof(Vector2))]
45 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Rain), Member = "NewRain", MemberParameters = new object[]
46 {
49 }, ReturnType = typeof(int))]
50 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(WorldGen), Member = "SolidTile", MemberParameters = new object[]
51 {
52 typeof(int),
53 typeof(int),
54 typeof(bool)
55 }, ReturnType = typeof(bool))]
56 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TileData), Member = "get_Item", MemberParameters = new object[]
57 {
58 typeof(int),
59 typeof(int)
60 }, ReturnType = typeof(Tile))]
61 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "get_wall", ReturnType = typeof(ushort))]
62 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 32)]
63 public static void MakeRain()
64 {
65 throw null;
66 }
67
68 [global::Cpp2ILInjected.Token(Token = "0x6002980")]
69 [global::Cpp2ILInjected.Address(RVA = "0x115CCB0", Offset = "0x115CCB0", Length = "0x78")]
70 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Rain), Member = "MakeRain", ReturnType = typeof(void))]
71 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(WorldGen), Member = "IsSafeFromRain", MemberParameters = new object[]
72 {
73 typeof(int),
74 typeof(int)
75 }, ReturnType = typeof(bool))]
76 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
77 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = ".ctor", MemberParameters = new object[]
78 {
79 typeof(float),
80 typeof(float)
81 }, ReturnType = typeof(void))]
82 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
84 {
85 throw null;
86 }
87
88 [global::Cpp2ILInjected.Token(Token = "0x6002981")]
89 [global::Cpp2ILInjected.Address(RVA = "0x115D144", Offset = "0x115D144", Length = "0x400")]
90 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
91 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Main), Member = "DrawRain", ReturnType = typeof(void))]
92 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Main), Member = "DrawRainInMenu", ReturnType = typeof(void))]
93 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
94 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = "op_Addition", MemberParameters = new object[]
95 {
98 }, ReturnType = typeof(Vector2))]
99 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_gameMenu", ReturnType = typeof(bool))]
100 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_screenPosition", ReturnType = typeof(Vector2))]
101 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_screenHeight", ReturnType = typeof(int))]
102 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Collision), Member = "SolidCollision", MemberParameters = new object[]
103 {
105 typeof(int),
106 typeof(int)
107 }, ReturnType = typeof(bool))]
108 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Collision), Member = "WetCollision", MemberParameters = new object[]
109 {
111 typeof(int),
112 typeof(int)
113 }, ReturnType = typeof(bool))]
114 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UnifiedRandom), Member = "Next", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(int))]
115 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_gfxQuality", ReturnType = typeof(float))]
116 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = "op_Subtraction", MemberParameters = new object[]
117 {
120 }, ReturnType = typeof(Vector2))]
121 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dust), Member = "dustWater", ReturnType = typeof(int))]
122 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dust), Member = "NewDust", MemberParameters = new object[]
123 {
125 typeof(int),
126 typeof(int),
127 typeof(int),
128 typeof(float),
129 typeof(float),
130 typeof(int),
131 typeof(Color),
132 typeof(float)
133 }, ReturnType = typeof(int))]
134 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = "op_Multiply", MemberParameters = new object[]
135 {
137 typeof(float)
138 }, ReturnType = typeof(Vector2))]
139 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = "op_UnaryNegation", MemberParameters = new object[] { typeof(Vector2) }, ReturnType = typeof(Vector2))]
140 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 18)]
141 public void Update()
142 {
143 throw null;
144 }
145
146 [global::Cpp2ILInjected.Token(Token = "0x6002982")]
147 [global::Cpp2ILInjected.Address(RVA = "0x115D544", Offset = "0x115D544", Length = "0x240")]
148 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
149 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Player), Member = "DoEyebrellaRainEffect", ReturnType = typeof(void))]
150 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
151 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_gfxQuality", ReturnType = typeof(float))]
152 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_rain", ReturnType = typeof(Rain[]))]
153 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UnifiedRandom), Member = "Next", MemberParameters = new object[]
154 {
155 typeof(int),
156 typeof(int)
157 }, ReturnType = typeof(int))]
158 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = "op_Multiply", MemberParameters = new object[]
159 {
161 typeof(float)
162 }, ReturnType = typeof(Vector2))]
163 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_waterStyle", ReturnType = typeof(int))]
164 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UnifiedRandom), Member = "Next", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(int))]
165 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 11)]
166 public static int NewRainForced(Vector2 Position, Vector2 Velocity)
167 {
168 throw null;
169 }
170
171 [global::Cpp2ILInjected.Token(Token = "0x6002983")]
172 [global::Cpp2ILInjected.Address(RVA = "0x115CD28", Offset = "0x115CD28", Length = "0x41C")]
173 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
174 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Rain), Member = "MakeRain", ReturnType = typeof(void))]
175 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
176 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_myPlayer", ReturnType = typeof(int))]
177 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Math), Member = "Min", MemberParameters = new object[]
178 {
179 typeof(float),
180 typeof(float)
181 }, ReturnType = typeof(float))]
182 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Math), Member = "Max", MemberParameters = new object[]
183 {
184 typeof(float),
185 typeof(float)
186 }, ReturnType = typeof(float))]
187 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_gfxQuality", ReturnType = typeof(float))]
188 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_SceneMetrics", ReturnType = typeof(SceneMetrics))]
189 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Math), Member = "Pow", MemberParameters = new object[]
190 {
191 typeof(double),
192 typeof(double)
193 }, ReturnType = typeof(double))]
194 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_rain", ReturnType = typeof(Rain[]))]
195 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UnifiedRandom), Member = "Next", MemberParameters = new object[]
196 {
197 typeof(int),
198 typeof(int)
199 }, ReturnType = typeof(int))]
200 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = "op_Multiply", MemberParameters = new object[]
201 {
203 typeof(float)
204 }, ReturnType = typeof(Vector2))]
205 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_waterStyle", ReturnType = typeof(int))]
206 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UnifiedRandom), Member = "Next", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(int))]
207 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 17)]
208 private static int NewRain(Vector2 Position, Vector2 Velocity)
209 {
210 throw null;
211 }
212
213 [global::Cpp2ILInjected.Token(Token = "0x6002984")]
214 [global::Cpp2ILInjected.Address(RVA = "0x115D784", Offset = "0x115D784", Length = "0x8")]
215 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LocalUser), Member = "SetupState", ReturnType = typeof(void))]
216 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Main), Member = "Initialize_Entities", ReturnType = typeof(void))]
217 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
218 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
219 public Rain()
220 {
221 throw null;
222 }
223
224 [global::Cpp2ILInjected.Token(Token = "0x40036AD")]
225 [global::Cpp2ILInjected.FieldOffset(Offset = "0x10")]
227
228 [global::Cpp2ILInjected.Token(Token = "0x40036AE")]
229 [global::Cpp2ILInjected.FieldOffset(Offset = "0x18")]
231
232 [global::Cpp2ILInjected.Token(Token = "0x40036AF")]
233 [global::Cpp2ILInjected.FieldOffset(Offset = "0x20")]
234 public float scale;
235
236 [global::Cpp2ILInjected.Token(Token = "0x40036B0")]
237 [global::Cpp2ILInjected.FieldOffset(Offset = "0x24")]
238 public float rotation;
239
240 [global::Cpp2ILInjected.Token(Token = "0x40036B1")]
241 [global::Cpp2ILInjected.FieldOffset(Offset = "0x28")]
242 public int alpha;
243
244 [global::Cpp2ILInjected.Token(Token = "0x40036B2")]
245 [global::Cpp2ILInjected.FieldOffset(Offset = "0x2C")]
246 public bool active;
247
248 [global::Cpp2ILInjected.Token(Token = "0x40036B3")]
249 [global::Cpp2ILInjected.FieldOffset(Offset = "0x2D")]
250 public byte type;
251 }
252}
class f__AnonymousType0<< Count > j__TPar
static int NewRain(Vector2 Position, Vector2 Velocity)
Definition Rain.cs:208
void Update()
Definition Rain.cs:141
static void ClearRain()
Definition Rain.cs:22
Vector2 position
Definition Rain.cs:226
float rotation
Definition Rain.cs:238
int alpha
Definition Rain.cs:242
static void MakeRain()
Definition Rain.cs:63
static int NewRainForced(Vector2 Position, Vector2 Velocity)
Definition Rain.cs:166
byte type
Definition Rain.cs:250
Vector2 velocity
Definition Rain.cs:230
bool active
Definition Rain.cs:246
static Vector2 GetRainFallVelocity()
Definition Rain.cs:83
float scale
Definition Rain.cs:234