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
StructureMap.cs
Go to the documentation of this file.
1
using
System
;
2
using
System.Collections.Generic
;
3
using
System.Runtime.CompilerServices
;
4
using
System.Threading
;
5
using
Cpp2IlInjected
;
6
using
Microsoft.Xna.Framework
;
7
8
namespace
Terraria.WorldBuilding
9
{
10
// Token: 0x020004E7 RID: 1255
11
public
class
StructureMap
12
{
13
// Token: 0x0600306D RID: 12397 RVA: 0x001F6464 File Offset: 0x001F4664
14
public
bool
CanPlace
(
Rectangle
area
,
int
padding = 0)
15
{
16
if
(!
true
)
17
{
18
}
19
bool
flag;
20
return
flag;
21
}
22
23
// Token: 0x0600306E RID: 12398 RVA: 0x001F6478 File Offset: 0x001F4678
24
public
bool
CanPlace
(
Rectangle
area
,
bool
[]
validTiles
,
int
padding = 0)
25
{
26
int
num = 1;
27
object
@
lock
= this.
_lock
;
28
if
(num == 0)
29
{
30
}
31
int
size = this.
_protectedStructures
.
_size
;
32
int
size2
= this.
_protectedStructures
.
_size
;
33
if
(size2 == 0)
34
{
35
}
36
Tile
tile;
37
bool
flag = tile.
active
();
38
if
(
size2
== 0)
39
{
40
}
41
Tile
tile2
;
42
ushort type =
tile2
.
type
;
43
if
(
size2
!= 0)
44
{
45
}
46
long
num2
= 0
L
;
47
if
(
size2
!= 0)
48
{
49
Monitor
.
Exit
(@
lock
);
50
}
51
if
(
num2
== 0
L
)
52
{
53
}
54
throw
new
OutOfMemoryException
();
55
}
56
57
// Token: 0x0600306F RID: 12399 RVA: 0x001F6500 File Offset: 0x001F4700
58
public
Rectangle
GetBoundingBox
()
59
{
60
object
@
lock
= this.
_lock
;
61
if
(this.
_structures
.
_size
!= 0)
62
{
63
List<Rectangle>
structures = this.
_structures
;
64
List<Rectangle>
structures2
= this.
_structures
;
65
if
(structures ==
null
)
66
{
67
}
68
List<Rectangle>
structures3
= this.
_structures
;
69
}
70
int
num = 1;
71
if
(num == 0)
72
{
73
}
74
long
num2
= 0
L
;
75
int
value
= num.m_value;
76
if
(num != 0)
77
{
78
Monitor
.
Exit
(@
lock
);
79
}
80
if
(
num2
== 0
L
)
81
{
82
}
83
throw
new
OutOfMemoryException
();
84
}
85
86
// Token: 0x06003070 RID: 12400 RVA: 0x000021DB File Offset: 0x000003DB
87
public
void
AddStructure
(
Rectangle
area
,
int
padding = 0)
88
{
89
throw
new
AnalysisFailedException
(
"CPP2IL failed to recover any usable IL for this method."
);
90
}
91
92
// Token: 0x06003071 RID: 12401 RVA: 0x000021DB File Offset: 0x000003DB
93
public
void
AddProtectedStructure
(
Rectangle
area
,
int
padding = 0)
94
{
95
throw
new
AnalysisFailedException
(
"CPP2IL failed to recover any usable IL for this method."
);
96
}
97
98
// Token: 0x06003072 RID: 12402 RVA: 0x001F6578 File Offset: 0x001F4778
99
public
void
Reset
()
100
{
101
object
@
lock
= this.
_lock
;
102
List<Rectangle>
protectedStructures
= this.
_protectedStructures
;
103
long
num = 0
L
;
104
int
version =
protectedStructures
.
_version
;
105
protectedStructures._syncRoot
= version;
106
if
(
protectedStructures
!=
null
)
107
{
108
Monitor
.
Exit
(@
lock
);
109
}
110
if
(num == 0
L
)
111
{
112
return
;
113
}
114
throw
new
OutOfMemoryException
();
115
}
116
117
// Token: 0x06003073 RID: 12403 RVA: 0x001F65D8 File Offset: 0x001F47D8
118
public
StructureMap
()
119
{
120
}
121
122
// Token: 0x04003A87 RID: 14983
123
private
readonly
List<Rectangle>
_structures
;
124
125
// Token: 0x04003A88 RID: 14984
126
private
readonly
List<Rectangle>
_protectedStructures
;
127
128
// Token: 0x04003A89 RID: 14985
129
private
readonly
object
_lock
;
130
131
// Token: 0x020004E8 RID: 1256
132
[
CompilerGenerated
]
133
[Serializable]
134
private
sealed
class <>
c
135
{
136
// Token: 0x06003074 RID: 12404 RVA: 0x001F65EC File Offset: 0x001F47EC
137
// Note: this type is marked as 'beforefieldinit'.
138
static <>
c()
139
{
140
}
141
142
// Token: 0x06003075 RID: 12405 RVA: 0x001F65FC File Offset: 0x001F47FC
143
public <>
c()
144
{
145
}
146
147
// Token: 0x06003076 RID: 12406 RVA: 0x000021DB File Offset: 0x000003DB
148
internal
int <GetBoundingBox>
b__5_0
(
Rectangle
rect)
149
{
150
throw
new
AnalysisFailedException
(
"CPP2IL failed to recover any usable IL for this method."
);
151
}
152
153
// Token: 0x06003077 RID: 12407 RVA: 0x000021DB File Offset: 0x000003DB
154
internal
int <GetBoundingBox>
b__5_1
(
Rectangle
rect)
155
{
156
throw
new
AnalysisFailedException
(
"CPP2IL failed to recover any usable IL for this method."
);
157
}
158
159
// Token: 0x06003078 RID: 12408 RVA: 0x001F6610 File Offset: 0x001F4810
160
internal
int <GetBoundingBox>
b__5_2
(
Rectangle
rect)
161
{
162
int
num;
163
return
num;
164
}
165
166
// Token: 0x06003079 RID: 12409 RVA: 0x001F6620 File Offset: 0x001F4820
167
internal
int <GetBoundingBox>
b__5_3
(
Rectangle
rect)
168
{
169
int
num;
170
return
num;
171
}
172
173
// Token: 0x04003A8A RID: 14986
174
public
static
readonly
StructureMap
.<>
c <>
9;
175
176
// Token: 0x04003A8B RID: 14987
177
public
static
Func<Rectangle, int>
<>9
__5_0
;
178
179
// Token: 0x04003A8C RID: 14988
180
public
static
Func<Rectangle, int>
<>9
__5_1
;
181
182
// Token: 0x04003A8D RID: 14989
183
public
static
Func<Rectangle, int>
<>9
__5_2
;
184
185
// Token: 0x04003A8E RID: 14990
186
public
static
Func<Rectangle, int>
<>9
__5_3
;
187
}
188
}
189
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
Cpp2IlInjected.AnalysisFailedException
Definition
AnalysisFailedException.cs:7
System.Collections.Generic.List._size
int _size
Definition
List.cs:394
System.Collections.Generic.List._version
int _version
Definition
List.cs:397
System.Collections.Generic.List
Definition
List.cs:13
System.Func
Definition
Func.cs:8
System.OutOfMemoryException
Definition
OutOfMemoryException.cs:9
System.Threading.Monitor.Exit
static void Exit(object obj)
Definition
Monitor.cs:47
System.Threading.Monitor
Definition
Monitor.cs:9
Terraria.WorldBuilding.StructureMap.StructureMap
StructureMap()
Definition
StructureMap.cs:118
Terraria.WorldBuilding.StructureMap.AddProtectedStructure
void AddProtectedStructure(Rectangle area, int padding=0)
Definition
StructureMap.cs:93
Terraria.WorldBuilding.StructureMap.AddStructure
void AddStructure(Rectangle area, int padding=0)
Definition
StructureMap.cs:87
Terraria.WorldBuilding.StructureMap.CanPlace
bool CanPlace(Rectangle area, int padding=0)
Definition
StructureMap.cs:14
Terraria.WorldBuilding.StructureMap._lock
readonly object _lock
Definition
StructureMap.cs:129
Terraria.WorldBuilding.StructureMap._structures
readonly List< Rectangle > _structures
Definition
StructureMap.cs:123
Terraria.WorldBuilding.StructureMap.Reset
void Reset()
Definition
StructureMap.cs:99
Terraria.WorldBuilding.StructureMap.GetBoundingBox
Rectangle GetBoundingBox()
Definition
StructureMap.cs:58
Terraria.WorldBuilding.StructureMap.CanPlace
bool CanPlace(Rectangle area, bool[] validTiles, int padding=0)
Definition
StructureMap.cs:24
Terraria.WorldBuilding.StructureMap._protectedStructures
readonly List< Rectangle > _protectedStructures
Definition
StructureMap.cs:126
Terraria.WorldBuilding.StructureMap
Definition
StructureMap.cs:12
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.Threading
Definition
_ThreadPoolWaitCallback.cs:4
System.ExceptionArgument.value
@ value
System.ConsoleKey.L
@ L
System
Definition
__ComObject.cs:4
Terraria.WorldBuilding
Definition
Actions.cs:9
Microsoft.Xna.Framework.Rectangle
Definition
Rectangle.cs:9
Terraria.Tile.type
ushort type
Definition
Tile.cs:58
Terraria.Tile.active
bool active()
Definition
Tile.cs:1241
Terraria.Tile
Definition
Tile.cs:12
source
Terraria
WorldBuilding
StructureMap.cs
Generated by
1.10.0