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.
1
using
System
;
2
using
Microsoft.Xna.Framework
;
3
using
ReLogic.Utilities
;
4
using
Terraria.Utilities
;
5
using
Terraria.WorldBuilding
;
6
7
namespace
Terraria.GameContent.Generation
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
{
15
this._startStrength
=
strength
;
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;
34
UnifiedRandom
random =
GenBase
.
_random
;
35
long
num3
= 0
L
;
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
}
52
UnifiedRandom
random2
=
GenBase
.
_random
;
53
int
num9
= 11;
54
int
num10
=
random2
.
Next
((
int
)
num3
,
num9
);
55
if
(
num7
== 0)
56
{
57
}
58
long
num11
= 16457
L
;
59
if
(
num11
== 0
L
)
60
{
61
}
62
if
(
num11
== 0
L
)
63
{
64
}
65
Vector2D
vector2D
=
Utils
.
RandomVector2D
(
GenBase
.
_random
,
startStrength2
,
startStrength
);
66
if
(
num6
!= 0)
67
{
68
}
69
Vector2D
vector2D2
=
Utils
.
RandomVector2D
(
GenBase
.
_random
,
x2
,
startStrength
);
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
86
private
Vector2D
_startVelocity
;
87
}
88
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
System.Math.Min
static byte Min(byte val1, byte val2)
Definition
Math.cs:152
System.Math.Max
static byte Max(byte val1, byte val2)
Definition
Math.cs:111
System.Math
Definition
Math.cs:11
Terraria.GameContent.Generation.ShapeRunner._startVelocity
Vector2D _startVelocity
Definition
ShapeRunner.cs:86
Terraria.GameContent.Generation.ShapeRunner.ShapeRunner
ShapeRunner(double strength, int steps, Vector2D velocity)
Definition
ShapeRunner.cs:13
Terraria.GameContent.Generation.ShapeRunner.Perform
override bool Perform(Point origin, GenAction action)
Definition
ShapeRunner.cs:20
Terraria.GameContent.Generation.ShapeRunner._startStrength
double _startStrength
Definition
ShapeRunner.cs:80
Terraria.GameContent.Generation.ShapeRunner._steps
int _steps
Definition
ShapeRunner.cs:83
Terraria.GameContent.Generation.ShapeRunner
Definition
ShapeRunner.cs:11
Terraria.Utilities.UnifiedRandom.Next
int Next()
Definition
UnifiedRandom.cs:83
Terraria.Utilities.UnifiedRandom
Definition
UnifiedRandom.cs:8
Terraria.Utils.RandomVector2D
static Vector2D RandomVector2D(UnifiedRandom random, double min, double max)
Definition
Utils.cs:1795
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
Definition
GenShape.cs:8
Microsoft.Xna.Framework
Definition
AudioChannels.cs:4
ReLogic.Utilities
Definition
AttributeUtilities.cs:6
System.ExceptionArgument.value
@ value
System.ExceptionArgument.action
@ action
System.ConsoleKey.L
@ L
System
Definition
__ComObject.cs:4
Terraria.GameContent.Generation
Definition
ActionGrass.cs:7
Terraria.Utilities
Definition
Bits64.cs:5
Terraria.WorldBuilding
Definition
Actions.cs:9
Microsoft.Xna.Framework.Point
Definition
Point.cs:9
ReLogic.Utilities.Vector2D.X
double X
Definition
Vector2D.cs:759
ReLogic.Utilities.Vector2D
Definition
Vector2D.cs:12
source
Terraria
GameContent
Generation
ShapeRunner.cs
Generated by
1.10.0