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

◆ CanPlace() [1/2]

bool Terraria.WorldBuilding.StructureMap.CanPlace ( Rectangle area,
bool[] validTiles,
int padding = 0 )
inline

Definition at line 24 of file StructureMap.cs.

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 }
class f__AnonymousType0<< Count > j__TPar
static void Exit(object obj)
Definition Monitor.cs:47
readonly List< Rectangle > _protectedStructures

References Terraria.WorldBuilding.StructureMap._lock, Terraria.WorldBuilding.StructureMap._protectedStructures, System.Collections.Generic.List< T >._size, Terraria.Tile.active(), System.Threading.Monitor.Exit(), j__TPar, System.L, and Terraria.Tile.type.