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
ShapeRunner.cs
Go to the documentation of this file.
1using System;
6
8{
9 // Token: 0x020008DB RID: 2267
10 public class ShapeRunner : GenShape
11 {
12 // Token: 0x060045B2 RID: 17842 RVA: 0x00255400 File Offset: 0x00253600
13 public ShapeRunner(double strength, int steps, Vector2D velocity)
14 {
16 this._steps = steps;
17 }
18
19 // Token: 0x060045B3 RID: 17843 RVA: 0x00255424 File Offset: 0x00253624
20 public override bool Perform(Point origin, GenAction action)
21 {
22 int num = 1;
23 int steps = this._steps;
24 double startStrength = this._startStrength;
25 double x = this._startVelocity.X;
26 if (num == 0)
27 {
28 }
29 int num2 = 1;
30 if (num2 == 0)
31 {
32 }
33 int value = num2.m_value;
35 long num3 = 0L;
36 double x2 = this._startVelocity.X;
37 double startStrength2 = this._startStrength;
38 int num4 = Math.Max(1, (int)num3);
39 int num5 = Math.Max(1, (int)num3);
40 if (!true)
41 {
42 }
43 int num6 = Math.Min(int.MinValue, (int)num3);
44 int num7 = 1;
45 if (num7 == 0)
46 {
47 }
48 int num8 = Math.Min(int.MinValue, (int)num3);
49 if (num7 == 0)
50 {
51 }
53 int num9 = 11;
54 int num10 = random2.Next((int)num3, num9);
55 if (num7 == 0)
56 {
57 }
58 long num11 = 16457L;
59 if (num11 == 0L)
60 {
61 }
62 if (num11 == 0L)
63 {
64 }
66 if (num6 != 0)
67 {
68 }
70 if (!true)
71 {
72 }
73 if (!true)
74 {
75 return;
76 }
77 }
78
79 // Token: 0x04008217 RID: 33303
80 private double _startStrength;
81
82 // Token: 0x04008218 RID: 33304
83 private int _steps;
84
85 // Token: 0x04008219 RID: 33305
87 }
88}
class f__AnonymousType0<< Count > j__TPar
static byte Min(byte val1, byte val2)
Definition Math.cs:152
static byte Max(byte val1, byte val2)
Definition Math.cs:111
ShapeRunner(double strength, int steps, Vector2D velocity)
override bool Perform(Point origin, GenAction action)
static Vector2D RandomVector2D(UnifiedRandom random, double min, double max)
Definition Utils.cs:1795
static UnifiedRandom _random
Definition GenBase.cs:13