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
Shapes.cs
Go to the documentation of this file.
1using System;
5
7{
8 // Token: 0x020004DA RID: 1242
9 public static class Shapes
10 {
11 // Token: 0x020004DB RID: 1243
12 public class Circle : GenShape
13 {
14 // Token: 0x06003043 RID: 12355 RVA: 0x001F5E6C File Offset: 0x001F406C
15 public Circle(int radius)
16 {
17 this._verticalRadius = radius;
18 }
19
20 // Token: 0x06003044 RID: 12356 RVA: 0x001F5E88 File Offset: 0x001F4088
25
26 // Token: 0x06003045 RID: 12357 RVA: 0x001F5EA4 File Offset: 0x001F40A4
27 public void SetRadius(int radius)
28 {
29 this._verticalRadius = radius;
30 }
31
32 // Token: 0x06003046 RID: 12358 RVA: 0x001F5EB8 File Offset: 0x001F40B8
33 public override bool Perform(Point origin, GenAction action)
34 {
37 if (verticalRadius == 0)
38 {
39 }
40 if (verticalRadius == 0)
41 {
42 }
43 if (!this._quitOnFail)
44 {
45 bool flag;
46 return flag;
47 }
48 }
49
50 // Token: 0x040039DB RID: 14811
51 private int _verticalRadius;
52
53 // Token: 0x040039DC RID: 14812
54 private int _horizontalRadius;
55 }
56
57 // Token: 0x020004DC RID: 1244
58 public class HalfCircle : GenShape
59 {
60 // Token: 0x06003047 RID: 12359 RVA: 0x001F5EFC File Offset: 0x001F40FC
61 public HalfCircle(int radius)
62 {
63 this._radius = radius;
64 }
65
66 // Token: 0x06003048 RID: 12360 RVA: 0x001F5F18 File Offset: 0x001F4118
67 public override bool Perform(Point origin, GenAction action)
68 {
69 int radius = this._radius;
70 if (!this._quitOnFail)
71 {
72 bool flag;
73 return flag;
74 }
75 }
76
77 // Token: 0x040039DD RID: 14813
78 private int _radius;
79 }
80
81 // Token: 0x020004DD RID: 1245
82 public class Slime : GenShape
83 {
84 // Token: 0x06003049 RID: 12361 RVA: 0x001F5F44 File Offset: 0x001F4144
85 public Slime(int radius)
86 {
87 this._radius = radius;
88 }
89
90 // Token: 0x0600304A RID: 12362 RVA: 0x001F5F60 File Offset: 0x001F4160
91 public Slime(int radius, double xScale, double yScale)
92 {
93 this._radius = radius;
95 }
96
97 // Token: 0x0600304B RID: 12363 RVA: 0x001F5F84 File Offset: 0x001F4184
98 public override bool Perform(Point origin, GenAction action)
99 {
100 int radius = this._radius;
101 double yScale = this._yScale;
102 int radius2 = this._radius;
103 double xScale = this._xScale;
104 if (!this._quitOnFail)
105 {
106 bool flag;
107 return flag;
108 }
109 }
110
111 // Token: 0x040039DE RID: 14814
112 private int _radius;
113
114 // Token: 0x040039DF RID: 14815
115 private double _xScale;
116
117 // Token: 0x040039E0 RID: 14816
118 private double _yScale;
119 }
120
121 // Token: 0x020004DE RID: 1246
122 public class Rectangle : GenShape
123 {
124 // Token: 0x0600304C RID: 12364 RVA: 0x001F6000 File Offset: 0x001F4200
128
129 // Token: 0x0600304D RID: 12365 RVA: 0x001F6014 File Offset: 0x001F4214
130 public Rectangle(int width, int height)
131 {
132 }
133
134 // Token: 0x0600304E RID: 12366 RVA: 0x001F602C File Offset: 0x001F422C
136 {
137 }
138
139 // Token: 0x0600304F RID: 12367 RVA: 0x001F603C File Offset: 0x001F423C
140 public override bool Perform(Point origin, GenAction action)
141 {
143 if (this._area.Y == 0)
144 {
145 }
146 if (!this._quitOnFail)
147 {
148 bool flag;
149 return flag;
150 }
151 }
152
153 // Token: 0x040039E1 RID: 14817
155 }
156
157 // Token: 0x020004DF RID: 1247
158 public class Tail : GenShape
159 {
160 // Token: 0x06003050 RID: 12368 RVA: 0x001F606C File Offset: 0x001F426C
161 public Tail(double width, Vector2D endOffset)
162 {
163 this._width = width;
164 if (!true)
165 {
166 }
167 this._endOffset.X = width;
168 }
169
170 // Token: 0x06003051 RID: 12369 RVA: 0x001F6098 File Offset: 0x001F4298
171 public override bool Perform(Point origin, GenAction action)
172 {
173 double x = this._endOffset.X;
174 if (!true)
175 {
176 }
177 double width = this._width;
178 if (!true)
179 {
180 }
181 bool flag;
182 return flag;
183 }
184
185 // Token: 0x040039E2 RID: 14818
186 private double _width;
187
188 // Token: 0x040039E3 RID: 14819
190
191 // Token: 0x020004E0 RID: 1248
193 private sealed class <>c__DisplayClass3_0
194 {
195 // Token: 0x06003052 RID: 12370 RVA: 0x00003BB6 File Offset: 0x00001DB6
197 {
198 }
199
200 // Token: 0x06003053 RID: 12371 RVA: 0x001F60C4 File Offset: 0x001F42C4
201 internal bool <Perform>b__0(int x, int y)
202 {
203 return default(bool);
204 }
205
206 // Token: 0x040039E4 RID: 14820
207 public Shapes.Tail <>4__this;
208
209 // Token: 0x040039E5 RID: 14821
210 public GenAction action;
211
212 // Token: 0x040039E6 RID: 14822
213 public Point origin;
214 }
215 }
216
217 // Token: 0x020004E1 RID: 1249
218 public class Mound : GenShape
219 {
220 // Token: 0x06003054 RID: 12372 RVA: 0x001F60DC File Offset: 0x001F42DC
221 public Mound(int halfWidth, int height)
222 {
223 this._halfWidth = halfWidth;
224 }
225
226 // Token: 0x06003055 RID: 12373 RVA: 0x001F60F8 File Offset: 0x001F42F8
227 public override bool Perform(Point origin, GenAction action)
228 {
229 int halfWidth = this._halfWidth;
230 int height = this._height;
231 if (!this._quitOnFail)
232 {
233 int halfWidth2 = this._halfWidth;
234 bool flag;
235 return flag;
236 }
237 }
238
239 // Token: 0x040039E7 RID: 14823
240 private int _halfWidth;
241
242 // Token: 0x040039E8 RID: 14824
243 private int _height;
244 }
245 }
246}
class f__AnonymousType0<< Count > j__TPar
Circle(int horizontalRadius, int verticalRadius)
Definition Shapes.cs:21
override bool Perform(Point origin, GenAction action)
Definition Shapes.cs:33
override bool Perform(Point origin, GenAction action)
Definition Shapes.cs:67
override bool Perform(Point origin, GenAction action)
Definition Shapes.cs:227
Mound(int halfWidth, int height)
Definition Shapes.cs:221
Rectangle(int width, int height)
Definition Shapes.cs:130
override bool Perform(Point origin, GenAction action)
Definition Shapes.cs:140
Microsoft.Xna.Framework.Rectangle _area
Definition Shapes.cs:154
void SetArea(Microsoft.Xna.Framework.Rectangle area)
Definition Shapes.cs:135
Rectangle(Microsoft.Xna.Framework.Rectangle area)
Definition Shapes.cs:125
override bool Perform(Point origin, GenAction action)
Definition Shapes.cs:98
Slime(int radius, double xScale, double yScale)
Definition Shapes.cs:91
override bool Perform(Point origin, GenAction action)
Definition Shapes.cs:171
Tail(double width, Vector2D endOffset)
Definition Shapes.cs:161