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.
1
using
System
;
2
using
Microsoft.Xna.Framework
;
3
using
Terraria.WorldBuilding
;
4
5
namespace
Terraria.GameContent.Generation
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
{
13
this._endingSize
=
endingSize
;
14
this._angle
=
angle
;
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
;
21
double
num =
Utils
.
Lerp
(
startingSize
,
endingSize
,
startingSize
);
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
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
Terraria.GameContent.Generation.ShapeRoot.Perform
override bool Perform(Point origin, GenAction action)
Definition
ShapeRoot.cs:34
Terraria.GameContent.Generation.ShapeRoot._endingSize
double _endingSize
Definition
ShapeRoot.cs:49
Terraria.GameContent.Generation.ShapeRoot._angle
double _angle
Definition
ShapeRoot.cs:43
Terraria.GameContent.Generation.ShapeRoot._startingSize
double _startingSize
Definition
ShapeRoot.cs:46
Terraria.GameContent.Generation.ShapeRoot.ShapeRoot
ShapeRoot(double angle, double distance=10.0, double startingSize=4.0, double endingSize=1.0)
Definition
ShapeRoot.cs:11
Terraria.GameContent.Generation.ShapeRoot._distance
double _distance
Definition
ShapeRoot.cs:52
Terraria.GameContent.Generation.ShapeRoot.DoRoot
bool DoRoot(Point origin, GenAction action, double angle, double distance, double startingSize)
Definition
ShapeRoot.cs:18
Terraria.GameContent.Generation.ShapeRoot
Definition
ShapeRoot.cs:9
Terraria.Utils.Lerp
static double Lerp(double value1, double value2, double amount)
Definition
Utils.cs:36
Terraria.Utils
Definition
Utils.cs:25
Terraria.WorldBuilding.GenAction
Definition
GenAction.cs:8
Terraria.WorldBuilding.GenBase._random
static UnifiedRandom _random
Definition
GenBase.cs:13
Terraria.WorldBuilding.GenBase
Definition
GenBase.cs:9
Terraria.WorldBuilding.GenShape._quitOnFail
bool _quitOnFail
Definition
GenShape.cs:61
Terraria.WorldBuilding.GenShape
Definition
GenShape.cs:8
Microsoft.Xna.Framework
Definition
AudioChannels.cs:4
System.ExceptionArgument.action
@ action
System
Definition
__ComObject.cs:4
Terraria.GameContent.Generation
Definition
ActionGrass.cs:7
Terraria.WorldBuilding
Definition
Actions.cs:9
Microsoft.Xna.Framework.Point
Definition
Point.cs:9
source
Terraria
GameContent
Generation
ShapeRoot.cs
Generated by
1.10.0