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.
1using System;
7
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;
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 = 0L;
47 if (size2 != 0)
48 {
50 }
51 if (num2 == 0L)
52 {
53 }
54 throw new OutOfMemoryException();
55 }
56
57 // Token: 0x0600306F RID: 12399 RVA: 0x001F6500 File Offset: 0x001F4700
59 {
60 object @lock = this._lock;
61 if (this._structures._size != 0)
62 {
63 List<Rectangle> structures = this._structures;
65 if (structures == null)
66 {
67 }
69 }
70 int num = 1;
71 if (num == 0)
72 {
73 }
74 long num2 = 0L;
75 int value = num.m_value;
76 if (num != 0)
77 {
79 }
80 if (num2 == 0L)
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;
103 long num = 0L;
104 int version = protectedStructures._version;
106 if (protectedStructures != null)
107 {
108 Monitor.Exit(@lock);
109 }
110 if (num == 0L)
111 {
112 return;
113 }
114 throw new OutOfMemoryException();
115 }
116
117 // Token: 0x06003073 RID: 12403 RVA: 0x001F65D8 File Offset: 0x001F47D8
119 {
120 }
121
122 // Token: 0x04003A87 RID: 14983
124
125 // Token: 0x04003A88 RID: 14984
127
128 // Token: 0x04003A89 RID: 14985
129 private readonly object _lock;
130
131 // Token: 0x020004E8 RID: 1256
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
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
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
161 {
162 int num;
163 return num;
164 }
165
166 // Token: 0x06003079 RID: 12409 RVA: 0x001F6620 File Offset: 0x001F4820
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}
class f__AnonymousType0<< Count > j__TPar
static void Exit(object obj)
Definition Monitor.cs:47
void AddProtectedStructure(Rectangle area, int padding=0)
void AddStructure(Rectangle area, int padding=0)
bool CanPlace(Rectangle area, int padding=0)
readonly List< Rectangle > _structures
bool CanPlace(Rectangle area, bool[] validTiles, int padding=0)
readonly List< Rectangle > _protectedStructures
ushort type
Definition Tile.cs:58
bool active()
Definition Tile.cs:1241