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
CaptureInterface.cs
Go to the documentation of this file.
1using System;
10
12{
13 // Token: 0x02000767 RID: 1895
14 public class CaptureInterface
15 {
16 // Token: 0x06003E23 RID: 15907 RVA: 0x000021DB File Offset: 0x000003DB
18 {
19 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
20 }
21
22 // Token: 0x06003E24 RID: 15908 RVA: 0x0023BE70 File Offset: 0x0023A070
23 public static Rectangle GetArea()
24 {
25 /*
26An exception occurred when decompiling this method (06003E24)
27
28ICSharpCode.Decompiler.DecompilerException: Error decompiling Microsoft.Xna.Framework.Rectangle Terraria.Graphics.Capture.CaptureInterface::GetArea()
29
30 ---> System.Exception: Basic block has to end with unconditional control flow.
31{
32 IL_0000:
33 brtrue(IL_0000, ldc.i4:bool(1))
34}
35
36 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
37 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
38 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
39 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
40 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
41 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
42 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
43 --- End of inner exception stack trace ---
44 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
45 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
46*/;
47 }
48
49 // Token: 0x06003E25 RID: 15909 RVA: 0x0023BE80 File Offset: 0x0023A080
50 public void Update()
51 {
52 int num = 1;
53 if (num == 0)
54 {
55 }
57 if (num == 0)
58 {
59 }
60 if (num == 0)
61 {
62 if (num == 0)
63 {
64 }
66 long num2 = 0L;
69 if (!keyToggleActiveHeld)
70 {
72 {
73 }
74 bool active;
75 if (Main.mouseItem.type != 0)
76 {
77 active = this.Active;
78 if (!active)
79 {
80 goto IL_0083;
81 }
82 }
83 if (!active)
84 {
85 }
86 int myPlayer = Main.myPlayer;
88 bool active2 = this.Active;
89 this.ToggleCamera(num2 != 0L);
90 }
91 IL_0083:
92 bool active3 = this.Active;
93 if (active3)
94 {
95 if (!active3)
96 {
97 }
98 if (!active3)
99 {
100 }
101 if (active3)
102 {
103 if (!active3)
104 {
105 }
106 bool mouseLeftRelease = Main.mouseLeftRelease;
107 if (!active3)
108 {
109 }
110 bool mouseLeft = Main.mouseLeft;
111 if (!active3)
112 {
113 }
114 }
115 if (!active3)
116 {
117 }
118 int mouseX = Main.mouseX;
119 int mouseY = Main.mouseY;
120 if (!active3)
121 {
122 }
124 if (!active3)
125 {
126 }
127 int selectedMode = this.SelectedMode;
128 return;
129 }
130 }
131 }
132
133 // Token: 0x06003E26 RID: 15910 RVA: 0x0023BFA4 File Offset: 0x0023A1A4
134 public void Draw(SpriteBatch sb)
135 {
136 bool active = this.Active;
137 if (active)
138 {
139 sb.End();
140 if (!active)
141 {
142 }
143 if (!true)
144 {
145 }
147 return;
148 }
149 }
150
151 // Token: 0x06003E27 RID: 15911 RVA: 0x0023C028 File Offset: 0x0023A228
152 public void ToggleCamera(bool On = true)
153 {
154 if (16777216 == 0)
155 {
156 }
157 if (16777216 != 0)
158 {
159 return;
160 }
161 bool active = this.Active;
162 if (16777216 == 0)
163 {
164 }
165 int selectedMode = this.SelectedMode;
166 this.Active = 16777216 != 0;
167 if (10 == 0)
168 {
169 }
170 if (this.Active)
171 {
172 int selectedMode2 = this.SelectedMode;
173 return;
174 }
175 }
176
177 // Token: 0x06003E28 RID: 15912 RVA: 0x0023C094 File Offset: 0x0023A294
178 private bool UpdateButtons(Vector2 mouse)
179 {
180 int num = 1;
181 this.HoveredMode = num;
182 if (num == 0)
183 {
184 }
185 if (num == 0)
186 {
187 }
188 bool flag;
189 return flag;
190 }
191
192 // Token: 0x06003E29 RID: 15913 RVA: 0x0023C170 File Offset: 0x0023A370
193 public static void QuickScreenshot()
194 {
195 int num = 1;
196 if (num == 0)
197 {
198 }
200 if (num == 0)
201 {
202 }
204 Vector2 viewSize = Main.ViewSize;
205 if (num == 0)
206 {
207 }
209 }
210
211 // Token: 0x06003E2A RID: 15914 RVA: 0x0023C1B8 File Offset: 0x0023A3B8
212 private void DrawButtons(SpriteBatch sb)
213 {
214 if (!true)
215 {
216 }
217 int mouseX = Main.mouseX;
218 int mouseY = Main.mouseY;
219 }
220
221 // Token: 0x06003E2B RID: 15915 RVA: 0x0023C288 File Offset: 0x0023A488
222 private static bool GetMapCoords(int PinX, int PinY, int Goal, [Out] Point result)
223 {
224 /*
225An exception occurred when decompiling this method (06003E2B)
226
227ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.Graphics.Capture.CaptureInterface::GetMapCoords(System.Int32,System.Int32,System.Int32,Microsoft.Xna.Framework.Point)
228
229 ---> System.Exception: Basic block has to end with unconditional control flow.
230{
231 IL_00C1:
232 stfld:int32(int32::m_value, ldloc:int32[exp:int32&](Goal), ldloc:Point[exp:int32](var_38))
233}
234
235 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
236 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
237 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
238 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
239 --- End of inner exception stack trace ---
240 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
241 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
242*/;
243 }
244
245 // Token: 0x06003E2C RID: 15916 RVA: 0x0023C364 File Offset: 0x0023A564
246 private static void ConstraintPoints()
247 {
248 }
249
250 // Token: 0x06003E2D RID: 15917 RVA: 0x0023C374 File Offset: 0x0023A574
251 private static void PointWorldClamp(Point point, int fluff)
252 {
253 int num = 1;
254 point.X = fluff;
255 if (num == 0)
256 {
257 }
258 point.X = num;
259 int y = point.Y;
260 point.Y = fluff;
261 if (num == 0)
262 {
263 }
264 }
265
266 // Token: 0x06003E2E RID: 15918 RVA: 0x0023C3A8 File Offset: 0x0023A5A8
267 public bool UsingMap()
268 {
269 if (!true)
270 {
271 }
272 if (true)
273 {
274 return true;
275 }
276 if (!true)
277 {
278 }
279 int selectedMode = this.SelectedMode;
280 return true;
281 }
282
283 // Token: 0x06003E2F RID: 15919 RVA: 0x0023C3C8 File Offset: 0x0023A5C8
284 public static void ResetFocus()
285 {
286 if (!true)
287 {
288 }
289 }
290
291 // Token: 0x06003E30 RID: 15920 RVA: 0x0023C3D8 File Offset: 0x0023A5D8
292 public void Scrolling()
293 {
294 if (!true)
295 {
296 }
298 int selectedMode = this.SelectedMode;
299 }
300
301 // Token: 0x06003E31 RID: 15921 RVA: 0x0023C3FC File Offset: 0x0023A5FC
302 private void UpdateCamera()
303 {
304 if (!true)
305 {
306 }
307 int num = true.ToDirectionInt();
308 if (num == 0)
309 {
310 }
311 if (num == 0)
312 {
313 }
314 if (num == 0)
315 {
316 }
317 if (16544 == 0)
318 {
319 }
320 if (num == 0)
321 {
322 }
323 if (17008 == 0)
324 {
325 }
326 }
327
328 // Token: 0x06003E32 RID: 15922 RVA: 0x0023C430 File Offset: 0x0023A630
330 {
331 if (!true)
332 {
333 }
334 if (!true)
335 {
336 }
337 int screenWidth = Main.screenWidth;
338 int screenHeight = Main.screenHeight;
339 if (!true)
340 {
341 }
342 string text2;
343 string text = text2 + " ";
346 if (!true)
347 {
348 }
349 if (!true)
350 {
351 }
354 if (!true)
355 {
356 }
357 if (!true)
358 {
359 }
360 }
361
362 // Token: 0x06003E33 RID: 15923 RVA: 0x0023C4B0 File Offset: 0x0023A6B0
363 public static void StartCamera(CaptureSettings settings)
364 {
365 if (!true)
366 {
367 }
368 }
369
370 // Token: 0x06003E34 RID: 15924 RVA: 0x0023C4C0 File Offset: 0x0023A6C0
371 public static void EndCamera()
372 {
373 if (!true)
374 {
375 }
376 }
377
378 // Token: 0x06003E35 RID: 15925 RVA: 0x0023C4D0 File Offset: 0x0023A6D0
380 {
381 }
382
383 // Token: 0x06003E36 RID: 15926 RVA: 0x0023C4E4 File Offset: 0x0023A6E4
384 // Note: this type is marked as 'beforefieldinit'.
389
390 // Token: 0x04007CF9 RID: 31993
392
393 // Token: 0x04007CFA RID: 31994
394 public bool Active;
395
396 // Token: 0x04007CFB RID: 31995
397 public static bool JustActivated;
398
399 // Token: 0x04007CFC RID: 31996
401
402 // Token: 0x04007CFD RID: 31997
403 public int SelectedMode;
404
405 // Token: 0x04007CFE RID: 31998
406 public int HoveredMode;
407
408 // Token: 0x04007CFF RID: 31999
409 public static bool EdgeAPinned;
410
411 // Token: 0x04007D00 RID: 32000
412 public static bool EdgeBPinned;
413
414 // Token: 0x04007D01 RID: 32001
415 public static Point EdgeA;
416
417 // Token: 0x04007D02 RID: 32002
418 public static Point EdgeB;
419
420 // Token: 0x04007D03 RID: 32003
421 public static bool CameraLock;
422
423 // Token: 0x04007D04 RID: 32004
424 private static float CameraFrame;
425
426 // Token: 0x04007D05 RID: 32005
427 private static float CameraWaiting;
428
429 // Token: 0x04007D06 RID: 32006
430 private const float CameraMaxFrame = 5f;
431
432 // Token: 0x04007D07 RID: 32007
433 private const float CameraMaxWait = 60f;
434
435 // Token: 0x04007D08 RID: 32008
437
438 // Token: 0x02000768 RID: 1896
439 public static class Settings
440 {
441 // Token: 0x06003E37 RID: 15927 RVA: 0x0023C4F8 File Offset: 0x0023A6F8
442 // Note: this type is marked as 'beforefieldinit'.
443 static Settings()
444 {
445 }
446
447 // Token: 0x04007D09 RID: 32009
448 public static bool PackImage;
449
450 // Token: 0x04007D0A RID: 32010
451 public static bool IncludeEntities;
452
453 // Token: 0x04007D0B RID: 32011
454 public static bool TransparentBackground;
455
456 // Token: 0x04007D0C RID: 32012
457 public static int BiomeChoiceIndex;
458
459 // Token: 0x04007D0D RID: 32013
460 public static int ScreenAnchor;
461
462 // Token: 0x04007D0E RID: 32014
463 public static Color MarkedAreaColor;
464 }
465
466 // Token: 0x02000769 RID: 1897
467 private abstract class CaptureInterfaceMode
468 {
469 // Token: 0x06003E38 RID: 15928
470 public abstract void Update();
471
472 // Token: 0x06003E39 RID: 15929
473 public abstract void Draw(SpriteBatch sb);
474
475 // Token: 0x06003E3A RID: 15930
476 public abstract void ToggleActive(bool tickedOn);
477
478 // Token: 0x06003E3B RID: 15931
479 public abstract bool UsingMap();
480
481 // Token: 0x06003E3C RID: 15932 RVA: 0x0023C508 File Offset: 0x0023A708
483 {
484 }
485
486 // Token: 0x04007D0F RID: 32015
487 public bool Selected;
488 }
489
490 // Token: 0x0200076A RID: 1898
492 {
493 // Token: 0x06003E3D RID: 15933 RVA: 0x0023C51C File Offset: 0x0023A71C
494 public override void Update()
495 {
496 bool selected = this.Selected;
498 int mouseX = Main.mouseX;
499 int mouseY = Main.mouseY;
500 }
501
502 // Token: 0x06003E3E RID: 15934 RVA: 0x0023C54C File Offset: 0x0023A74C
503 public override void Draw(SpriteBatch sb)
504 {
505 bool selected = this.Selected;
506 if (selected)
507 {
508 sb.End();
509 if (!selected)
510 {
511 }
512 if (!true)
513 {
514 }
515 if (!true)
516 {
517 }
519 sb.End();
520 if (!true)
521 {
522 }
524 }
525 }
526
527 // Token: 0x06003E3F RID: 15935 RVA: 0x0023C58C File Offset: 0x0023A78C
528 public override void ToggleActive(bool tickedOn)
529 {
530 }
531
532 // Token: 0x06003E40 RID: 15936 RVA: 0x0023C59C File Offset: 0x0023A79C
533 public override bool UsingMap()
534 {
535 return true;
536 }
537
538 // Token: 0x06003E41 RID: 15937 RVA: 0x0023C5AC File Offset: 0x0023A7AC
539 private void EdgePlacement(Vector2 mouse)
540 {
541 if (!true)
542 {
543 }
544 if (!true)
545 {
546 if (!true)
547 {
548 }
549 bool mapFullscreen = Main.mapFullscreen;
550 if (!true)
551 {
552 }
553 bool mouseLeft = Main.mouseLeft;
554 if (!true)
555 {
556 }
557 if (!true)
558 {
559 }
560 bool mouseRight = Main.mouseRight;
561 if (!true)
562 {
563 }
564 return;
565 }
566 }
567
568 // Token: 0x06003E42 RID: 15938 RVA: 0x0023C650 File Offset: 0x0023A850
570 {
571 if (!true)
572 {
573 }
574 bool mapFullscreen = Main.mapFullscreen;
575 if (-2147483648 == 0)
576 {
577 }
578 if (-2147483648 == 0)
579 {
580 }
581 int screenWidth = Main.screenWidth;
582 int screenHeight = Main.screenHeight;
583 if (-2147483648 == 0)
584 {
585 }
586 if (-2147483648 != 0 && -2147483648 != 0)
587 {
588 if (-2147483648 == 0)
589 {
590 }
591 if (-2147483648 == 0)
592 {
593 }
594 if (-2147483648 == 0)
595 {
596 }
597 if (-2147483648 == 0)
598 {
599 }
600 if (-2147483648 == 0)
601 {
602 }
603 return;
604 }
605 }
606
607 // Token: 0x06003E43 RID: 15939 RVA: 0x0023C74C File Offset: 0x0023A94C
608 private void DrawCursors(SpriteBatch sb)
609 {
610 int num = 1;
611 if (num == 0)
612 {
613 }
614 float cursorScale = Main.cursorScale;
615 Vector2 screenPosition = Main.screenPosition;
616 if (num == 0)
617 {
618 }
619 int screenWidth = Main.screenWidth;
620 int screenHeight = Main.screenHeight;
621 int num2 = 17008;
622 bool mapFullscreen = Main.mapFullscreen;
623 if (num2 == 0)
624 {
625 }
627 if (num2 == 0)
628 {
629 }
631 if (num2 == 0)
632 {
633 }
635 int myPlayer = Main.myPlayer;
636 int num3 = 1;
637 if (num3 == 0)
638 {
639 }
640 if (num3 == 0)
641 {
642 }
644 int num4 = (true.ToInt() != 0).ToInt();
645 }
646
647 // Token: 0x06003E44 RID: 15940 RVA: 0x0023CA0C File Offset: 0x0023AC0C
649 {
650 }
651 }
652
653 // Token: 0x0200076B RID: 1899
655 {
656 // Token: 0x06003E45 RID: 15941 RVA: 0x0023CA20 File Offset: 0x0023AC20
657 public override void Update()
658 {
659 bool selected = this.Selected;
660 if (selected)
661 {
662 if (!selected)
663 {
664 }
665 if (!selected)
666 {
668 int mouseX = Main.mouseX;
669 int mouseY = Main.mouseY;
670 }
671 }
672 }
673
674 // Token: 0x06003E46 RID: 15942 RVA: 0x0023CA58 File Offset: 0x0023AC58
675 public override void Draw(SpriteBatch sb)
676 {
677 bool selected = this.Selected;
678 if (selected)
679 {
680 sb.End();
681 if (!selected)
682 {
683 }
684 if (!true)
685 {
686 }
687 if (!true)
688 {
689 }
691 this.DrawMarkedArea(sb);
692 sb.End();
693 if (!true)
694 {
695 }
697 }
698 }
699
700 // Token: 0x06003E47 RID: 15943 RVA: 0x0023CA9C File Offset: 0x0023AC9C
701 public override void ToggleActive(bool tickedOn)
702 {
703 }
704
705 // Token: 0x06003E48 RID: 15944 RVA: 0x0023CAAC File Offset: 0x0023ACAC
706 public override bool UsingMap()
707 {
708 /*
709An exception occurred when decompiling this method (06003E48)
710
711ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.Graphics.Capture.CaptureInterface/ModeDragBounds::UsingMap()
712
713 ---> System.Exception: Basic block has to end with unconditional control flow.
714{
715 Block_0:
716 stloc:int32(var_0_06, ldfld:int32(ModeDragBounds::caughtEdge, ldloc:ModeDragBounds(this)))
717}
718
719 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
720 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
721 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
722 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
723 --- End of inner exception stack trace ---
724 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
725 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
726*/;
727 }
728
729 // Token: 0x06003E49 RID: 15945 RVA: 0x0023CAC0 File Offset: 0x0023ACC0
730 private void DragBounds(Vector2 mouse)
731 {
732 if (!true)
733 {
734 }
735 bool mouseLeft = Main.mouseLeft;
736 bool mapFullscreen = Main.mapFullscreen;
737 }
738
739 // Token: 0x06003E4A RID: 15946 RVA: 0x0023CCDC File Offset: 0x0023AEDC
741 {
742 if (!true)
743 {
744 }
745 if (!true)
746 {
747 return;
748 }
749 }
750
751 // Token: 0x06003E4B RID: 15947 RVA: 0x0023CCF4 File Offset: 0x0023AEF4
753 {
754 if (!true)
755 {
756 }
757 int num = Math.Min(0, 0);
758 int num2 = Math.Min(int.MinValue, 0);
759 bool mapFullscreen = Main.mapFullscreen;
760 if (-2147483648 == 0)
761 {
762 }
763 if (-2147483648 == 0)
764 {
765 }
766 int screenWidth = Main.screenWidth;
767 int screenHeight = Main.screenHeight;
768 }
769
770 // Token: 0x06003E4C RID: 15948 RVA: 0x0023CDB4 File Offset: 0x0023AFB4
771 private void DrawBound(SpriteBatch sb, Rectangle r, int mode)
772 {
773 if (!true)
774 {
775 }
776 }
777
778 // Token: 0x06003E4D RID: 15949 RVA: 0x0023CDCC File Offset: 0x0023AFCC
780 {
781 }
782
783 // Token: 0x04007D10 RID: 32016
784 public int currentAim;
785
786 // Token: 0x04007D11 RID: 32017
787 private bool dragging;
788
789 // Token: 0x04007D12 RID: 32018
790 private int caughtEdge;
791
792 // Token: 0x04007D13 RID: 32019
793 private bool inMap;
794 }
795
796 // Token: 0x0200076C RID: 1900
798 {
799 // Token: 0x06003E4E RID: 15950 RVA: 0x0023CDE0 File Offset: 0x0023AFE0
801 {
802 /*
803An exception occurred when decompiling this method (06003E4E)
804
805ICSharpCode.Decompiler.DecompilerException: Error decompiling Microsoft.Xna.Framework.Rectangle Terraria.Graphics.Capture.CaptureInterface/ModeChangeSettings::GetRect()
806
807 ---> System.Exception: Basic block has to end with unconditional control flow.
808{
809 IL_0016:
810 brtrue(IL_0000, ldloc:int32[exp:bool](var_0_01))
811}
812
813 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
814 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
815 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
816 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
817 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
818 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
819 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
820 --- End of inner exception stack trace ---
821 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
822 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
823*/;
824 }
825
826 // Token: 0x06003E4F RID: 15951 RVA: 0x0023CE08 File Offset: 0x0023B008
827 private void ButtonDraw(int button, string key, string value)
828 {
829 }
830
831 // Token: 0x06003E50 RID: 15952 RVA: 0x0023CE2C File Offset: 0x0023B02C
832 private void PressButton(int button)
833 {
834 }
835
836 // Token: 0x06003E51 RID: 15953 RVA: 0x0023CE5C File Offset: 0x0023B05C
838 {
839 int num = 1;
840 if (num == 0)
841 {
842 }
843 bool mouseLeft = Main.mouseLeft;
844 if (num == 0)
845 {
846 }
847 bool mouseLeftRelease = Main.mouseLeftRelease;
848 if (num == 0)
849 {
850 }
851 if (num == 0)
852 {
853 }
854 string text;
855 string textValue = Language.GetTextValue("CaptureBiomeChoice." + text);
856 }
857
858 // Token: 0x06003E52 RID: 15954 RVA: 0x0023CF1C File Offset: 0x0023B11C
860 {
861 }
862
863 // Token: 0x06003E53 RID: 15955 RVA: 0x0023CF2C File Offset: 0x0023B12C
864 public override void Update()
865 {
866 bool selected = this.Selected;
867 if (selected)
868 {
869 if (!selected)
870 {
871 }
872 if (!selected)
873 {
875 int mouseX = Main.mouseX;
876 int mouseY = Main.mouseY;
878 this.inUI = false;
879 return;
880 }
881 }
882 }
883
884 // Token: 0x06003E54 RID: 15956 RVA: 0x0023CFA8 File Offset: 0x0023B1A8
885 public override void Draw(SpriteBatch sb)
886 {
887 int num = 1;
888 if (num != 0)
889 {
890 if (num == 0)
891 {
892 }
893 if (!true)
894 {
895 }
896 int num2 = 1;
897 if (num2 == 0)
898 {
899 }
901 if (num2 == 0)
902 {
903 }
904 if (!true)
905 {
906 }
907 int num3 = 1;
909 if (num3 == 0)
910 {
911 }
912 if ("" == null)
913 {
914 }
915 return;
916 }
917 }
918
919 // Token: 0x06003E55 RID: 15957 RVA: 0x0023D058 File Offset: 0x0023B258
920 public override void ToggleActive(bool tickedOn)
921 {
922 }
923
924 // Token: 0x06003E56 RID: 15958 RVA: 0x0023D068 File Offset: 0x0023B268
925 public override bool UsingMap()
926 {
927 return this.inUI;
928 }
929
930 // Token: 0x06003E57 RID: 15959 RVA: 0x0023D07C File Offset: 0x0023B27C
932 {
933 }
934
935 // Token: 0x04007D14 RID: 32020
936 private const int ButtonsCount = 7;
937
938 // Token: 0x04007D15 RID: 32021
939 private int hoveredButton;
940
941 // Token: 0x04007D16 RID: 32022
942 private bool inUI;
943 }
944 }
945}
class f__AnonymousType0<< Count > j__TPar
static byte Min(byte val1, byte val2)
Definition Math.cs:152
static TriggersPack Triggers
void DrawWaterChoices(SpriteBatch spritebatch, Point start, Point mouse)
void ButtonDraw(int button, string key, string value)
void DrawBound(SpriteBatch sb, Rectangle r, int mode)
Rectangle GetBound(Rectangle drawbox, int boundIndex)
static void StartCamera(CaptureSettings settings)
static bool GetMapCoords(int PinX, int PinY, int Goal, [Out] Point result)
static Dictionary< int, CaptureInterface.CaptureInterfaceMode > FillModes()
static Dictionary< int, CaptureInterface.CaptureInterfaceMode > Modes
static void PointWorldClamp(Point point, int fluff)
static string GetTextValue(string key)
Definition Language.cs:54
static Microsoft.Xna.Framework.Vector2 ViewSize
Definition Main.cs:3799
static Microsoft.Xna.Framework.Vector2 ViewPosition
Definition Main.cs:3771
static Microsoft.Xna.Framework.Graphics.Color cursorColor
Definition Main.cs:3245
static int myPlayer
Definition Main.cs:2337
static bool mouseRight
Definition Main.cs:685
static Microsoft.Xna.Framework.Vector2 screenPosition
Definition Main.cs:1973
static bool mouseLeftRelease
Definition Main.cs:2029
static int screenHeight
Definition Main.cs:2015
static Item mouseItem
Definition Main.cs:2155
static Microsoft.Xna.Framework.Vector3 rgbToHsl(Microsoft.Xna.Framework.Graphics.Color newColor)
Definition Main.cs:13832
static float cursorScale
Definition Main.cs:3287
static int screenWidth
Definition Main.cs:2001
static int mouseY
Definition Main.cs:601
static bool mapFullscreen
Definition Main.cs:1441
static int mouseX
Definition Main.cs:587
static bool mouseLeft
Definition Main.cs:671