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
Minecart.cs
Go to the documentation of this file.
1using System;
10using Terraria.ID;
12
13namespace Terraria
14{
15 [global::Cpp2ILInjected.Token(Token = "0x200043F")]
16 public static class Minecart
17 {
18 [global::Cpp2ILInjected.Token(Token = "0x60028E5")]
19 [global::Cpp2ILInjected.Address(RVA = "0x11549F8", Offset = "0x11549F8", Length = "0x1818")]
20 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
21 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Main), Member = "Initialize_AlmostEverything", ReturnType = typeof(void))]
22 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Main), Member = "PostContentLoadInitialize", ReturnType = typeof(void))]
23 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
24 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Utils), Member = "Width", MemberParameters = new object[] { typeof(Asset<Texture2D>) }, ReturnType = typeof(int))]
25 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = ".ctor", MemberParameters = new object[]
26 {
27 typeof(float),
28 typeof(float)
29 }, ReturnType = typeof(void))]
30 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = "op_Multiply", MemberParameters = new object[]
31 {
33 typeof(float)
34 }, ReturnType = typeof(Vector2))]
35 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(float), Member = "ToString", ReturnType = typeof(string))]
36 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Concat", MemberParameters = new object[]
37 {
38 typeof(string),
39 typeof(string),
40 typeof(string)
41 }, ReturnType = typeof(string))]
42 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Exception), Member = ".ctor", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
43 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 75)]
44 public static void Initialize()
45 {
46 throw null;
47 }
48
49 [global::Cpp2ILInjected.Token(Token = "0x60028E6")]
50 [global::Cpp2ILInjected.Address(RVA = "0x1156210", Offset = "0x1156210", Length = "0x88C")]
51 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
52 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(GUIQuickActionButton), Member = "CanInteract", MemberParameters = new object[]
53 {
55 typeof(Item),
58 typeof(ref bool)
59 }, ReturnType = typeof(bool))]
60 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(GUIVirtualInputController), Member = "AddInteractBanner", MemberParameters = new object[]
61 {
64 }, ReturnType = typeof(void))]
65 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(GUIVirtualInputController), Member = "CanInteract", MemberParameters = new object[]
66 {
69 }, ReturnType = typeof(bool))]
70 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Player), Member = "Update", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
71 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 4)]
72 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TileData), Member = "get_Item", MemberParameters = new object[]
73 {
74 typeof(int),
75 typeof(int)
76 }, ReturnType = typeof(Tile))]
77 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "get_type", ReturnType = typeof(ushort))]
78 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "get_frameX", ReturnType = typeof(short))]
79 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "get_frameY", ReturnType = typeof(short))]
80 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 31)]
81 public static bool CanSwitchTrack(int i, int j)
82 {
83 throw null;
84 }
85
86 [global::Cpp2ILInjected.Token(Token = "0x60028E7")]
87 [global::Cpp2ILInjected.Address(RVA = "0x1156AD4", Offset = "0x1156AD4", Length = "0x74")]
88 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
89 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(WorldGen), Member = "IsItATrigger", MemberParameters = new object[] { typeof(Tile) }, ReturnType = typeof(bool))]
90 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
91 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "active", ReturnType = typeof(bool))]
92 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "get_type", ReturnType = typeof(ushort))]
93 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "get_frameX", ReturnType = typeof(short))]
94 public static bool IsPressurePlate(Tile tile)
95 {
96 throw null;
97 }
98
99 [global::Cpp2ILInjected.Token(Token = "0x60028E8")]
100 [global::Cpp2ILInjected.Address(RVA = "0x1156B48", Offset = "0x1156B48", Length = "0x1204")]
101 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
102 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Player), Member = "Update", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
103 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Minecart), Member = "GetWheelsPositions", MemberParameters = new object[]
104 {
105 typeof(Player),
107 typeof(int),
108 typeof(int),
109 typeof(bool),
110 typeof(bool),
114 }, ReturnType = typeof(void))]
115 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 3)]
116 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = ".ctor", MemberParameters = new object[]
117 {
118 typeof(float),
119 typeof(float)
120 }, ReturnType = typeof(void))]
121 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = "op_Addition", MemberParameters = new object[]
122 {
125 }, ReturnType = typeof(Vector2))]
126 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = "Length", ReturnType = typeof(float))]
127 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = "Normalize", ReturnType = typeof(void))]
128 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "get_frameY", ReturnType = typeof(short))]
129 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "get_frameX", ReturnType = typeof(short))]
130 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TileData), Member = "get_Item", MemberParameters = new object[]
131 {
132 typeof(int),
133 typeof(int)
134 }, ReturnType = typeof(Tile))]
135 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "nactive", ReturnType = typeof(bool))]
136 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "get_type", ReturnType = typeof(ushort))]
137 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = "op_Subtraction", MemberParameters = new object[]
138 {
141 }, ReturnType = typeof(Vector2))]
142 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BitsByte), Member = "set_Item", MemberParameters = new object[]
143 {
144 typeof(int),
145 typeof(bool)
146 }, ReturnType = typeof(void))]
147 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Minecart), Member = "WheelSparks", MemberParameters = new object[]
148 {
149 typeof(Action<Vector2>),
151 typeof(int),
152 typeof(int),
153 typeof(int)
154 }, ReturnType = typeof(void))]
155 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = "op_Multiply", MemberParameters = new object[]
156 {
158 typeof(float)
159 }, ReturnType = typeof(Vector2))]
160 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BitsByte), Member = "get_Item", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(bool))]
161 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Math), Member = "Round", MemberParameters = new object[]
162 {
163 typeof(double),
164 typeof(int),
166 }, ReturnType = typeof(double))]
167 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Matrix), Member = "CreateRotationZ", MemberParameters = new object[] { typeof(float) }, ReturnType = typeof(Matrix))]
168 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = "Transform", MemberParameters = new object[]
169 {
172 }, ReturnType = typeof(Vector2))]
173 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 50)]
174 public static BitsByte TrackCollision(Player Player, ref Vector2 Position, ref Vector2 Velocity, ref Vector2 lastBoost, int Width, int Height, bool followDown, bool followUp, int fallStart, bool trackOnly, Mount.MountDelegatesData delegatesData)
175 {
176 throw null;
177 }
178
179 [global::Cpp2ILInjected.Token(Token = "0x60028E9")]
180 [global::Cpp2ILInjected.Address(RVA = "0x1157E9C", Offset = "0x1157E9C", Length = "0xA50")]
181 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
182 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(MessageBuffer), Member = "ProcessData", MemberParameters = new object[]
183 {
184 typeof(byte[]),
185 typeof(int),
186 typeof(ref int)
187 }, ReturnType = typeof(void))]
188 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Player), Member = "ItemCheck_UseMiningTools_TryPoundingTile", MemberParameters = new object[]
189 {
190 typeof(Item),
191 typeof(int),
192 typeof(ref bool),
193 typeof(int),
194 typeof(int)
195 }, ReturnType = typeof(void))]
196 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Minecart), Member = "FlipSwitchTrack", MemberParameters = new object[]
197 {
198 typeof(int),
199 typeof(int)
200 }, ReturnType = typeof(void))]
201 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(WorldGen), Member = "TileFrameDoWork", MemberParameters = new object[]
202 {
203 typeof(int),
204 typeof(int),
205 typeof(bool),
206 typeof(bool),
207 typeof(ref bool)
208 }, ReturnType = typeof(void))]
209 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(MinecartDiggerHelper), Member = "PoundTrack", MemberParameters = new object[] { typeof(Point) }, ReturnType = typeof(void))]
210 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 5)]
211 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TileData), Member = "get_Item", MemberParameters = new object[]
212 {
213 typeof(int),
214 typeof(int)
215 }, ReturnType = typeof(Tile))]
216 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "get_type", ReturnType = typeof(ushort))]
217 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Minecart), Member = "GetNearbyTilesSetLookupIndex", MemberParameters = new object[]
218 {
219 typeof(int),
220 typeof(int)
221 }, ReturnType = typeof(int))]
222 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "get_frameX", ReturnType = typeof(short))]
223 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "get_frameY", ReturnType = typeof(short))]
224 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "set_frameX", MemberParameters = new object[] { typeof(short) }, ReturnType = typeof(void))]
225 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "set_frameY", MemberParameters = new object[] { typeof(short) }, ReturnType = typeof(void))]
226 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(WorldGen), Member = "KillTile", MemberParameters = new object[]
227 {
228 typeof(int),
229 typeof(int),
230 typeof(bool),
231 typeof(bool),
232 typeof(bool)
233 }, ReturnType = typeof(void))]
234 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 36)]
235 public static bool FrameTrack(int i, int j, bool pound, bool mute = false)
236 {
237 throw null;
238 }
239
240 [global::Cpp2ILInjected.Token(Token = "0x60028EA")]
241 [global::Cpp2ILInjected.Address(RVA = "0x11588EC", Offset = "0x11588EC", Length = "0x2F8")]
242 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
243 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Minecart), Member = "FrameTrack", MemberParameters = new object[]
244 {
245 typeof(int),
246 typeof(int),
247 typeof(bool),
248 typeof(bool)
249 }, ReturnType = typeof(bool))]
250 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Minecart), Member = "TryFittingTileOrientation", MemberParameters = new object[]
251 {
252 typeof(Point),
253 typeof(int?),
254 typeof(int?)
255 }, ReturnType = typeof(void))]
256 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
257 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TileData), Member = "get_Item", MemberParameters = new object[]
258 {
259 typeof(int),
260 typeof(int)
261 }, ReturnType = typeof(Tile))]
262 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "get_type", ReturnType = typeof(ushort))]
263 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 7)]
264 private static int GetNearbyTilesSetLookupIndex(int i, int j)
265 {
266 throw null;
267 }
268
269 [global::Cpp2ILInjected.Token(Token = "0x60028EB")]
270 [global::Cpp2ILInjected.Address(RVA = "0x1158C1C", Offset = "0x1158C1C", Length = "0x2E8")]
271 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
272 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Player), Member = "GrappleMovement", ReturnType = typeof(void))]
273 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
274 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TileData), Member = "get_Item", MemberParameters = new object[]
275 {
276 typeof(int),
277 typeof(int)
278 }, ReturnType = typeof(Tile))]
279 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "get_type", ReturnType = typeof(ushort))]
280 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = ".ctor", MemberParameters = new object[]
281 {
282 typeof(float),
283 typeof(float)
284 }, ReturnType = typeof(void))]
285 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = "op_Addition", MemberParameters = new object[]
286 {
289 }, ReturnType = typeof(Vector2))]
290 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "get_frameX", ReturnType = typeof(short))]
291 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = "op_Subtraction", MemberParameters = new object[]
292 {
295 }, ReturnType = typeof(Vector2))]
296 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 10)]
297 public static bool GetOnTrack(int tileX, int tileY, ref Vector2 Position, int Width, int Height)
298 {
299 throw null;
300 }
301
302 [global::Cpp2ILInjected.Token(Token = "0x60028EC")]
303 [global::Cpp2ILInjected.Address(RVA = "0x1158F04", Offset = "0x1158F04", Length = "0x1B8")]
304 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
305 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Player), Member = "Update", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
306 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
307 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = ".ctor", MemberParameters = new object[]
308 {
309 typeof(float),
310 typeof(float)
311 }, ReturnType = typeof(void))]
312 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = "op_Addition", MemberParameters = new object[]
313 {
316 }, ReturnType = typeof(Vector2))]
317 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TileData), Member = "get_Item", MemberParameters = new object[]
318 {
319 typeof(int),
320 typeof(int)
321 }, ReturnType = typeof(Tile))]
322 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "get_type", ReturnType = typeof(ushort))]
323 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 6)]
324 public static bool OnTrack(Vector2 Position, int Width, int Height)
325 {
326 throw null;
327 }
328
329 [global::Cpp2ILInjected.Token(Token = "0x60028ED")]
330 [global::Cpp2ILInjected.Address(RVA = "0x11590BC", Offset = "0x11590BC", Length = "0x168")]
331 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
332 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Player), Member = "Update", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
333 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
334 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Minecart), Member = "GetWheelsPositions", MemberParameters = new object[]
335 {
336 typeof(Player),
338 typeof(int),
339 typeof(int),
340 typeof(bool),
341 typeof(bool),
345 }, ReturnType = typeof(void))]
346 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 5)]
347 public static float TrackRotation(Player player, ref float rotation, Vector2 Position, int Width, int Height, bool followDown, bool followUp, Mount.MountDelegatesData delegatesData)
348 {
349 throw null;
350 }
351
352 [global::Cpp2ILInjected.Token(Token = "0x60028EE")]
353 [global::Cpp2ILInjected.Address(RVA = "0x1159224", Offset = "0x1159224", Length = "0x1D4")]
354 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Minecart), Member = "TrackRotation", MemberParameters = new object[]
355 {
356 typeof(Player),
357 typeof(ref float),
359 typeof(int),
360 typeof(int),
361 typeof(bool),
362 typeof(bool),
364 }, ReturnType = typeof(float))]
365 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
366 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = ".ctor", MemberParameters = new object[]
367 {
368 typeof(float),
369 typeof(float)
370 }, ReturnType = typeof(void))]
371 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Minecart), Member = "TrackCollision", MemberParameters = new object[]
372 {
373 typeof(Player),
377 typeof(int),
378 typeof(int),
379 typeof(bool),
380 typeof(bool),
381 typeof(int),
382 typeof(bool),
384 }, ReturnType = typeof(BitsByte))]
385 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = "op_Addition", MemberParameters = new object[]
386 {
389 }, ReturnType = typeof(Vector2))]
390 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 6)]
391 public static void GetWheelsPositions(Player player, Vector2 Position, int Width, int Height, bool followDown, bool followUp, Mount.MountDelegatesData delegatesData, out Vector2 leftWheel, out Vector2 rightWheel)
392 {
393 throw null;
394 }
395
396 [global::Cpp2ILInjected.Token(Token = "0x60028EF")]
397 [global::Cpp2ILInjected.Address(RVA = "0x11593F8", Offset = "0x11593F8", Length = "0x148")]
398 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
399 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Player), Member = "Update", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
400 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
401 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Minecart), Member = "GetMagnetPosition", MemberParameters = new object[]
402 {
404 typeof(int),
405 typeof(int)
406 }, ReturnType = typeof(Vector2))]
407 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Wiring), Member = "HitSwitch", MemberParameters = new object[]
408 {
409 typeof(int),
410 typeof(int)
411 }, ReturnType = typeof(void))]
412 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NetMessage), Member = "SendData", MemberParameters = new object[]
413 {
414 typeof(int),
415 typeof(int),
416 typeof(int),
418 typeof(int),
419 typeof(float),
420 typeof(float),
421 typeof(float),
422 typeof(int),
423 typeof(int),
424 typeof(int)
425 }, ReturnType = typeof(void))]
426 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 6)]
427 public static void HitTrackSwitch(Vector2 Position, int Width, int Height)
428 {
429 throw null;
430 }
431
432 [global::Cpp2ILInjected.Token(Token = "0x60028F0")]
433 [global::Cpp2ILInjected.Address(RVA = "0x1159540", Offset = "0x1159540", Length = "0x130")]
434 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
435 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Minecart), Member = "HitTrackSwitch", MemberParameters = new object[]
436 {
438 typeof(int),
439 typeof(int)
440 }, ReturnType = typeof(void))]
441 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
442 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = ".ctor", MemberParameters = new object[]
443 {
444 typeof(float),
445 typeof(float)
446 }, ReturnType = typeof(void))]
447 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = "op_Addition", MemberParameters = new object[]
448 {
451 }, ReturnType = typeof(Vector2))]
452 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 4)]
453 public static Vector2 GetMagnetPosition(Vector2 Position, int Width, int Height)
454 {
455 throw null;
456 }
457
458 [global::Cpp2ILInjected.Token(Token = "0x60028F1")]
459 [global::Cpp2ILInjected.Address(RVA = "0x1159670", Offset = "0x1159670", Length = "0x1CC")]
460 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
461 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Wiring), Member = "HitWireSingle", MemberParameters = new object[]
462 {
463 typeof(int),
464 typeof(int)
465 }, ReturnType = typeof(void))]
466 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
467 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TileData), Member = "get_Item", MemberParameters = new object[]
468 {
469 typeof(int),
470 typeof(int)
471 }, ReturnType = typeof(Tile))]
472 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "get_frameX", ReturnType = typeof(short))]
473 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "get_frameY", ReturnType = typeof(short))]
474 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "set_frameX", MemberParameters = new object[] { typeof(short) }, ReturnType = typeof(void))]
475 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "set_frameY", MemberParameters = new object[] { typeof(short) }, ReturnType = typeof(void))]
476 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Minecart), Member = "FrameTrack", MemberParameters = new object[]
477 {
478 typeof(int),
479 typeof(int),
480 typeof(bool),
481 typeof(bool)
482 }, ReturnType = typeof(bool))]
483 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NetMessage), Member = "SendTileSquare", MemberParameters = new object[]
484 {
485 typeof(int),
486 typeof(int),
487 typeof(int),
489 }, ReturnType = typeof(void))]
490 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 10)]
491 public static void FlipSwitchTrack(int i, int j)
492 {
493 throw null;
494 }
495
496 [global::Cpp2ILInjected.Token(Token = "0x60028F2")]
497 [global::Cpp2ILInjected.Address(RVA = "0x115983C", Offset = "0x115983C", Length = "0x334")]
498 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
499 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TileDrawing), Member = "DrawTile_MinecartTrack", MemberParameters = new object[]
500 {
503 typeof(int),
504 typeof(int),
506 }, ReturnType = typeof(void))]
507 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
508 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "get_type", ReturnType = typeof(ushort))]
509 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "color", ReturnType = typeof(byte))]
510 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "get_frameY", ReturnType = typeof(short))]
511 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "get_frameX", ReturnType = typeof(short))]
512 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TileData), Member = "get_Item", MemberParameters = new object[]
513 {
514 typeof(int),
515 typeof(int)
516 }, ReturnType = typeof(Tile))]
517 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "active", ReturnType = typeof(bool))]
518 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 4)]
519 public static void TrackColors(int i, int j, Tile trackTile, out int frontColor, out int backColor)
520 {
521 throw null;
522 }
523
524 [global::Cpp2ILInjected.Token(Token = "0x60028F3")]
525 [global::Cpp2ILInjected.Address(RVA = "0x1159B70", Offset = "0x1159B70", Length = "0x7C")]
526 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
527 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TileDrawing), Member = "DrawTile_MinecartTrack", MemberParameters = new object[]
528 {
531 typeof(int),
532 typeof(int),
534 }, ReturnType = typeof(void))]
535 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
536 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
537 public static bool DrawLeftDecoration(int frameID)
538 {
539 throw null;
540 }
541
542 [global::Cpp2ILInjected.Token(Token = "0x60028F4")]
543 [global::Cpp2ILInjected.Address(RVA = "0x1159BEC", Offset = "0x1159BEC", Length = "0x7C")]
544 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
545 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TileDrawing), Member = "DrawTile_MinecartTrack", MemberParameters = new object[]
546 {
549 typeof(int),
550 typeof(int),
552 }, ReturnType = typeof(void))]
553 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
554 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
555 public static bool DrawRightDecoration(int frameID)
556 {
557 throw null;
558 }
559
560 [global::Cpp2ILInjected.Token(Token = "0x60028F5")]
561 [global::Cpp2ILInjected.Address(RVA = "0x1159C68", Offset = "0x1159C68", Length = "0xB8")]
562 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
563 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TileDrawing), Member = "DrawTile_MinecartTrack", MemberParameters = new object[]
564 {
567 typeof(int),
568 typeof(int),
570 }, ReturnType = typeof(void))]
571 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
572 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 3)]
573 public static bool DrawBumper(int frameID)
574 {
575 throw null;
576 }
577
578 [global::Cpp2ILInjected.Token(Token = "0x60028F6")]
579 [global::Cpp2ILInjected.Address(RVA = "0x1159D20", Offset = "0x1159D20", Length = "0xB8")]
580 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
581 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TileDrawing), Member = "DrawTile_MinecartTrack", MemberParameters = new object[]
582 {
585 typeof(int),
586 typeof(int),
588 }, ReturnType = typeof(void))]
589 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
590 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 3)]
591 public static bool DrawBouncyBumper(int frameID)
592 {
593 throw null;
594 }
595
596 [global::Cpp2ILInjected.Token(Token = "0x60028F7")]
597 [global::Cpp2ILInjected.Address(RVA = "0x1159DD8", Offset = "0x1159DD8", Length = "0x108")]
598 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
599 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(WorldGen), Member = "PlaceTile", MemberParameters = new object[]
600 {
601 typeof(int),
602 typeof(int),
603 typeof(int),
604 typeof(bool),
605 typeof(bool),
606 typeof(int),
607 typeof(int)
608 }, ReturnType = typeof(bool))]
609 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
610 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "active", MemberParameters = new object[] { typeof(bool) }, ReturnType = typeof(void))]
611 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "set_type", MemberParameters = new object[] { typeof(ushort) }, ReturnType = typeof(void))]
612 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "set_frameY", MemberParameters = new object[] { typeof(short) }, ReturnType = typeof(void))]
613 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "set_frameX", MemberParameters = new object[] { typeof(short) }, ReturnType = typeof(void))]
614 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 5)]
615 public static void PlaceTrack(Tile trackCache, int style)
616 {
617 throw null;
618 }
619
620 [global::Cpp2ILInjected.Token(Token = "0x60028F8")]
621 [global::Cpp2ILInjected.Address(RVA = "0x1159EE0", Offset = "0x1159EE0", Length = "0x8C")]
622 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
623 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(WorldGen), Member = "KillTile_GetItemDrops", MemberParameters = new object[]
624 {
625 typeof(int),
626 typeof(int),
627 typeof(Tile),
628 typeof(ref int),
629 typeof(ref int),
630 typeof(ref int),
631 typeof(ref int),
632 typeof(bool)
633 }, ReturnType = typeof(void))]
634 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
635 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "get_frameX", ReturnType = typeof(short))]
636 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
637 public static int GetTrackItem(Tile trackCache)
638 {
639 throw null;
640 }
641
642 [global::Cpp2ILInjected.Token(Token = "0x60028F9")]
643 [global::Cpp2ILInjected.Address(RVA = "0x1159F6C", Offset = "0x1159F6C", Length = "0x12C")]
644 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
645 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TileDrawing), Member = "DrawTile_MinecartTrack", MemberParameters = new object[]
646 {
649 typeof(int),
650 typeof(int),
652 }, ReturnType = typeof(void))]
653 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 8)]
654 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Rectangle), Member = ".ctor", MemberParameters = new object[]
655 {
656 typeof(int),
657 typeof(int),
658 typeof(int),
659 typeof(int)
660 }, ReturnType = typeof(void))]
661 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 3)]
662 public static Rectangle GetSourceRect(int frameID, int animationFrame = 0)
663 {
664 throw null;
665 }
666
667 [global::Cpp2ILInjected.Token(Token = "0x60028FA")]
668 [global::Cpp2ILInjected.Address(RVA = "0x115A098", Offset = "0x115A098", Length = "0x1AC")]
669 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
670 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(MinecartDiggerHelper), Member = "AlreadyLeadsIntoWantedTrack", MemberParameters = new object[]
671 {
672 typeof(Point),
674 }, ReturnType = typeof(bool))]
675 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
676 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TileData), Member = "get_Item", MemberParameters = new object[]
677 {
678 typeof(int),
679 typeof(int)
680 }, ReturnType = typeof(Tile))]
681 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "get_frameX", ReturnType = typeof(short))]
682 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(int?), Member = "get_Value", ReturnType = "T")]
683 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 7)]
685 {
686 throw null;
687 }
688
689 [global::Cpp2ILInjected.Token(Token = "0x60028FB")]
690 [global::Cpp2ILInjected.Address(RVA = "0x115A264", Offset = "0x115A264", Length = "0x2E4")]
691 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
692 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(MinecartDiggerHelper), Member = "CorrectTrackConnections", MemberParameters = new object[]
693 {
694 typeof(Point),
696 }, ReturnType = typeof(void))]
697 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
698 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Minecart), Member = "GetNearbyTilesSetLookupIndex", MemberParameters = new object[]
699 {
700 typeof(int),
701 typeof(int)
702 }, ReturnType = typeof(int))]
703 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Framing), Member = "GetTileSafely", MemberParameters = new object[] { typeof(Point) }, ReturnType = typeof(Tile))]
704 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "get_frameX", ReturnType = typeof(short))]
705 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(int?), Member = "get_Value", ReturnType = "T")]
706 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(int?), Member = ".ctor", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
707 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "set_frameX", MemberParameters = new object[] { typeof(short) }, ReturnType = typeof(void))]
708 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NetMessage), Member = "SendTileSquare", MemberParameters = new object[]
709 {
710 typeof(int),
711 typeof(int),
712 typeof(int),
714 }, ReturnType = typeof(void))]
715 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 13)]
717 {
718 throw null;
719 }
720
721 [global::Cpp2ILInjected.Token(Token = "0x60028FC")]
722 [global::Cpp2ILInjected.Address(RVA = "0x115A244", Offset = "0x115A244", Length = "0x20")]
723 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
724 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
726 {
727 throw null;
728 }
729
730 [global::Cpp2ILInjected.Token(Token = "0x60028FD")]
731 [global::Cpp2ILInjected.Address(RVA = "0x115A548", Offset = "0x115A548", Length = "0x18")]
732 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
733 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
735 {
736 throw null;
737 }
738
739 [global::Cpp2ILInjected.Token(Token = "0x60028FE")]
740 [global::Cpp2ILInjected.Address(RVA = "0x1157D4C", Offset = "0x1157D4C", Length = "0x150")]
741 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
742 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Player), Member = "HorizontalMovement", ReturnType = typeof(void))]
743 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Player), Member = "GrappleMovement", ReturnType = typeof(void))]
744 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Minecart), Member = "TrackCollision", MemberParameters = new object[]
745 {
746 typeof(Player),
750 typeof(int),
751 typeof(int),
752 typeof(bool),
753 typeof(bool),
754 typeof(int),
755 typeof(bool),
757 }, ReturnType = typeof(BitsByte))]
758 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 6)]
759 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = ".ctor", MemberParameters = new object[]
760 {
761 typeof(float),
762 typeof(float)
763 }, ReturnType = typeof(void))]
764 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = "op_Addition", MemberParameters = new object[]
765 {
768 }, ReturnType = typeof(Vector2))]
769 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 4)]
770 public static void WheelSparks(Action<Vector2> DustAction, Vector2 Position, int Width, int Height, int sparkCount)
771 {
772 throw null;
773 }
774
775 [global::Cpp2ILInjected.Token(Token = "0x60028FF")]
776 [global::Cpp2ILInjected.Address(RVA = "0x1156A9C", Offset = "0x1156A9C", Length = "0x1C")]
777 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
778 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "get_frameX", ReturnType = typeof(short))]
779 private static short FrontTrack(this Tile tileTrack)
780 {
781 throw null;
782 }
783
784 [global::Cpp2ILInjected.Token(Token = "0x6002900")]
785 [global::Cpp2ILInjected.Address(RVA = "0x1158BE4", Offset = "0x1158BE4", Length = "0x1C")]
786 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
787 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "set_frameX", MemberParameters = new object[] { typeof(short) }, ReturnType = typeof(void))]
788 private static void FrontTrack(this Tile tileTrack, short trackID)
789 {
790 throw null;
791 }
792
793 [global::Cpp2ILInjected.Token(Token = "0x6002901")]
794 [global::Cpp2ILInjected.Address(RVA = "0x1156AB8", Offset = "0x1156AB8", Length = "0x1C")]
795 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
796 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "get_frameY", ReturnType = typeof(short))]
797 private static short BackTrack(this Tile tileTrack)
798 {
799 throw null;
800 }
801
802 [global::Cpp2ILInjected.Token(Token = "0x6002902")]
803 [global::Cpp2ILInjected.Address(RVA = "0x1158C00", Offset = "0x1158C00", Length = "0x1C")]
804 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
805 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "set_frameY", MemberParameters = new object[] { typeof(short) }, ReturnType = typeof(void))]
806 private static void BackTrack(this Tile tileTrack, short trackID)
807 {
808 throw null;
809 }
810
811 // Note: this type is marked as 'beforefieldinit'.
812 [global::Cpp2ILInjected.Token(Token = "0x6002903")]
813 [global::Cpp2ILInjected.Address(RVA = "0x115A560", Offset = "0x115A560", Length = "0x64")]
814 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
815 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = ".ctor", MemberParameters = new object[]
816 {
817 typeof(float),
818 typeof(float)
819 }, ReturnType = typeof(void))]
820 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
821 static Minecart()
822 {
823 throw null;
824 }
825
826 [global::Cpp2ILInjected.Token(Token = "0x40035B7")]
827 private const int TotalFrames = 36;
828
829 [global::Cpp2ILInjected.Token(Token = "0x40035B8")]
830 public const int LeftDownDecoration = 36;
831
832 [global::Cpp2ILInjected.Token(Token = "0x40035B9")]
833 public const int RightDownDecoration = 37;
834
835 [global::Cpp2ILInjected.Token(Token = "0x40035BA")]
836 public const int BouncyBumperDecoration = 38;
837
838 [global::Cpp2ILInjected.Token(Token = "0x40035BB")]
839 public const int RegularBumperDecoration = 39;
840
841 [global::Cpp2ILInjected.Token(Token = "0x40035BC")]
842 public const int Flag_OnTrack = 0;
843
844 [global::Cpp2ILInjected.Token(Token = "0x40035BD")]
845 public const int Flag_BouncyBumper = 1;
846
847 [global::Cpp2ILInjected.Token(Token = "0x40035BE")]
848 public const int Flag_UsedRamp = 2;
849
850 [global::Cpp2ILInjected.Token(Token = "0x40035BF")]
851 public const int Flag_HitSwitch = 3;
852
853 [global::Cpp2ILInjected.Token(Token = "0x40035C0")]
854 public const int Flag_BoostLeft = 4;
855
856 [global::Cpp2ILInjected.Token(Token = "0x40035C1")]
857 public const int Flag_BoostRight = 5;
858
859 [global::Cpp2ILInjected.Token(Token = "0x40035C2")]
860 private const int NoConnection = -1;
861
862 [global::Cpp2ILInjected.Token(Token = "0x40035C3")]
863 private const int TopConnection = 0;
864
865 [global::Cpp2ILInjected.Token(Token = "0x40035C4")]
866 private const int MiddleConnection = 1;
867
868 [global::Cpp2ILInjected.Token(Token = "0x40035C5")]
869 private const int BottomConnection = 2;
870
871 [global::Cpp2ILInjected.Token(Token = "0x40035C6")]
872 private const int BumperEnd = -1;
873
874 [global::Cpp2ILInjected.Token(Token = "0x40035C7")]
875 private const int BouncyEnd = -2;
876
877 [global::Cpp2ILInjected.Token(Token = "0x40035C8")]
878 private const int RampEnd = -3;
879
880 [global::Cpp2ILInjected.Token(Token = "0x40035C9")]
881 private const int OpenEnd = -4;
882
883 [global::Cpp2ILInjected.Token(Token = "0x40035CA")]
884 public const float BoosterSpeed = 4f;
885
886 [global::Cpp2ILInjected.Token(Token = "0x40035CB")]
887 private const int Type_Normal = 0;
888
889 [global::Cpp2ILInjected.Token(Token = "0x40035CC")]
890 private const int Type_Pressure = 1;
891
892 [global::Cpp2ILInjected.Token(Token = "0x40035CD")]
893 private const int Type_Booster = 2;
894
895 [global::Cpp2ILInjected.Token(Token = "0x40035CE")]
897
898 [global::Cpp2ILInjected.Token(Token = "0x40035CF")]
899 private const float MinecartTextureWidth = 50f;
900
901 [global::Cpp2ILInjected.Token(Token = "0x40035D0")]
902 private static int[] _leftSideConnection;
903
904 [global::Cpp2ILInjected.Token(Token = "0x40035D1")]
905 private static int[] _rightSideConnection;
906
907 [global::Cpp2ILInjected.Token(Token = "0x40035D2")]
908 private static int[] _trackType;
909
910 [global::Cpp2ILInjected.Token(Token = "0x40035D3")]
911 private static bool[] _boostLeft;
912
913 [global::Cpp2ILInjected.Token(Token = "0x40035D4")]
914 private static Vector2[] _texturePosition;
915
916 [global::Cpp2ILInjected.Token(Token = "0x40035D5")]
917 private static short _firstPressureFrame;
918
919 [global::Cpp2ILInjected.Token(Token = "0x40035D6")]
920 private static short _firstLeftBoostFrame;
921
922 [global::Cpp2ILInjected.Token(Token = "0x40035D7")]
923 private static short _firstRightBoostFrame;
924
925 [global::Cpp2ILInjected.Token(Token = "0x40035D8")]
926 private static int[][] _trackSwitchOptions;
927
928 [global::Cpp2ILInjected.Token(Token = "0x40035D9")]
929 private static int[][] _tileHeight;
930
931 [global::Cpp2ILInjected.Token(Token = "0x2000440")]
932 private enum TrackState
933 {
934 [global::Cpp2ILInjected.Token(Token = "0x40035DB")]
935 NoTrack = -1,
936 [global::Cpp2ILInjected.Token(Token = "0x40035DC")]
938 [global::Cpp2ILInjected.Token(Token = "0x40035DD")]
939 OnTrack,
940 [global::Cpp2ILInjected.Token(Token = "0x40035DE")]
942 [global::Cpp2ILInjected.Token(Token = "0x40035DF")]
944 [global::Cpp2ILInjected.Token(Token = "0x40035E0")]
945 AboveBack,
946 [global::Cpp2ILInjected.Token(Token = "0x40035E1")]
947 OnFront,
948 [global::Cpp2ILInjected.Token(Token = "0x40035E2")]
949 OnBack
950 }
951 }
952}
class f__AnonymousType0<< Count > j__TPar
static bool FrameTrack(int i, int j, bool pound, bool mute=false)
Definition Minecart.cs:235
const int Type_Normal
Definition Minecart.cs:887
const float BoosterSpeed
Definition Minecart.cs:884
const int LeftDownDecoration
Definition Minecart.cs:830
const int Flag_BouncyBumper
Definition Minecart.cs:845
const int RightDownDecoration
Definition Minecart.cs:833
const int BumperEnd
Definition Minecart.cs:872
static int[] _leftSideConnection
Definition Minecart.cs:902
static bool[] _boostLeft
Definition Minecart.cs:911
static void FrontTrack(this Tile tileTrack, short trackID)
Definition Minecart.cs:788
static int[][] _trackSwitchOptions
Definition Minecart.cs:926
static bool CanSwitchTrack(int i, int j)
Definition Minecart.cs:81
const int Type_Pressure
Definition Minecart.cs:890
static int ConvertOffsetYToTrackConnectionValue(int offsetY)
Definition Minecart.cs:725
static BitsByte TrackCollision(Player Player, ref Vector2 Position, ref Vector2 Velocity, ref Vector2 lastBoost, int Width, int Height, bool followDown, bool followUp, int fallStart, bool trackOnly, Mount.MountDelegatesData delegatesData)
Definition Minecart.cs:174
static void TryFittingTileOrientation(Point tileCoords, int? expectedYOffsetForLeft, int? expectedYOffsetForRight)
Definition Minecart.cs:716
static short FrontTrack(this Tile tileTrack)
Definition Minecart.cs:779
const int Flag_OnTrack
Definition Minecart.cs:842
static bool DrawBouncyBumper(int frameID)
Definition Minecart.cs:591
static short _firstPressureFrame
Definition Minecart.cs:917
static void PlaceTrack(Tile trackCache, int style)
Definition Minecart.cs:615
const int BottomConnection
Definition Minecart.cs:869
static Vector2 GetMagnetPosition(Vector2 Position, int Width, int Height)
Definition Minecart.cs:453
static bool DrawRightDecoration(int frameID)
Definition Minecart.cs:555
static bool DrawBumper(int frameID)
Definition Minecart.cs:573
const int Flag_HitSwitch
Definition Minecart.cs:851
static bool GetOnTrack(int tileX, int tileY, ref Vector2 Position, int Width, int Height)
Definition Minecart.cs:297
const int NoConnection
Definition Minecart.cs:860
static short _firstRightBoostFrame
Definition Minecart.cs:923
static Rectangle GetSourceRect(int frameID, int animationFrame=0)
Definition Minecart.cs:662
static void FlipSwitchTrack(int i, int j)
Definition Minecart.cs:491
static bool OnTrack(Vector2 Position, int Width, int Height)
Definition Minecart.cs:324
static Vector2[] _texturePosition
Definition Minecart.cs:914
const int Flag_UsedRamp
Definition Minecart.cs:848
const int Type_Booster
Definition Minecart.cs:893
const int TopConnection
Definition Minecart.cs:863
const int MiddleConnection
Definition Minecart.cs:866
static void Initialize()
Definition Minecart.cs:44
const int TotalFrames
Definition Minecart.cs:827
static void TrackColors(int i, int j, Tile trackTile, out int frontColor, out int backColor)
Definition Minecart.cs:519
const int RampEnd
Definition Minecart.cs:878
static short _firstLeftBoostFrame
Definition Minecart.cs:920
static void GetWheelsPositions(Player player, Vector2 Position, int Width, int Height, bool followDown, bool followUp, Mount.MountDelegatesData delegatesData, out Vector2 leftWheel, out Vector2 rightWheel)
Definition Minecart.cs:391
static bool IsPressurePlate(Tile tile)
Definition Minecart.cs:94
static void WheelSparks(Action< Vector2 > DustAction, Vector2 Position, int Width, int Height, int sparkCount)
Definition Minecart.cs:770
static int[] _trackType
Definition Minecart.cs:908
static bool DrawLeftDecoration(int frameID)
Definition Minecart.cs:537
static Minecart()
Definition Minecart.cs:821
const int Flag_BoostLeft
Definition Minecart.cs:854
const int BouncyEnd
Definition Minecart.cs:875
static float TrackRotation(Player player, ref float rotation, Vector2 Position, int Width, int Height, bool followDown, bool followUp, Mount.MountDelegatesData delegatesData)
Definition Minecart.cs:347
const int OpenEnd
Definition Minecart.cs:881
static int GetTrackItem(Tile trackCache)
Definition Minecart.cs:637
const int BouncyBumperDecoration
Definition Minecart.cs:836
static short BackTrack(this Tile tileTrack)
Definition Minecart.cs:797
const float MinecartTextureWidth
Definition Minecart.cs:899
static int[] _rightSideConnection
Definition Minecart.cs:905
static Vector2 _trackMagnetOffset
Definition Minecart.cs:896
static int GetNearbyTilesSetLookupIndex(int i, int j)
Definition Minecart.cs:264
static void BackTrack(this Tile tileTrack, short trackID)
Definition Minecart.cs:806
static int[][] _tileHeight
Definition Minecart.cs:929
static void HitTrackSwitch(Vector2 Position, int Width, int Height)
Definition Minecart.cs:427
static int ConvertTrackConnectionValueToOffsetY(int trackConnectionValue)
Definition Minecart.cs:734
static bool GetAreExpectationsForSidesMet(Point tileCoords, int? expectedYOffsetForLeft, int? expectedYOffsetForRight)
Definition Minecart.cs:684
const int Flag_BoostRight
Definition Minecart.cs:857
const int RegularBumperDecoration
Definition Minecart.cs:839