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
Actions.cs
Go to the documentation of this file.
1using System;
7
9{
10 // Token: 0x0200048C RID: 1164
11 public static class Actions
12 {
13 // Token: 0x06002F8F RID: 12175 RVA: 0x001F435C File Offset: 0x001F255C
14 public static GenAction Chain(params GenAction[] actions)
15 {
16 }
17
18 // Token: 0x06002F90 RID: 12176 RVA: 0x000021DB File Offset: 0x000003DB
20 {
21 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
22 }
23
24 // Token: 0x0200048D RID: 1165
26 {
27 // Token: 0x06002F91 RID: 12177 RVA: 0x001F436C File Offset: 0x001F256C
29 {
31 base..ctor();
33 }
34
35 // Token: 0x06002F92 RID: 12178 RVA: 0x001F4390 File Offset: 0x001F2590
36 public override bool Apply(Point origin, int x, int y, params object[] args)
37 {
39 return base.UnitApply(origin, x, y, args);
40 }
41
42 // Token: 0x04003976 RID: 14710
44 }
45
46 // Token: 0x0200048E RID: 1166
47 public class Count : GenAction
48 {
49 // Token: 0x06002F93 RID: 12179 RVA: 0x001F43B0 File Offset: 0x001F25B0
51 {
53 base..ctor();
55 }
56
57 // Token: 0x06002F94 RID: 12180 RVA: 0x001F43D4 File Offset: 0x001F25D4
58 public override bool Apply(Point origin, int x, int y, params object[] args)
59 {
60 Ref<int> count = this._count;
61 !0 value = count.Value;
63 return base.UnitApply(origin, x, y, args);
64 }
65
66 // Token: 0x04003977 RID: 14711
68 }
69
70 // Token: 0x0200048F RID: 1167
71 public class Scanner : GenAction
72 {
73 // Token: 0x06002F95 RID: 12181 RVA: 0x001F4404 File Offset: 0x001F2604
75 {
77 base..ctor();
79 }
80
81 // Token: 0x06002F96 RID: 12182 RVA: 0x001F4428 File Offset: 0x001F2628
82 public override bool Apply(Point origin, int x, int y, params object[] args)
83 {
84 Ref<int> count = this._count;
85 !0 value = count.Value;
87 return base.UnitApply(origin, x, y, args);
88 }
89
90 // Token: 0x04003978 RID: 14712
92 }
93
94 // Token: 0x02000490 RID: 1168
95 public class TileScanner : GenAction
96 {
97 // Token: 0x06002F97 RID: 12183 RVA: 0x001F4458 File Offset: 0x001F2658
98 public TileScanner(params ushort[] tiles)
99 {
100 int num = 1;
102 base..ctor();
104 ushort[] tileIds = this._tileIds;
105 ushort[] tileIds2 = this._tileIds;
106 Dictionary<ushort, int> tileCounts = this._tileCounts;
107 }
108
109 // Token: 0x06002F98 RID: 12184 RVA: 0x001F4490 File Offset: 0x001F2690
110 public override bool Apply(Point origin, int x, int y, params object[] args)
111 {
112 if (!true)
113 {
114 }
115 Tile tile;
116 bool flag = tile.active();
117 Dictionary<ushort, int> tileCounts = this._tileCounts;
119 return base.UnitApply(origin, x, y, args);
120 }
121
122 // Token: 0x06002F99 RID: 12185 RVA: 0x001F44C4 File Offset: 0x001F26C4
124 {
125 ushort[] tileIds = this._tileIds;
127 ushort[] tileIds2 = this._tileIds;
128 Dictionary<ushort, int> tileCounts = this._tileCounts;
129 ushort[] tileIds3 = this._tileIds;
131 return this;
132 }
133
134 // Token: 0x06002F9A RID: 12186 RVA: 0x001F4500 File Offset: 0x001F2700
136 {
137 return this._tileCounts;
138 }
139
140 // Token: 0x06002F9B RID: 12187 RVA: 0x001F4514 File Offset: 0x001F2714
141 public int GetCount(ushort tileId)
142 {
143 /*
144An exception occurred when decompiling this method (06002F9B)
145
146ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 Terraria.WorldBuilding.Actions/TileScanner::GetCount(System.UInt16)
147
148 ---> System.Exception: Basic block has to end with unconditional control flow.
149{
150 Block_0:
151 stloc:class [mscorlib]System.Collections.Generic.Dictionary`2<uint16, int32>(var_0_06, ldfld:class [mscorlib]System.Collections.Generic.Dictionary`2<uint16, int32>(TileScanner::_tileCounts, ldloc:TileScanner(this)))
152 stloc:class [mscorlib]System.Collections.Generic.Dictionary`2<uint16, int32>(var_1_0D, ldfld:class [mscorlib]System.Collections.Generic.Dictionary`2<uint16, int32>(TileScanner::_tileCounts, ldloc:TileScanner(this)))
153}
154
155 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
156 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
157 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
158 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
159 --- End of inner exception stack trace ---
160 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
161 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
162*/;
163 }
164
165 // Token: 0x04003979 RID: 14713
166 private ushort[] _tileIds;
167
168 // Token: 0x0400397A RID: 14714
170 }
171
172 // Token: 0x02000491 RID: 1169
173 public class Blank : GenAction
174 {
175 // Token: 0x06002F9C RID: 12188 RVA: 0x001F4530 File Offset: 0x001F2730
176 public override bool Apply(Point origin, int x, int y, params object[] args)
177 {
178 return base.UnitApply(origin, x, y, args);
179 }
180
181 // Token: 0x06002F9D RID: 12189 RVA: 0x001F4548 File Offset: 0x001F2748
182 public Blank()
183 {
185 base..ctor();
186 }
187 }
188
189 // Token: 0x02000492 RID: 1170
190 public class Custom : GenAction
191 {
192 // Token: 0x06002F9E RID: 12190 RVA: 0x001F4564 File Offset: 0x001F2764
199
200 // Token: 0x06002F9F RID: 12191 RVA: 0x001F4588 File Offset: 0x001F2788
201 public override bool Apply(Point origin, int x, int y, params object[] args)
202 {
204 IntPtr invoke_impl = perUnit.invoke_impl;
205 IntPtr method_code = perUnit.method_code;
206 IntPtr method = perUnit.method;
207 return base.UnitApply(origin, x, y, args);
208 }
209
210 // Token: 0x0400397B RID: 14715
212 }
213
214 // Token: 0x02000493 RID: 1171
216 {
217 // Token: 0x06002FA0 RID: 12192 RVA: 0x001F45BC File Offset: 0x001F27BC
218 public override bool Apply(Point origin, int x, int y, params object[] args)
219 {
220 if (!true)
221 {
222 }
223 Tile tile;
224 tile.ClearMetadata();
225 return base.UnitApply(origin, x, y, args);
226 }
227
228 // Token: 0x06002FA1 RID: 12193 RVA: 0x001F45E0 File Offset: 0x001F27E0
230 {
232 base..ctor();
233 }
234 }
235
236 // Token: 0x02000494 RID: 1172
237 public class Clear : GenAction
238 {
239 // Token: 0x06002FA2 RID: 12194 RVA: 0x001F45FC File Offset: 0x001F27FC
240 public override bool Apply(Point origin, int x, int y, params object[] args)
241 {
242 if (!true)
243 {
244 }
245 Tile tile;
246 tile.ClearEverything();
247 return base.UnitApply(origin, x, y, args);
248 }
249
250 // Token: 0x06002FA3 RID: 12195 RVA: 0x001F4620 File Offset: 0x001F2820
251 public Clear()
252 {
254 base..ctor();
255 }
256 }
257
258 // Token: 0x02000495 RID: 1173
259 public class ClearTile : GenAction
260 {
261 // Token: 0x06002FA4 RID: 12196 RVA: 0x001F463C File Offset: 0x001F283C
262 public ClearTile(bool frameNeighbors = false)
263 {
265 base..ctor();
266 }
267
268 // Token: 0x06002FA5 RID: 12197 RVA: 0x001F4658 File Offset: 0x001F2858
269 public override bool Apply(Point origin, int x, int y, params object[] args)
270 {
273 return base.UnitApply(origin, x, y, args);
274 }
275
276 // Token: 0x0400397C RID: 14716
277 private bool _frameNeighbors;
278 }
279
280 // Token: 0x02000496 RID: 1174
281 public class ClearWall : GenAction
282 {
283 // Token: 0x06002FA6 RID: 12198 RVA: 0x001F4680 File Offset: 0x001F2880
284 public ClearWall(bool frameNeighbors = false)
285 {
287 base..ctor();
288 }
289
290 // Token: 0x06002FA7 RID: 12199 RVA: 0x001F469C File Offset: 0x001F289C
291 public override bool Apply(Point origin, int x, int y, params object[] args)
292 {
295 return base.UnitApply(origin, x, y, args);
296 }
297
298 // Token: 0x0400397D RID: 14717
299 private bool _frameNeighbors;
300 }
301
302 // Token: 0x02000497 RID: 1175
303 public class HalfBlock : GenAction
304 {
305 // Token: 0x06002FA8 RID: 12200 RVA: 0x001F46C4 File Offset: 0x001F28C4
306 public HalfBlock(bool value = true)
307 {
309 base..ctor();
310 }
311
312 // Token: 0x06002FA9 RID: 12201 RVA: 0x001F46E0 File Offset: 0x001F28E0
313 public override bool Apply(Point origin, int x, int y, params object[] args)
314 {
315 if (!true)
316 {
317 }
318 bool value = this._value;
319 Tile tile;
320 tile.halfBrick(value);
321 return base.UnitApply(origin, x, y, args);
322 }
323
324 // Token: 0x0400397E RID: 14718
325 private bool _value;
326 }
327
328 // Token: 0x02000498 RID: 1176
329 public class SetTile : GenAction
330 {
331 // Token: 0x06002FAA RID: 12202 RVA: 0x001F470C File Offset: 0x001F290C
332 public SetTile(ushort type, bool setSelfFrames = false, bool setNeighborFrames = true)
333 {
335 base..ctor();
336 this._type = type;
337 }
338
339 // Token: 0x06002FAB RID: 12203 RVA: 0x001F4730 File Offset: 0x001F2930
340 public override bool Apply(Point origin, int x, int y, params object[] args)
341 {
342 if (!true)
343 {
344 }
345 ushort type = this._type;
346 Tile tile;
347 tile.type = type;
348 tile.active(true);
349 if (this._doFraming)
350 {
353 }
354 return base.UnitApply(origin, x, y, args);
355 }
356
357 // Token: 0x0400397F RID: 14719
358 private ushort _type;
359
360 // Token: 0x04003980 RID: 14720
361 private bool _doFraming;
362
363 // Token: 0x04003981 RID: 14721
364 private bool _doNeighborFraming;
365 }
366
367 // Token: 0x02000499 RID: 1177
369 {
370 // Token: 0x06002FAC RID: 12204 RVA: 0x001F4778 File Offset: 0x001F2978
371 public SetTileKeepWall(ushort type, bool setSelfFrames = false, bool setNeighborFrames = true)
372 {
374 base..ctor();
375 this._type = type;
376 }
377
378 // Token: 0x06002FAD RID: 12205 RVA: 0x001F479C File Offset: 0x001F299C
379 public override bool Apply(Point origin, int x, int y, params object[] args)
380 {
381 if (!true)
382 {
383 }
384 Tile tile;
385 ushort wall = tile.wall;
386 ushort type = this._type;
387 if (this._doFraming)
388 {
391 }
392 return base.UnitApply(origin, x, y, args);
393 }
394
395 // Token: 0x04003982 RID: 14722
396 private ushort _type;
397
398 // Token: 0x04003983 RID: 14723
399 private bool _doFraming;
400
401 // Token: 0x04003984 RID: 14724
402 private bool _doNeighborFraming;
403 }
404
405 // Token: 0x0200049A RID: 1178
406 public class DebugDraw : GenAction
407 {
408 // Token: 0x06002FAE RID: 12206 RVA: 0x001F47E0 File Offset: 0x001F29E0
409 public DebugDraw(SpriteBatch spriteBatch, [Optional] Color color)
410 {
412 base..ctor();
413 this._spriteBatch = spriteBatch;
414 }
415
416 // Token: 0x06002FAF RID: 12207 RVA: 0x001F4804 File Offset: 0x001F2A04
417 public override bool Apply(Point origin, int x, int y, params object[] args)
418 {
419 int num = 1;
420 SpriteBatch spriteBatch = this._spriteBatch;
421 if (num == 0)
422 {
423 }
424 Vector2 screenPosition = Main.screenPosition;
426 return base.UnitApply(origin, x, y, args);
427 }
428
429 // Token: 0x04003985 RID: 14725
430 private Color _color;
431
432 // Token: 0x04003986 RID: 14726
434 }
435
436 // Token: 0x0200049B RID: 1179
437 public class SetSlope : GenAction
438 {
439 // Token: 0x06002FB0 RID: 12208 RVA: 0x001F483C File Offset: 0x001F2A3C
440 public SetSlope(int slope)
441 {
443 base..ctor();
444 this._slope = slope;
445 }
446
447 // Token: 0x06002FB1 RID: 12209 RVA: 0x001F4860 File Offset: 0x001F2A60
448 public override bool Apply(Point origin, int x, int y, params object[] args)
449 {
450 int slope = this._slope;
451 if (!true)
452 {
453 }
454 long num = 0L;
455 bool flag = WorldGen.SlopeTile(x, y, slope, num != 0L);
456 return base.UnitApply(origin, x, y, args);
457 }
458
459 // Token: 0x04003987 RID: 14727
460 private int _slope;
461 }
462
463 // Token: 0x0200049C RID: 1180
464 public class SetHalfTile : GenAction
465 {
466 // Token: 0x06002FB2 RID: 12210 RVA: 0x001F4890 File Offset: 0x001F2A90
468 {
470 base..ctor();
471 }
472
473 // Token: 0x06002FB3 RID: 12211 RVA: 0x001F48AC File Offset: 0x001F2AAC
474 public override bool Apply(Point origin, int x, int y, params object[] args)
475 {
476 if (!true)
477 {
478 }
479 bool halfTile = this._halfTile;
480 Tile tile;
481 tile.halfBrick(halfTile);
482 return base.UnitApply(origin, x, y, args);
483 }
484
485 // Token: 0x04003988 RID: 14728
486 private bool _halfTile;
487 }
488
489 // Token: 0x0200049D RID: 1181
491 {
492 // Token: 0x06002FB4 RID: 12212 RVA: 0x001F48D8 File Offset: 0x001F2AD8
494 {
496 base..ctor();
497 }
498
499 // Token: 0x06002FB5 RID: 12213 RVA: 0x001F48F4 File Offset: 0x001F2AF4
500 public override bool Apply(Point origin, int x, int y, params object[] args)
501 {
503 if (!true)
504 {
505 }
506 Tile tile;
508 if (!true)
509 {
510 }
511 Tile tile2;
513 return base.UnitApply(origin, x, y, args);
514 }
515
516 // Token: 0x06002FB6 RID: 12214 RVA: 0x001F492C File Offset: 0x001F2B2C
517 private byte GetPaintIDForPosition(int x, int y)
518 {
519 /*
520An exception occurred when decompiling this method (06002FB6)
521
522ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte Terraria.WorldBuilding.Actions/SetTileAndWallRainbowPaint::GetPaintIDForPosition(System.Int32,System.Int32)
523
524 ---> System.Exception: Basic block has to end with unconditional control flow.
525{
526 Block_0:
527 stloc:int32(var_1_0D, call:int32(Math::Max, ldc.i4:int32(1), ldloc:int32(y)))
528 stloc:int32(var_2_16, call:int32(Math::Min, ldc.i4:int32(12), ldloc:int32(var_1_0D)))
529}
530
531 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
532 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
533 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
534 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
535 --- End of inner exception stack trace ---
536 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
537 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
538*/;
539 }
540 }
541
542 // Token: 0x0200049E RID: 1182
543 public class PlaceTile : GenAction
544 {
545 // Token: 0x06002FB7 RID: 12215 RVA: 0x001F4950 File Offset: 0x001F2B50
546 public PlaceTile(ushort type, int style = 0)
547 {
549 base..ctor();
550 this._type = type;
551 this._style = style;
552 }
553
554 // Token: 0x06002FB8 RID: 12216 RVA: 0x001F4978 File Offset: 0x001F2B78
555 public override bool Apply(Point origin, int x, int y, params object[] args)
556 {
557 ushort type = this._type;
558 int style = this._style;
559 if (!true)
560 {
561 }
562 return base.UnitApply(origin, x, y, args);
563 }
564
565 // Token: 0x04003989 RID: 14729
566 private ushort _type;
567
568 // Token: 0x0400398A RID: 14730
569 private int _style;
570 }
571
572 // Token: 0x0200049F RID: 1183
573 public class RemoveWall : GenAction
574 {
575 // Token: 0x06002FB9 RID: 12217 RVA: 0x001F49A4 File Offset: 0x001F2BA4
576 public override bool Apply(Point origin, int x, int y, params object[] args)
577 {
578 if (!true)
579 {
580 }
581 long num = 0L;
582 Tile tile;
583 tile.wall = (ushort)num;
584 return base.UnitApply(origin, x, y, args);
585 }
586
587 // Token: 0x06002FBA RID: 12218 RVA: 0x001F49C8 File Offset: 0x001F2BC8
588 public RemoveWall()
589 {
591 base..ctor();
592 }
593 }
594
595 // Token: 0x020004A0 RID: 1184
596 public class PlaceWall : GenAction
597 {
598 // Token: 0x06002FBB RID: 12219 RVA: 0x001F49E4 File Offset: 0x001F2BE4
599 public PlaceWall(ushort type, bool neighbors = true)
600 {
602 base..ctor();
603 this._type = type;
604 }
605
606 // Token: 0x06002FBC RID: 12220 RVA: 0x001F4A08 File Offset: 0x001F2C08
607 public override bool Apply(Point origin, int x, int y, params object[] args)
608 {
609 int num = 1;
610 if (num == 0)
611 {
612 }
613 ushort type = this._type;
614 Tile tile;
615 tile.wall = type;
616 if (num == 0)
617 {
618 }
619 int num2 = 1;
620 WorldGen.SquareWallFrame(x, y, num2 != 0);
621 bool neighbors = this._neighbors;
622 if (neighbors)
623 {
624 if (!neighbors)
625 {
626 }
627 int num3 = 1;
628 WorldGen.SquareWallFrame(0, y, num3 != 0);
629 int num4 = 1;
630 WorldGen.SquareWallFrame(0, y, num4 != 0);
631 int num5 = 1;
632 WorldGen.SquareWallFrame(x, y, num5 != 0);
633 int num6 = 1;
634 WorldGen.SquareWallFrame(x, y, num6 != 0);
635 }
636 return base.UnitApply(origin, x, y, args);
637 }
638
639 // Token: 0x0400398B RID: 14731
640 private ushort _type;
641
642 // Token: 0x0400398C RID: 14732
643 private bool _neighbors;
644 }
645
646 // Token: 0x020004A1 RID: 1185
647 public class SetLiquid : GenAction
648 {
649 // Token: 0x06002FBD RID: 12221 RVA: 0x001F4A80 File Offset: 0x001F2C80
650 public SetLiquid(int type = 0, byte value = 255)
651 {
653 base..ctor();
655 this._type = type;
656 }
657
658 // Token: 0x06002FBE RID: 12222 RVA: 0x001F4AA8 File Offset: 0x001F2CA8
659 public override bool Apply(Point origin, int x, int y, params object[] args)
660 {
661 if (!true)
662 {
663 }
664 int type = this._type;
665 Tile tile;
666 tile.liquidType(type);
667 byte value = this._value;
669 return base.UnitApply(origin, x, y, args);
670 }
671
672 // Token: 0x0400398D RID: 14733
673 private int _type;
674
675 // Token: 0x0400398E RID: 14734
676 private byte _value;
677 }
678
679 // Token: 0x020004A2 RID: 1186
681 {
682 // Token: 0x06002FBF RID: 12223 RVA: 0x001F4AE0 File Offset: 0x001F2CE0
683 public SwapSolidTile(ushort type)
684 {
686 base..ctor();
687 this._type = type;
688 }
689
690 // Token: 0x06002FC0 RID: 12224 RVA: 0x001F4B04 File Offset: 0x001F2D04
691 public override bool Apply(Point origin, int x, int y, params object[] args)
692 {
693 if (!true)
694 {
695 }
696 ushort type = this._type;
697 return base.UnitApply(origin, x, y, args);
698 }
699
700 // Token: 0x0400398F RID: 14735
701 private ushort _type;
702 }
703
704 // Token: 0x020004A3 RID: 1187
705 public class SetFrames : GenAction
706 {
707 // Token: 0x06002FC1 RID: 12225 RVA: 0x001F4B34 File Offset: 0x001F2D34
708 public SetFrames(bool frameNeighbors = false)
709 {
711 base..ctor();
712 }
713
714 // Token: 0x06002FC2 RID: 12226 RVA: 0x001F4B50 File Offset: 0x001F2D50
715 public override bool Apply(Point origin, int x, int y, params object[] args)
716 {
719 return base.UnitApply(origin, x, y, args);
720 }
721
722 // Token: 0x04003990 RID: 14736
723 private bool _frameNeighbors;
724 }
725
726 // Token: 0x020004A4 RID: 1188
727 public class Smooth : GenAction
728 {
729 // Token: 0x06002FC3 RID: 12227 RVA: 0x001F4B78 File Offset: 0x001F2D78
730 public Smooth(bool applyToNeighbors = false)
731 {
733 base..ctor();
734 }
735
736 // Token: 0x06002FC4 RID: 12228 RVA: 0x001F4B94 File Offset: 0x001F2D94
737 public override bool Apply(Point origin, int x, int y, params object[] args)
738 {
740 if (!true)
741 {
742 }
743 long num = 0L;
744 Tile.SmoothSlope(x, y, x != 0, num != 0L);
745 return base.UnitApply(origin, x, y, args);
746 }
747
748 // Token: 0x04003991 RID: 14737
749 private bool _applyToNeighbors;
750 }
751 }
752}
class f__AnonymousType0<< Count > j__TPar
static Microsoft.Xna.Framework.Vector2 screenPosition
Definition Main.cs:1973
T Value
Definition Ref.cs:20
override bool Apply(Point origin, int x, int y, params object[] args)
Definition Actions.cs:176
override bool Apply(Point origin, int x, int y, params object[] args)
Definition Actions.cs:218
ClearTile(bool frameNeighbors=false)
Definition Actions.cs:262
override bool Apply(Point origin, int x, int y, params object[] args)
Definition Actions.cs:269
ClearWall(bool frameNeighbors=false)
Definition Actions.cs:284
override bool Apply(Point origin, int x, int y, params object[] args)
Definition Actions.cs:291
override bool Apply(Point origin, int x, int y, params object[] args)
Definition Actions.cs:240
override bool Apply(Point origin, int x, int y, params object[] args)
Definition Actions.cs:36
override bool Apply(Point origin, int x, int y, params object[] args)
Definition Actions.cs:58
Custom(GenBase.CustomPerUnitAction perUnit)
Definition Actions.cs:193
override bool Apply(Point origin, int x, int y, params object[] args)
Definition Actions.cs:201
GenBase.CustomPerUnitAction _perUnit
Definition Actions.cs:211
DebugDraw(SpriteBatch spriteBatch, [Optional] Color color)
Definition Actions.cs:409
override bool Apply(Point origin, int x, int y, params object[] args)
Definition Actions.cs:417
override bool Apply(Point origin, int x, int y, params object[] args)
Definition Actions.cs:313
PlaceTile(ushort type, int style=0)
Definition Actions.cs:546
override bool Apply(Point origin, int x, int y, params object[] args)
Definition Actions.cs:555
PlaceWall(ushort type, bool neighbors=true)
Definition Actions.cs:599
override bool Apply(Point origin, int x, int y, params object[] args)
Definition Actions.cs:607
override bool Apply(Point origin, int x, int y, params object[] args)
Definition Actions.cs:576
override bool Apply(Point origin, int x, int y, params object[] args)
Definition Actions.cs:82
override bool Apply(Point origin, int x, int y, params object[] args)
Definition Actions.cs:715
SetFrames(bool frameNeighbors=false)
Definition Actions.cs:708
override bool Apply(Point origin, int x, int y, params object[] args)
Definition Actions.cs:474
override bool Apply(Point origin, int x, int y, params object[] args)
Definition Actions.cs:659
SetLiquid(int type=0, byte value=255)
Definition Actions.cs:650
override bool Apply(Point origin, int x, int y, params object[] args)
Definition Actions.cs:448
override bool Apply(Point origin, int x, int y, params object[] args)
Definition Actions.cs:500
override bool Apply(Point origin, int x, int y, params object[] args)
Definition Actions.cs:379
SetTileKeepWall(ushort type, bool setSelfFrames=false, bool setNeighborFrames=true)
Definition Actions.cs:371
SetTile(ushort type, bool setSelfFrames=false, bool setNeighborFrames=true)
Definition Actions.cs:332
override bool Apply(Point origin, int x, int y, params object[] args)
Definition Actions.cs:340
Smooth(bool applyToNeighbors=false)
Definition Actions.cs:730
override bool Apply(Point origin, int x, int y, params object[] args)
Definition Actions.cs:737
override bool Apply(Point origin, int x, int y, params object[] args)
Definition Actions.cs:691
override bool Apply(Point origin, int x, int y, params object[] args)
Definition Actions.cs:110
TileScanner(params ushort[] tiles)
Definition Actions.cs:98
Dictionary< ushort, int > _tileCounts
Definition Actions.cs:169
Dictionary< ushort, int > GetResults()
Definition Actions.cs:135
Actions.TileScanner Output(Dictionary< ushort, int > resultsOutput)
Definition Actions.cs:123
static GenAction Chain(params GenAction[] actions)
Definition Actions.cs:14
static GenAction Continue(GenAction action)
Definition Actions.cs:19
bool UnitApply(Point origin, int x, int y, params object[] args)
Definition GenAction.cs:13
static void TileFrame(int x, int y, bool frameNeighbors=false)
static void ClearTile(int x, int y, bool frameNeighbors=false)
Definition WorldUtils.cs:64
static void ClearWall(int x, int y, bool frameNeighbors=false)
Definition WorldUtils.cs:86
static void SquareWallFrame(int i, int j, bool resetFrame=true)
static bool SlopeTile(int i, int j, int slope=0, bool noEffects=false)
byte color()
Definition Tile.cs:802
static void SmoothSlope(int x, int y, bool applyToNeighbors=true, bool sync=false)
Definition Tile.cs:1338
void liquidType(int liquidType)
Definition Tile.cs:936
bool active()
Definition Tile.cs:1241
void ClearMetadata()
Definition Tile.cs:1448
void ClearEverything()
Definition Tile.cs:355
ushort wall
Definition Tile.cs:85
byte wallColor()
Definition Tile.cs:833
bool halfBrick()
Definition Tile.cs:1127