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
ShapeRoot.cs
Go to the documentation of this file.
1using System;
4
6{
7 // Token: 0x020008DA RID: 2266
8 public class ShapeRoot : GenShape
9 {
10 // Token: 0x060045AF RID: 17839 RVA: 0x0025534C File Offset: 0x0025354C
11 public ShapeRoot(double angle, double distance = 10.0, double startingSize = 4.0, double endingSize = 1.0)
12 {
15 }
16
17 // Token: 0x060045B0 RID: 17840 RVA: 0x00255370 File Offset: 0x00253570
18 private bool DoRoot(Point origin, GenAction action, double angle, double distance, double startingSize)
19 {
20 double endingSize = this._endingSize;
22 float num2 = GenBase._random.NextFloat();
23 float num3 = GenBase._random.NextFloat();
24 double angle2 = this._angle;
25 double angle3 = this._angle;
26 double num4 = Utils.Lerp(angle3, angle3, angle2);
27 if (!this._quitOnFail)
28 {
29 return;
30 }
31 }
32
33 // Token: 0x060045B1 RID: 17841 RVA: 0x002553E4 File Offset: 0x002535E4
34 public override bool Perform(Point origin, GenAction action)
35 {
36 double distance = this._distance;
37 double angle = this._angle;
38 bool flag;
39 return flag;
40 }
41
42 // Token: 0x04008213 RID: 33299
43 private double _angle;
44
45 // Token: 0x04008214 RID: 33300
46 private double _startingSize;
47
48 // Token: 0x04008215 RID: 33301
49 private double _endingSize;
50
51 // Token: 0x04008216 RID: 33302
52 private double _distance;
53 }
54}
class f__AnonymousType0<< Count > j__TPar
override bool Perform(Point origin, GenAction action)
Definition ShapeRoot.cs:34
ShapeRoot(double angle, double distance=10.0, double startingSize=4.0, double endingSize=1.0)
Definition ShapeRoot.cs:11
bool DoRoot(Point origin, GenAction action, double angle, double distance, double startingSize)
Definition ShapeRoot.cs:18
static double Lerp(double value1, double value2, double amount)
Definition Utils.cs:36
static UnifiedRandom _random
Definition GenBase.cs:13