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
ShapeBranch.cs
Go to the documentation of this file.
1
using
System
;
2
using
System.Collections.Generic
;
3
using
System.Runtime.CompilerServices
;
4
using
Cpp2IlInjected
;
5
using
Microsoft.Xna.Framework
;
6
using
Terraria.WorldBuilding
;
7
8
namespace
Terraria.GameContent.Generation
9
{
10
// Token: 0x020008D7 RID: 2263
11
public
class
ShapeBranch
:
GenShape
12
{
13
// Token: 0x060045A4 RID: 17828 RVA: 0x002551F8 File Offset: 0x002533F8
14
public
ShapeBranch
()
15
{
16
}
17
18
// Token: 0x060045A5 RID: 17829 RVA: 0x0025520C File Offset: 0x0025340C
19
public
ShapeBranch
(
Point
offset
)
20
{
21
}
22
23
// Token: 0x060045A6 RID: 17830 RVA: 0x00255220 File Offset: 0x00253420
24
public
ShapeBranch
(
double
angle
,
double
distance)
25
{
26
if
(!
true
)
27
{
28
}
29
}
30
31
// Token: 0x060045A7 RID: 17831 RVA: 0x00255238 File Offset: 0x00253438
32
private
bool
PerformSegment
(
Point
origin,
GenAction
action
,
Point
start
,
Point
end,
int
size)
33
{
34
if
(!
true
)
35
{
36
}
37
int
num =
Math
.
Max
(1, size);
38
bool
flag;
39
return
flag;
40
}
41
42
// Token: 0x060045A8 RID: 17832 RVA: 0x000021DB File Offset: 0x000003DB
43
public
override
bool
Perform
(
Point
origin,
GenAction
action
)
44
{
45
throw
new
AnalysisFailedException
(
"CPP2IL failed to recover any usable IL for this method."
);
46
}
47
48
// Token: 0x060045A9 RID: 17833 RVA: 0x00255254 File Offset: 0x00253454
49
public
ShapeBranch
OutputEndpoints
(
List<Point>
endpoints
)
50
{
51
this._endPoints
=
endpoints
;
52
return
this
;
53
}
54
55
// Token: 0x0400820B RID: 33291
56
private
Point
_offset
;
57
58
// Token: 0x0400820C RID: 33292
59
private
List<Point>
_endPoints
;
60
61
// Token: 0x020008D8 RID: 2264
62
[
CompilerGenerated
]
63
private
sealed
class <>
c__DisplayClass5_0
64
{
65
// Token: 0x060045AA RID: 17834 RVA: 0x0025526C File Offset: 0x0025346C
66
public <>
c__DisplayClass5_0
()
67
{
68
}
69
70
// Token: 0x060045AB RID: 17835 RVA: 0x00255280 File Offset: 0x00253480
71
internal
bool <PerformSegment>
b__0
(
int
tileX
,
int
tileY
)
72
{
73
ShapeBranch
shapeBranch
= this.<>4
__this
;
74
GenAction
genAction
= this.
action
;
75
Point
point = this.origin;
76
if
(!
true
)
77
{
78
}
79
return
true
;
80
}
81
82
// Token: 0x0400820D RID: 33293
83
public
ShapeBranch <>
4
__this
;
84
85
// Token: 0x0400820E RID: 33294
86
public
GenAction
action
;
87
88
// Token: 0x0400820F RID: 33295
89
public
Point
origin;
90
91
// Token: 0x04008210 RID: 33296
92
public
Utils.TileActionAttempt
<>9
__0
;
93
}
94
}
95
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
Cpp2IlInjected.AnalysisFailedException
Definition
AnalysisFailedException.cs:7
System.Collections.Generic.List
Definition
List.cs:13
System.Math.Max
static byte Max(byte val1, byte val2)
Definition
Math.cs:111
System.Math
Definition
Math.cs:11
Terraria.GameContent.Generation.ShapeBranch.ShapeBranch
ShapeBranch(double angle, double distance)
Definition
ShapeBranch.cs:24
Terraria.GameContent.Generation.ShapeBranch.PerformSegment
bool PerformSegment(Point origin, GenAction action, Point start, Point end, int size)
Definition
ShapeBranch.cs:32
Terraria.GameContent.Generation.ShapeBranch._offset
Point _offset
Definition
ShapeBranch.cs:56
Terraria.GameContent.Generation.ShapeBranch.ShapeBranch
ShapeBranch()
Definition
ShapeBranch.cs:14
Terraria.GameContent.Generation.ShapeBranch.OutputEndpoints
ShapeBranch OutputEndpoints(List< Point > endpoints)
Definition
ShapeBranch.cs:49
Terraria.GameContent.Generation.ShapeBranch.Perform
override bool Perform(Point origin, GenAction action)
Definition
ShapeBranch.cs:43
Terraria.GameContent.Generation.ShapeBranch.ShapeBranch
ShapeBranch(Point offset)
Definition
ShapeBranch.cs:19
Terraria.GameContent.Generation.ShapeBranch._endPoints
List< Point > _endPoints
Definition
ShapeBranch.cs:59
Terraria.GameContent.Generation.ShapeBranch
Definition
ShapeBranch.cs:12
Terraria.Utils.TileActionAttempt
Definition
Utils.cs:2201
Terraria.WorldBuilding.GenAction
Definition
GenAction.cs:8
Terraria.WorldBuilding.GenShape
Definition
GenShape.cs:8
Cpp2IlInjected
Definition
AnalysisFailedException.cs:4
Microsoft.Xna.Framework
Definition
AudioChannels.cs:4
System.Collections.Generic
Definition
ArrayBuilder.cs:5
System.Runtime.CompilerServices
Definition
AsyncMethodBuilderAttribute.cs:4
System.ExceptionArgument.action
@ action
System.ExceptionArgument.offset
@ offset
System.ExceptionArgument.start
@ start
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
ShapeBranch.cs
Generated by
1.10.0