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
DesertDescription.cs
Go to the documentation of this file.
1using System;
5
7{
8 // Token: 0x02000900 RID: 2304
9 public class DesertDescription
10 {
11 // Token: 0x170007F3 RID: 2035
12 // (get) Token: 0x06004657 RID: 18007 RVA: 0x00259200 File Offset: 0x00257400
13 // (set) Token: 0x06004658 RID: 18008 RVA: 0x00259224 File Offset: 0x00257424
15 {
17 get
18 {
20 int width = this.<CombinedArea>k__BackingField.Width;
21 return rectangle;
22 }
24 private set
25 {
27 }
28 }
29
30 // Token: 0x170007F4 RID: 2036
31 // (get) Token: 0x06004659 RID: 18009 RVA: 0x00259238 File Offset: 0x00257438
32 // (set) Token: 0x0600465A RID: 18010 RVA: 0x0025925C File Offset: 0x0025745C
33 public Rectangle Desert
34 {
36 get
37 {
38 Rectangle rectangle = this.<Desert>k__BackingField;
39 int width = this.<Desert>k__BackingField.Width;
40 return rectangle;
41 }
43 private set
44 {
45 this.<Desert>k__BackingField = value;
46 }
47 }
48
49 // Token: 0x170007F5 RID: 2037
50 // (get) Token: 0x0600465B RID: 18011 RVA: 0x00259270 File Offset: 0x00257470
51 // (set) Token: 0x0600465C RID: 18012 RVA: 0x00259294 File Offset: 0x00257494
53 {
55 get
56 {
58 int width = this.<Hive>k__BackingField.Width;
59 return rectangle;
60 }
62 private set
63 {
65 }
66 }
67
68 // Token: 0x170007F6 RID: 2038
69 // (get) Token: 0x0600465D RID: 18013 RVA: 0x002592A8 File Offset: 0x002574A8
70 // (set) Token: 0x0600465E RID: 18014 RVA: 0x002592C4 File Offset: 0x002574C4
72 {
74 get
75 {
76 double x = this.<BlockScale>k__BackingField.X;
78 return vector2D;
79 }
81 private set
82 {
83 }
84 }
85
86 // Token: 0x170007F7 RID: 2039
87 // (get) Token: 0x0600465F RID: 18015 RVA: 0x002592D4 File Offset: 0x002574D4
88 // (set) Token: 0x06004660 RID: 18016 RVA: 0x002592E8 File Offset: 0x002574E8
90 {
92 get
93 {
95 }
97 private set
98 {
100 }
101 }
102
103 // Token: 0x170007F8 RID: 2040
104 // (get) Token: 0x06004661 RID: 18017 RVA: 0x002592FC File Offset: 0x002574FC
105 // (set) Token: 0x06004662 RID: 18018 RVA: 0x00259310 File Offset: 0x00257510
106 public int BlockRowCount
107 {
109 get
110 {
111 return this.<BlockRowCount>k__BackingField;
112 }
114 private set
115 {
117 }
118 }
119
120 // Token: 0x170007F9 RID: 2041
121 // (get) Token: 0x06004663 RID: 18019 RVA: 0x00259324 File Offset: 0x00257524
122 // (set) Token: 0x06004664 RID: 18020 RVA: 0x00259338 File Offset: 0x00257538
123 public bool IsValid
124 {
126 get
127 {
128 return this.<IsValid>k__BackingField;
129 }
131 private set
132 {
133 }
134 }
135
136 // Token: 0x170007FA RID: 2042
137 // (get) Token: 0x06004665 RID: 18021 RVA: 0x00259348 File Offset: 0x00257548
138 // (set) Token: 0x06004666 RID: 18022 RVA: 0x0025935C File Offset: 0x0025755C
140 {
142 get
143 {
144 return this.<Surface>k__BackingField;
145 }
147 private set
148 {
150 }
151 }
152
153 // Token: 0x06004667 RID: 18023 RVA: 0x00259370 File Offset: 0x00257570
155 {
156 }
157
158 // Token: 0x06004668 RID: 18024 RVA: 0x00259384 File Offset: 0x00257584
159 public void UpdateSurfaceMap()
160 {
162 int width = this.<CombinedArea>k__BackingField.Width;
164 this.<Surface>k__BackingField = surfaceMap;
165 }
166
167 // Token: 0x06004669 RID: 18025 RVA: 0x002593AC File Offset: 0x002575AC
169 {
170 if (!true)
171 {
172 }
173 int num = 32768;
174 double num2 = WorldGen.genRand.NextDouble();
175 long num3 = 32752L;
177 int bottom = surfaceMap.Bottom;
178 if (num3 == 0L)
179 {
180 }
181 bool flag = DesertDescription.RowHasInvalidTiles(42170752, bottom, num);
182 if (num3 == 0L)
183 {
184 }
185 return 42170752;
186 }
187
188 // Token: 0x0600466A RID: 18026 RVA: 0x0025943C File Offset: 0x0025763C
189 private static bool RowHasInvalidTiles(int startX, int startY, int width)
190 {
191 int num = 1;
192 if (num == 0)
193 {
194 }
195 if (num == 0)
196 {
197 if (num == 0)
198 {
199 }
200 Tile tile;
201 ushort type = tile.type;
202 return;
203 }
204 }
205
206 // Token: 0x0600466B RID: 18027 RVA: 0x0025945C File Offset: 0x0025765C
207 // Note: this type is marked as 'beforefieldinit'.
209 {
210 }
211
212 // Token: 0x04008274 RID: 33396
214
215 // Token: 0x04008275 RID: 33397
217
218 // Token: 0x04008276 RID: 33398
219 private const int SCAN_PADDING = 5;
220
221 // Token: 0x04008277 RID: 33399
223 private Rectangle <CombinedArea>k__BackingField;
224
225 // Token: 0x04008278 RID: 33400
227 private Rectangle <Desert>k__BackingField;
228
229 // Token: 0x04008279 RID: 33401
231 private Rectangle <Hive>k__BackingField;
232
233 // Token: 0x0400827A RID: 33402
235 private Vector2D <BlockScale>k__BackingField;
236
237 // Token: 0x0400827B RID: 33403
239 private int <BlockColumnCount>k__BackingField;
240
241 // Token: 0x0400827C RID: 33404
243 private int <BlockRowCount>k__BackingField;
244
245 // Token: 0x0400827D RID: 33405
247 private bool <IsValid>k__BackingField;
248
249 // Token: 0x0400827E RID: 33406
251 private SurfaceMap <Surface>k__BackingField;
252 }
253}
class f__AnonymousType0<< Count > j__TPar
static bool RowHasInvalidTiles(int startX, int startY, int width)
static DesertDescription CreateFromPlacement(Point origin)
static UnifiedRandom genRand
Definition WorldGen.cs:38
ushort type
Definition Tile.cs:58