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
SmartCursorHelper.cs
Go to the documentation of this file.
1using System;
7
9{
10 // Token: 0x020007EF RID: 2031
11 public class SmartCursorHelper
12 {
13 // Token: 0x06004141 RID: 16705 RVA: 0x002451AC File Offset: 0x002433AC
14 public static void SmartCursorLookup(Player player)
15 {
16 int num = 1;
17 if (num == 0)
18 {
19 }
22 if (num == 0)
23 {
24 }
25 if (player.inventory.position == null)
26 {
27 }
29 Vector2 position = player.position;
30 Vector2 center = player.Center;
31 int tileTargetX = Player.tileTargetX;
32 int tileTargetY = Player.tileTargetY;
33 int tileRangeX = Player.tileRangeX;
34 int tileRangeY = Player.tileRangeY;
35 float x = player.position.X;
36 int num2 = 32640;
37 int width = player.width;
38 float y = player.position.Y;
39 int height = player.height;
40 if (num2 == 0)
41 {
42 }
43 if (num2 == 0)
44 {
45 }
46 int grapCount = player.grapCount;
47 if (player.grappling == null)
48 {
49 }
50 }
51
52 // Token: 0x06004142 RID: 16706 RVA: 0x002452A8 File Offset: 0x002434A8
54 {
55 int type = providedInfo.item.type;
56 Item item = providedInfo.player.FindPaintOrCoating();
57 if (item != null)
58 {
59 byte paintCoating = item.paintCoating;
60 coatingLookup.m_value = (int)paintCoating;
61 byte paint = item.paint;
62 paintLookup.m_value = (int)paint;
63 }
64 }
65
66 // Token: 0x06004143 RID: 16707 RVA: 0x002452EC File Offset: 0x002434EC
68 {
69 /*
70An exception occurred when decompiling this method (06004143)
71
72ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.GameContent.SmartCursorHelper::IsHoveringOverAnInteractibleTileThatBlocksSmartCursor(Terraria.GameContent.SmartCursorHelper/SmartCursorUsageInfo)
73
74 ---> System.Exception: Basic block has to end with unconditional control flow.
75{
76 Block_0:
77 stloc:bool(var_1_06, call:bool(Tile::active, ldloc:Tile[exp:valuetype Terraria.Tile&](var_0)))
78 stloc:uint16(var_3_0D, callgetter:uint16(Tile::get_type, ldloc:Tile[exp:valuetype Terraria.Tile&](var_2)))
79}
80
81 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
82 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
83 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
84 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
85 --- End of inner exception stack trace ---
86 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
87 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
88*/;
89 }
90
91 // Token: 0x06004144 RID: 16708 RVA: 0x0024530C File Offset: 0x0024350C
93 {
94 Item item = providedInfo.item;
95 int type = item.type;
96 int reachableStartX = providedInfo.reachableStartX;
97 int reachableStartY = providedInfo.reachableStartY;
98 int reachableEndY = providedInfo.reachableEndY;
99 int reachableStartY2 = providedInfo.reachableStartY;
100 }
101
102 // Token: 0x06004145 RID: 16709 RVA: 0x00245430 File Offset: 0x00243630
106
107 // Token: 0x06004146 RID: 16710 RVA: 0x002454BC File Offset: 0x002436BC
109 {
110 int createTile = providedInfo.item.createTile;
111 int screenTargetX = providedInfo.screenTargetX;
112 int reachableStartX = providedInfo.reachableStartX;
113 Tile tile;
114 bool flag = tile.active();
115 int screenTargetX2 = providedInfo.screenTargetX;
116 int reachableStartX2 = providedInfo.reachableStartX;
117 int reachableStartX3 = providedInfo.reachableStartX;
118 int reachableStartY = providedInfo.reachableStartY;
119 int reachableStartY2 = providedInfo.reachableStartY;
120 int paintLookup = providedInfo.paintLookup;
122 int reachableStartX4 = providedInfo.reachableStartX;
123 int reachableStartY3 = providedInfo.reachableStartY;
124 int reachableEndY = providedInfo.reachableEndY;
125 int reachableStartY4 = providedInfo.reachableStartY;
126 if (reachableStartY3 == 0)
127 {
128 }
129 Tile tile2;
130 bool flag3 = tile2.active();
131 int reachableEndY2 = providedInfo.reachableEndY;
132 }
133
134 // Token: 0x06004147 RID: 16711 RVA: 0x002455EC File Offset: 0x002437EC
136 {
137 int createTile = providedInfo.item.createTile;
138 int screenTargetX = providedInfo.screenTargetX;
139 int reachableStartX = providedInfo.reachableStartX;
140 Tile tile;
141 bool flag = tile.active();
142 int screenTargetX2 = providedInfo.screenTargetX;
143 int reachableStartX2 = providedInfo.reachableStartX;
144 Tile tile2;
145 ushort type = tile2.type;
146 int reachableStartX3 = providedInfo.reachableStartX;
147 int reachableStartY = providedInfo.reachableStartY;
148 int reachableEndY = providedInfo.reachableEndY;
149 int reachableStartY2 = providedInfo.reachableStartY;
150 }
151
152 // Token: 0x06004148 RID: 16712 RVA: 0x00245744 File Offset: 0x00243944
154 {
155 Item item = providedInfo.item;
156 int createTile = item.createTile;
157 int placeStyle = item.placeStyle;
158 long entityId = item.entityId;
159 int reachableStartX = providedInfo.reachableStartX;
160 int reachableStartY = providedInfo.reachableStartY;
161 int reachableEndY = providedInfo.reachableEndY;
162 int reachableStartY2 = providedInfo.reachableStartY;
163 if (reachableStartY == 0)
164 {
165 }
166 Tile tile;
167 bool flag = tile.active();
168 if (true)
169 {
170 return;
171 }
172 int reachableEndY2 = providedInfo.reachableEndY;
173 if (providedInfo.reachableEndX == 0)
174 {
175 }
176 if (reachableEndY2 == 0)
177 {
178 }
179 if (reachableEndY2 == 0)
180 {
181 }
182 float x = providedInfo.mouse.X;
183 float y = providedInfo.mouse.Y;
184 }
185
186 // Token: 0x06004149 RID: 16713 RVA: 0x00245838 File Offset: 0x00243A38
188 {
189 int type = providedInfo.item.type;
190 int reachableStartX = providedInfo.reachableStartX;
191 int reachableStartY = providedInfo.reachableStartY;
192 int reachableEndY = providedInfo.reachableEndY;
193 int reachableStartY2 = providedInfo.reachableStartY;
194 if (reachableStartY == 0)
195 {
196 }
197 Tile tile;
198 bool flag = tile.wire();
199 if (reachableStartY == 0)
200 {
201 }
202 }
203
204 // Token: 0x0600414A RID: 16714 RVA: 0x002458F8 File Offset: 0x00243AF8
206 {
207 int type = providedInfo.item.type;
208 int reachableStartX = providedInfo.reachableStartX;
209 int reachableEndX = providedInfo.reachableEndX;
210 int reachableEndY = providedInfo.reachableEndY;
211 int reachableStartY = providedInfo.reachableStartY;
212 }
213
214 // Token: 0x0600414B RID: 16715 RVA: 0x002459D8 File Offset: 0x00243BD8
216 {
217 int num = 1;
218 if (num == 0)
219 {
220 }
221 Item item = providedInfo.item;
222 if (num != 0)
223 {
224 int reachableStartX = providedInfo.reachableStartX;
225 int reachableStartY = providedInfo.reachableStartY;
226 int reachableEndY = providedInfo.reachableEndY;
227 int reachableStartY2 = providedInfo.reachableStartY;
228 if (reachableStartY == 0)
229 {
230 }
231 Tile tile;
232 bool flag = tile.active();
233 return;
234 }
235 }
236
237 // Token: 0x0600414C RID: 16716 RVA: 0x00245AA0 File Offset: 0x00243CA0
239 {
240 int type = providedInfo.item.type;
241 if (providedInfo.paintLookup == 0 && providedInfo.paintCoatingLookup == 0)
242 {
243 return;
244 }
245 int paintLookup = providedInfo.paintLookup;
246 int reachableStartX = providedInfo.reachableStartX;
247 int reachableStartY = providedInfo.reachableStartY;
248 int reachableEndY = providedInfo.reachableEndY;
249 int reachableStartY2 = providedInfo.reachableStartY;
250 if (reachableStartY == 0)
251 {
252 }
253 Tile tile;
254 bool flag = tile.active();
255 if (paintLookup != 0)
256 {
257 return;
258 }
259 }
260
261 // Token: 0x0600414D RID: 16717 RVA: 0x00245B8C File Offset: 0x00243D8C
263 {
264 int type = providedInfo.item.type;
265 if (providedInfo.paintLookup == 0 && providedInfo.paintCoatingLookup == 0)
266 {
267 return;
268 }
269 int reachableStartX = providedInfo.reachableStartX;
270 int reachableStartY = providedInfo.reachableStartY;
271 int reachableEndY = providedInfo.reachableEndY;
272 int paintCoatingLookup = providedInfo.paintCoatingLookup;
273 int paintCoatingLookup2 = providedInfo.paintCoatingLookup;
274 int reachableStartY2 = providedInfo.reachableStartY;
275 if (reachableStartY == 0)
276 {
277 }
278 Tile tile;
279 ushort wall = tile.wall;
280 if (reachableStartY == 0)
281 {
282 }
283 if (reachableStartY != 0)
284 {
285 if (reachableStartY == 0)
286 {
287 }
288 if (reachableStartY == 0)
289 {
290 int reachableEndY2 = providedInfo.reachableEndY;
291 int reachableEndX = providedInfo.reachableEndX;
292 if (reachableEndY2 == 0)
293 {
294 }
295 if (reachableEndY2 == 0)
296 {
297 }
298 float x = providedInfo.mouse.X;
299 float y = providedInfo.mouse.Y;
300 return;
301 }
302 }
303 if (paintCoatingLookup != 0)
304 {
305 return;
306 }
307 }
308
309 // Token: 0x0600414E RID: 16718 RVA: 0x00245C88 File Offset: 0x00243E88
311 {
312 Item item = providedInfo.item;
314 int createTile = providedInfo.item.createTile;
315 int num = 5295;
316 if (num == 0)
317 {
318 }
319 if (num != 0)
320 {
321 return;
322 }
323 if (num == 0)
324 {
325 }
326 Item item2 = providedInfo.item;
327 Item item3 = providedInfo.item;
328 Item item4 = providedInfo.item;
329 int screenTargetX = providedInfo.screenTargetX;
330 int reachableStartX = providedInfo.reachableStartX;
331 Tile tile;
332 bool flag = tile.active();
333 int screenTargetX2 = providedInfo.screenTargetX;
334 int reachableStartX2 = providedInfo.reachableStartX;
335 int reachableStartX3 = providedInfo.reachableStartX;
336 int reachableStartY = providedInfo.reachableStartY;
337 int reachableStartY2 = providedInfo.reachableStartY;
338 int paintLookup = providedInfo.paintLookup;
339 if (item4 == null)
340 {
341 }
343 int reachableStartX4 = providedInfo.reachableStartX;
344 int reachableStartY3 = providedInfo.reachableStartY;
345 int reachableEndY = providedInfo.reachableEndY;
346 int reachableStartY4 = providedInfo.reachableStartY;
347 }
348
349 // Token: 0x0600414F RID: 16719 RVA: 0x00245EC8 File Offset: 0x002440C8
351 {
352 if (true)
353 {
354 Tile tile;
355 bool flag = tile.nactive();
356 return;
357 }
358 }
359
360 // Token: 0x06004150 RID: 16720 RVA: 0x00245F34 File Offset: 0x00244134
362 {
363 int createTile = providedInfo.item.createTile;
364 int reachableStartX = providedInfo.reachableStartX;
365 int reachableStartY = providedInfo.reachableStartY;
366 int reachableStartY2 = providedInfo.reachableStartY;
367 int paintLookup = providedInfo.paintLookup;
368 }
369
370 // Token: 0x06004151 RID: 16721 RVA: 0x00246008 File Offset: 0x00244208
372 {
373 int createTile = providedInfo.item.createTile;
374 Tile tile;
375 bool flag = tile.active();
376 }
377
378 // Token: 0x06004152 RID: 16722 RVA: 0x00246070 File Offset: 0x00244270
379 private static void Step_WallsCell(int x, int y, int cx, int cy, int minX, int minY, int maxX, int maxY)
380 {
381 int num = 1;
382 if (num == 0)
383 {
384 }
385 Tile tile;
386 ushort wall = tile.wall;
387 if (num == 0)
388 {
389 }
390 if (num != 0)
391 {
392 if (num == 0)
393 {
394 }
395 if (num == 0)
396 {
397 return;
398 }
399 }
400 bool flag = DelegateMethods.NotDoorStand(x, y);
401 }
402
403 // Token: 0x06004153 RID: 16723 RVA: 0x00246188 File Offset: 0x00244388
405 {
406 int createWall = providedInfo.item.createWall;
407 Player player = providedInfo.player;
408 int width = player.width;
409 bool wet = player.wet;
410 long entityId = player.entityId;
411 int num = 15744;
412 float x = providedInfo.position.X;
413 float y = providedInfo.position.Y;
414 int num2 = 32640;
415 int reachableStartX = providedInfo.reachableStartX;
416 int reachableEndX = providedInfo.reachableEndX;
417 int reachableStartY = providedInfo.reachableStartY;
418 int paintLookup = providedInfo.paintLookup;
419 if (num == 0)
420 {
421 }
422 if (num2 == 0)
423 {
424 }
425 if (num2 == 0)
426 {
427 }
428 float x2 = providedInfo.mouse.X;
429 float y2 = providedInfo.mouse.Y;
430 }
431
432 // Token: 0x06004154 RID: 16724 RVA: 0x00246270 File Offset: 0x00244470
434 {
435 int type = providedInfo.item.type;
437 float x = providedInfo.Center.X;
438 float y = providedInfo.Center.Y;
439 if (!true)
440 {
441 }
442 if (!true)
443 {
444 }
445 int num = 1;
446 if (num == 0)
447 {
448 }
449 if (num == 0)
450 {
451 }
452 int screenTargetX = providedInfo.screenTargetX;
453 int reachableStartX = providedInfo.reachableStartX;
454 Tile tile;
455 bool flag = tile.active();
456 if (num == 0)
457 {
458 }
459 int screenTargetX2 = providedInfo.screenTargetX;
460 int reachableStartX2 = providedInfo.reachableStartX;
461 Tile tile2;
462 ushort type2 = tile2.type;
463 int reachableStartX3 = providedInfo.reachableStartX;
464 int reachableStartY = providedInfo.reachableStartY;
465 int reachableEndY = providedInfo.reachableEndY;
466 int reachableStartY2 = providedInfo.reachableStartY;
467 if (reachableStartY == 0)
468 {
469 }
470 Tile tile3;
471 bool flag2 = tile3.active();
472 if (reachableStartY == 0)
473 {
474 }
475 Tile tile4;
476 bool flag3 = tile4.active();
477 if (reachableStartY == 0)
478 {
479 }
480 Tile tile5;
481 ushort type3 = tile5.type;
482 }
483
484 // Token: 0x06004155 RID: 16725 RVA: 0x002466A4 File Offset: 0x002448A4
486 {
487 int createTile = providedInfo.item.createTile;
488 if (providedInfo.item.createTile != 0)
489 {
490 int screenTargetX = providedInfo.screenTargetX;
491 int reachableStartX = providedInfo.reachableStartX;
492 Tile tile;
493 bool flag = tile.active();
494 int screenTargetX2 = providedInfo.screenTargetX;
495 int reachableStartX2 = providedInfo.reachableStartX;
496 Tile tile2;
497 ushort type = tile2.type;
498 int reachableStartX3 = providedInfo.reachableStartX;
499 int reachableStartY = providedInfo.reachableStartY;
500 int reachableEndY = providedInfo.reachableEndY;
501 int reachableStartY2 = providedInfo.reachableStartY;
502 return;
503 }
504 }
505
506 // Token: 0x06004156 RID: 16726 RVA: 0x00246824 File Offset: 0x00244A24
508 {
509 Item item = providedInfo.item;
510 int reachableStartX = providedInfo.reachableStartX;
511 int reachableStartY = providedInfo.reachableStartY;
512 int reachableEndY = providedInfo.reachableEndY;
513 int reachableStartY2 = providedInfo.reachableStartY;
514 if (reachableStartY == 0)
515 {
516 }
517 Tile tile;
518 bool flag = tile.wire();
519 if (reachableStartY == 0)
520 {
521 }
522 }
523
524 // Token: 0x06004157 RID: 16727 RVA: 0x002468DC File Offset: 0x00244ADC
526 {
527 int type = providedInfo.item.type;
528 Player player = providedInfo.player;
531 long entityId = player.entityId;
532 int reachableStartX = providedInfo.reachableStartX;
533 int reachableStartY = providedInfo.reachableStartY;
534 int reachableEndY = providedInfo.reachableEndY;
535 int reachableStartY2 = providedInfo.reachableStartY;
536 if (reachableStartY == 0)
537 {
538 }
539 Tile tile;
540 bool flag = tile.active();
542 {
543 }
544 if (reachableStartY == 0)
545 {
546 }
547 }
548
549 // Token: 0x06004158 RID: 16728 RVA: 0x002469C0 File Offset: 0x00244BC0
551 {
552 Player player = providedInfo.player;
553 int width = player.width;
554 int height = player.height;
555 int hammer = providedInfo.item.hammer;
556 }
557
558 // Token: 0x06004159 RID: 16729 RVA: 0x00246D44 File Offset: 0x00244F44
560 {
561 int type = providedInfo.item.type;
563 int screenTargetX = providedInfo.screenTargetX;
564 int reachableStartX = providedInfo.reachableStartX;
565 Tile tile;
566 bool flag = tile.wire();
567 int screenTargetX2 = providedInfo.screenTargetX;
568 int reachableStartX2 = providedInfo.reachableStartX;
569 Tile tile2;
570 bool flag2 = tile2.wire2();
571 int screenTargetX3 = providedInfo.screenTargetX;
572 int reachableStartX3 = providedInfo.reachableStartX;
573 Tile tile3;
574 bool flag3 = tile3.wire3();
575 int screenTargetX4 = providedInfo.screenTargetX;
576 int reachableStartX4 = providedInfo.reachableStartX;
577 Tile tile4;
578 bool flag4 = tile4.wire4();
580 int reachableStartX5 = providedInfo.reachableStartX;
581 int reachableStartY = providedInfo.reachableStartY;
582 int reachableEndY = providedInfo.reachableEndY;
583 int reachableStartY2 = providedInfo.reachableStartY;
584 }
585
586 // Token: 0x0600415A RID: 16730 RVA: 0x00246F20 File Offset: 0x00245120
588 {
589 int type = providedInfo.item.type;
590 int type2 = providedInfo.item.type;
591 int num = 4;
592 int screenTargetX = providedInfo.screenTargetX;
593 int reachableStartX = providedInfo.reachableStartX;
594 Tile tile;
595 bool flag = tile.wire();
596 if (num == 0)
597 {
598 }
599 int screenTargetX2 = providedInfo.screenTargetX;
600 int reachableStartX2 = providedInfo.reachableStartX;
601 Tile tile2;
602 bool flag2 = tile2.wire2();
603 if (num == 0)
604 {
605 }
606 int screenTargetX3 = providedInfo.screenTargetX;
607 int reachableStartX3 = providedInfo.reachableStartX;
608 Tile tile3;
609 bool flag3 = tile3.wire3();
610 if (num == 0)
611 {
612 }
613 int screenTargetX4 = providedInfo.screenTargetX;
614 int reachableStartX4 = providedInfo.reachableStartX;
615 Tile tile4;
616 bool flag4 = tile4.wire4();
617 int reachableStartX5 = providedInfo.reachableStartX;
618 int reachableStartY = providedInfo.reachableStartY;
619 int reachableEndY = providedInfo.reachableEndY;
620 int reachableStartY2 = providedInfo.reachableStartY;
621 }
622
623 // Token: 0x0600415B RID: 16731 RVA: 0x00247110 File Offset: 0x00245310
627
628 // Token: 0x0600415C RID: 16732 RVA: 0x002471A4 File Offset: 0x002453A4
632
633 // Token: 0x0600415D RID: 16733 RVA: 0x00247208 File Offset: 0x00245408
635 {
636 int reachableStartX = providedInfo.reachableStartX;
637 int reachableStartY = providedInfo.reachableStartY;
638 int reachableStartY2 = providedInfo.reachableStartY;
639 int paintLookup = providedInfo.paintLookup;
640 float x = providedInfo.mouse.X;
641 float y = providedInfo.mouse.Y;
642 Item item = providedInfo.item;
643 Tile tile;
644 bool flag = tile.active();
645 int axe = item.axe;
646 if (axe == 0)
647 {
648 }
649 int hammer;
650 if (axe != 0)
651 {
652 hammer = item.hammer;
653 }
654 if (hammer == 0)
655 {
656 }
657 if (hammer == 0)
658 {
659 if (hammer == 0)
660 {
661 }
662 if (hammer == 0)
663 {
664 int pick = item.pick;
665 }
666 }
667 Point point;
668 fX.m_value = point;
669 }
670
671 // Token: 0x0600415E RID: 16734 RVA: 0x0024729C File Offset: 0x0024549C
673 {
674 int pick = providedInfo.item.pick;
675 int reachableStartX = providedInfo.reachableStartX;
676 int reachableStartY = providedInfo.reachableStartY;
677 int reachableStartY2 = providedInfo.reachableStartY;
678 int paintLookup = providedInfo.paintLookup;
679 float x = providedInfo.mouse.X;
680 float y = providedInfo.mouse.Y;
681 if (reachableStartY2 == 0)
682 {
683 }
684 }
685
686 // Token: 0x0600415F RID: 16735 RVA: 0x00247304 File Offset: 0x00245504
688 {
689 int num = 1;
690 int direction = player.direction;
691 int height = player.height;
692 int height2 = player.height;
693 Vector2 center = player.Center;
694 float x = player.position.X;
695 float y = player.position.Y;
696 float gravDir = player.gravDir;
697 int whoAmI = player.whoAmI;
698 if (num == 0)
699 {
700 }
701 int pick = providedInfo.item.pick;
704 int num2 = 1;
705 if (num2 == 0)
706 {
707 }
708 int value = num2.m_value;
709 float x2 = providedInfo.mouse.X;
710 float y2 = providedInfo.mouse.Y;
711 float num4;
712 int num3 = Math.Sign(num4);
713 int num5 = Math.Sign(num4);
714 }
715
716 // Token: 0x06004160 RID: 16736 RVA: 0x0024750C File Offset: 0x0024570C
718 {
719 }
720
721 // Token: 0x06004161 RID: 16737 RVA: 0x00247538 File Offset: 0x00245738
723 {
725 Item item = providedInfo.item;
726 int reachableStartX = providedInfo.reachableStartX;
727 int reachableStartY = providedInfo.reachableStartY;
728 int reachableStartY2 = providedInfo.reachableStartY;
729 int paintLookup = providedInfo.paintLookup;
730 int screenTargetX = providedInfo.screenTargetX;
731 int reachableStartX2 = providedInfo.reachableStartX;
733 int createTile = providedInfo.item.createTile;
734 int num = 5295;
735 if (num == 0)
736 {
737 }
738 if (num != 0)
739 {
740 return;
741 }
742 if (num == 0)
743 {
744 }
745 Item item2 = providedInfo.item;
746 Item item3 = providedInfo.item;
747 Item item4 = providedInfo.item;
748 Tile tile;
749 bool flag = tile.active();
750 if (item4 == null)
751 {
752 }
753 bool flag2 = Collision.InTileBounds(screenTargetX, reachableStartX2, screenTargetX, reachableStartY2, reachableStartX2, paintLookup);
754 }
755
756 // Token: 0x06004162 RID: 16738 RVA: 0x002476BC File Offset: 0x002458BC
757 private static void UpdateTorchLocations(int LX, int LY, int HX, int HY)
758 {
759 int num = 1;
760 if (num == 0)
761 {
762 }
763 if (num == 0)
764 {
765 }
766 Tile tile;
767 ushort type = tile.type;
768 if (num == 0)
769 {
770 }
771 }
772
773 // Token: 0x06004163 RID: 16739 RVA: 0x002476E0 File Offset: 0x002458E0
774 private static bool IsNearExistingTorch(int x, int y)
775 {
776 if (!true)
777 {
778 return;
779 }
780 }
781
782 // Token: 0x06004164 RID: 16740 RVA: 0x002476F8 File Offset: 0x002458F8
784 {
785 int createTile = providedInfo.item.createTile;
786 int reachableStartX = providedInfo.reachableStartX;
787 int reachableStartY = providedInfo.reachableStartY;
788 int reachableStartY2 = providedInfo.reachableStartY;
789 int paintLookup = providedInfo.paintLookup;
790 SmartCursorHelper.UpdateTorchLocations(reachableStartX, reachableStartY2, reachableStartY, paintLookup);
791 int type = providedInfo.item.type;
792 }
793
794 // Token: 0x06004165 RID: 16741 RVA: 0x00247868 File Offset: 0x00245A68
796 {
797 int type = providedInfo.item.type;
798 int reachableStartX = providedInfo.reachableStartX;
799 int reachableStartY = providedInfo.reachableStartY;
800 int reachableStartY2 = providedInfo.reachableStartY;
801 int paintLookup = providedInfo.paintLookup;
802 if (reachableStartY == 0)
803 {
804 }
805 if (reachableStartY == 0)
806 {
807 }
808 Tile tile;
809 bool flag = tile.active();
810 if (reachableStartY == 0)
811 {
812 }
813 }
814
815 // Token: 0x06004166 RID: 16742 RVA: 0x002478E8 File Offset: 0x00245AE8
817 {
818 }
819
820 // Token: 0x06004167 RID: 16743 RVA: 0x002478FC File Offset: 0x00245AFC
821 // Note: this type is marked as 'beforefieldinit'.
823 {
824 }
825
826 // Token: 0x04007EEC RID: 32492
827 private static List<int> _targetsInt;
828
829 // Token: 0x04007EED RID: 32493
830 private static List<int> _points;
831
832 // Token: 0x04007EEE RID: 32494
833 private static List<int> _endpoints;
834
835 // Token: 0x04007EEF RID: 32495
837
838 // Token: 0x04007EF0 RID: 32496
840
841 // Token: 0x04007EF1 RID: 32497
843
844 // Token: 0x04007EF2 RID: 32498
846
847 // Token: 0x04007EF3 RID: 32499
849
850 // Token: 0x04007EF4 RID: 32500
852
853 // Token: 0x04007EF5 RID: 32501
854 private const int rangeToAvoidOtherTorches = 8;
855
856 // Token: 0x020007F0 RID: 2032
858 {
859 // Token: 0x06004168 RID: 16744 RVA: 0x0024790C File Offset: 0x00245B0C
861 {
862 }
863
864 // Token: 0x04007EF6 RID: 32502
866
867 // Token: 0x04007EF7 RID: 32503
868 public Item item;
869
870 // Token: 0x04007EF8 RID: 32504
872
873 // Token: 0x04007EF9 RID: 32505
875
876 // Token: 0x04007EFA RID: 32506
878
879 // Token: 0x04007EFB RID: 32507
880 public int screenTargetX;
881
882 // Token: 0x04007EFC RID: 32508
883 public int screenTargetY;
884
885 // Token: 0x04007EFD RID: 32509
886 public int reachableStartX;
887
888 // Token: 0x04007EFE RID: 32510
889 public int reachableEndX;
890
891 // Token: 0x04007EFF RID: 32511
892 public int reachableStartY;
893
894 // Token: 0x04007F00 RID: 32512
895 public int reachableEndY;
896
897 // Token: 0x04007F01 RID: 32513
898 public int paintLookup;
899
900 // Token: 0x04007F02 RID: 32514
902 }
903 }
904}
class f__AnonymousType0<< Count > j__TPar
static int Sign(double value)
Definition Math.cs:252
static bool InTileBounds(int x, int y, int lx, int ly, int hx, int hy)
static bool NotDoorStand(int x, int y)
Vector2 Center
Definition Entity.cs:134
Vector2 position
Definition Entity.cs:460
static void Step_PumpkinSeeds(SmartCursorHelper.SmartCursorUsageInfo providedInfo, int focusedX, int focusedY)
static void TryFindingPaintInplayerInventory(SmartCursorHelper.SmartCursorUsageInfo providedInfo, [Out] int paintLookup, [Out] int coatingLookup)
static List< Tuple< int, int > > _targets2
static void Step_Actuators(SmartCursorHelper.SmartCursorUsageInfo providedInfo, int focusedX, int focusedY)
static void Step_PlanterBox(SmartCursorHelper.SmartCursorUsageInfo providedInfo, int focusedX, int focusedY)
static void Step_ForceCursorToAnyMinableThing(SmartCursorHelper.SmartCursorUsageInfo providedInfo, int fX, int fY)
static void Step_PaintBrush(SmartCursorHelper.SmartCursorUsageInfo providedInfo, int focusedX, int focusedY)
static void Step_Pickaxe_MineShinies(SmartCursorHelper.SmartCursorUsageInfo providedInfo, int fX, int fY)
static SmartCursorHelper.SmartCursorUsageInfo providedInfo
static void Step_PaintRoller(SmartCursorHelper.SmartCursorUsageInfo providedInfo, int focusedX, int focusedY)
static void Step_ColoredWrenches(SmartCursorHelper.SmartCursorUsageInfo providedInfo, int focusedX, int focusedY)
static void Step_BlocksLines(SmartCursorHelper.SmartCursorUsageInfo providedInfo, int focusedX, int focusedY)
static void Step_WallsCell(int x, int y, int cx, int cy, int minX, int minY, int maxX, int maxY)
static void Step_BlocksFilling(SmartCursorHelper.SmartCursorUsageInfo providedInfo, int fX, int fY)
static void Step_Hammers(SmartCursorHelper.SmartCursorUsageInfo providedInfo, int focusedX, int focusedY)
static void Step_Platforms(SmartCursorHelper.SmartCursorUsageInfo providedInfo, int focusedX, int focusedY)
static void Step_MinecartTracks(SmartCursorHelper.SmartCursorUsageInfo providedInfo, int focusedX, int focusedY)
static void Step_Pigronata(SmartCursorHelper.SmartCursorUsageInfo providedInfo, int focusedX, int focusedY)
static void Step_Boulders(SmartCursorHelper.SmartCursorUsageInfo providedInfo, int focusedX, int focusedY)
static void Step_GrassSeeds(SmartCursorHelper.SmartCursorUsageInfo providedInfo, int focusedX, int focusedY)
static void Step_PaintScrapper(SmartCursorHelper.SmartCursorUsageInfo providedInfo, int focusedX, int focusedY)
static List< Tuple< int, int > > _targets
static bool IsHoveringOverAnInteractibleTileThatBlocksSmartCursor(SmartCursorHelper.SmartCursorUsageInfo providedInfo)
static void UpdateTorchLocations(int LX, int LY, int HX, int HY)
static void Step_Axe(SmartCursorHelper.SmartCursorUsageInfo providedInfo, int fX, int fY)
static void Step_AlchemySeeds(SmartCursorHelper.SmartCursorUsageInfo providedInfo, int focusedX, int focusedY)
static void Step_ClayPots(SmartCursorHelper.SmartCursorUsageInfo providedInfo, int focusedX, int focusedY)
static void Step_MulticolorWrench(SmartCursorHelper.SmartCursorUsageInfo providedInfo, int focusedX, int focusedY)
static void SmartCursorLookup(Player player)
static void Step_EmptyBuckets(SmartCursorHelper.SmartCursorUsageInfo providedInfo, int focusedX, int focusedY)
static void Step_LawnMower(SmartCursorHelper.SmartCursorUsageInfo providedInfo, int fX, int fY)
static void Step_WireCutter(SmartCursorHelper.SmartCursorUsageInfo providedInfo, int focusedX, int focusedY)
static void Step_Torch(SmartCursorHelper.SmartCursorUsageInfo providedInfo, int fX, int fY)
static List< Tuple< int, int > > _toRemove
static void Step_Pickaxe_MineSolids(Player player, SmartCursorHelper.SmartCursorUsageInfo providedInfo, List< int > grappleTargets, int focusedX, int focusedY)
static void Step_StaffOfRegrowth(SmartCursorHelper.SmartCursorUsageInfo providedInfo, int focusedX, int focusedY)
static void Step_Walls(SmartCursorHelper.SmartCursorUsageInfo providedInfo, int focusedX, int focusedY)
static void Step_ActuationRod(SmartCursorHelper.SmartCursorUsageInfo providedInfo, int focusedX, int focusedY)
static bool IsNearExistingTorch(int x, int y)
static void Step_Acorns(SmartCursorHelper.SmartCursorUsageInfo providedInfo, int focusedX, int focusedY)
static void Step_GemCorns(SmartCursorHelper.SmartCursorUsageInfo providedInfo, int focusedX, int focusedY)
static WiresUI.Settings.MultiToolMode ToolMode
Definition WiresUI.cs:72
static TriggersPack Triggers
static bool SmartCursorIsUsed
Definition Main.cs:5607
static Microsoft.Xna.Framework.Vector2 MouseWorld
Definition Main.cs:4456
bool ActuationRodLockSetting
Definition Player.cs:22706
bool ActuationRodLock
Definition Player.cs:22703
static int tileTargetY
Definition Player.cs:80
static int tileRangeX
Definition Player.cs:38
static int tileTargetX
Definition Player.cs:66
static int tileRangeY
Definition Player.cs:52
Item[] inventory
Definition Player.cs:21263
bool wire4()
Definition Tile.cs:1097
bool wire3()
Definition Tile.cs:1067
bool nactive()
Definition Tile.cs:1187
ushort type
Definition Tile.cs:58
bool active()
Definition Tile.cs:1241
ushort wall
Definition Tile.cs:85
bool wire2()
Definition Tile.cs:1037
bool wire()
Definition Tile.cs:1007