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
ModShapes.cs
Go to the documentation of this file.
1using System;
5
7{
8 // Token: 0x020004C9 RID: 1225
9 public static class ModShapes
10 {
11 // Token: 0x020004CA RID: 1226
12 public class All : GenModShape
13 {
14 // Token: 0x0600301C RID: 12316 RVA: 0x001F5964 File Offset: 0x001F3B64
15 public All(ShapeData data)
16 {
17 this._data = data;
18 }
19
20 // Token: 0x0600301D RID: 12317 RVA: 0x001F5980 File Offset: 0x001F3B80
21 public override bool Perform(Point origin, GenAction action)
22 {
23 do
24 {
25 ShapeData data = this._data;
26 HashSet<Point16> points = data._points;
27 if (data == null)
28 {
29 }
30 }
31 while (!this._quitOnFail);
32 bool flag;
33 return flag;
34 }
35 }
36
37 // Token: 0x020004CB RID: 1227
39 {
40 // Token: 0x0600301E RID: 12318 RVA: 0x001F59C8 File Offset: 0x001F3BC8
41 public OuterOutline(ShapeData data, bool useDiagonals = true, bool useInterior = false)
42 {
43 this._data = data;
44 }
45
46 // Token: 0x0600301F RID: 12319 RVA: 0x001F59E4 File Offset: 0x001F3BE4
47 public override bool Perform(Point origin, GenAction action)
48 {
49 ShapeData data = this._data;
50 bool useDiagonals = this._useDiagonals;
51 HashSet<Point16> points = data._points;
52 bool quitOnFail;
53 if (this._useInterior)
54 {
55 quitOnFail = this._quitOnFail;
56 if (quitOnFail)
57 {
58 bool flag;
59 return flag;
60 }
61 }
62 ShapeData data2 = this._data;
63 if (!quitOnFail)
64 {
65 }
66 bool flag2;
67 if (!this._quitOnFail)
68 {
69 return flag2;
70 }
71 return flag2;
72 }
73
74 // Token: 0x06003020 RID: 12320 RVA: 0x001F5A6C File Offset: 0x001F3C6C
75 // Note: this type is marked as 'beforefieldinit'.
76 static OuterOutline()
77 {
78 }
79
80 // Token: 0x040039C5 RID: 14789
81 private static readonly int[] POINT_OFFSETS;
82
83 // Token: 0x040039C6 RID: 14790
84 private bool _useDiagonals;
85
86 // Token: 0x040039C7 RID: 14791
87 private bool _useInterior;
88 }
89
90 // Token: 0x020004CC RID: 1228
92 {
93 // Token: 0x06003021 RID: 12321 RVA: 0x001F5A7C File Offset: 0x001F3C7C
94 public InnerOutline(ShapeData data, bool useDiagonals = true)
95 {
96 this._data = data;
97 }
98
99 // Token: 0x06003022 RID: 12322 RVA: 0x001F5A98 File Offset: 0x001F3C98
100 public override bool Perform(Point origin, GenAction action)
101 {
102 ShapeData data = this._data;
103 HashSet<Point16> points = data._points;
104 bool useDiagonals = this._useDiagonals;
105 ShapeData data2 = this._data;
106 if (data == null)
107 {
108 }
109 bool flag;
110 return flag;
111 }
112
113 // Token: 0x06003023 RID: 12323 RVA: 0x001F5B00 File Offset: 0x001F3D00
114 // Note: this type is marked as 'beforefieldinit'.
116 {
117 }
118
119 // Token: 0x040039C8 RID: 14792
120 private static readonly int[] POINT_OFFSETS;
121
122 // Token: 0x040039C9 RID: 14793
123 private bool _useDiagonals;
124 }
125 }
126}
class f__AnonymousType0<< Count > j__TPar
override bool Perform(Point origin, GenAction action)
Definition ModShapes.cs:21
override bool Perform(Point origin, GenAction action)
Definition ModShapes.cs:100
InnerOutline(ShapeData data, bool useDiagonals=true)
Definition ModShapes.cs:94
override bool Perform(Point origin, GenAction action)
Definition ModShapes.cs:47
OuterOutline(ShapeData data, bool useDiagonals=true, bool useInterior=false)
Definition ModShapes.cs:41