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
LockOnHelper.cs
Go to the documentation of this file.
1using System;
6
7namespace Terraria.GameInput
8{
9 // Token: 0x020006C3 RID: 1731
10 public class LockOnHelper
11 {
12 // Token: 0x170006DE RID: 1758
13 // (get) Token: 0x06003946 RID: 14662 RVA: 0x0022D134 File Offset: 0x0022B334
14 // (set) Token: 0x06003947 RID: 14663 RVA: 0x0022D150 File Offset: 0x0022B350
16 {
17 get
18 {
20 }
21 set
22 {
24 }
25 }
26
27 // Token: 0x170006DF RID: 1759
28 // (get) Token: 0x06003948 RID: 14664 RVA: 0x0022D16C File Offset: 0x0022B36C
29 // (set) Token: 0x06003949 RID: 14665 RVA: 0x0022D188 File Offset: 0x0022B388
30 private static bool _enabled
31 {
32 get
33 {
35 }
36 set
37 {
39 }
40 }
41
42 // Token: 0x170006E0 RID: 1760
43 // (get) Token: 0x0600394A RID: 14666 RVA: 0x0022D1A0 File Offset: 0x0022B3A0
44 // (set) Token: 0x0600394B RID: 14667 RVA: 0x0022D1BC File Offset: 0x0022B3BC
45 private static bool _canLockOn
46 {
47 get
48 {
50 }
51 set
52 {
54 }
55 }
56
57 // Token: 0x170006E1 RID: 1761
58 // (get) Token: 0x0600394C RID: 14668 RVA: 0x0022D1D4 File Offset: 0x0022B3D4
59 // (set) Token: 0x0600394D RID: 14669 RVA: 0x0022D1F0 File Offset: 0x0022B3F0
60 private static List<int> _targets
61 {
62 get
63 {
65 }
66 set
67 {
69 }
70 }
71
72 // Token: 0x170006E2 RID: 1762
73 // (get) Token: 0x0600394E RID: 14670 RVA: 0x0022D20C File Offset: 0x0022B40C
74 // (set) Token: 0x0600394F RID: 14671 RVA: 0x0022D228 File Offset: 0x0022B428
75 private static int _pickedTarget
76 {
77 get
78 {
80 }
81 set
82 {
84 }
85 }
86
87 // Token: 0x170006E3 RID: 1763
88 // (get) Token: 0x06003950 RID: 14672 RVA: 0x0022D244 File Offset: 0x0022B444
89 // (set) Token: 0x06003951 RID: 14673 RVA: 0x0022D260 File Offset: 0x0022B460
90 private static int _lifeTimeCounter
91 {
92 get
93 {
95 }
96 set
97 {
99 }
100 }
101
102 // Token: 0x170006E4 RID: 1764
103 // (get) Token: 0x06003952 RID: 14674 RVA: 0x0022D27C File Offset: 0x0022B47C
104 // (set) Token: 0x06003953 RID: 14675 RVA: 0x0022D298 File Offset: 0x0022B498
105 private static int _lifeTimeArrowDisplay
106 {
107 get
108 {
110 }
111 set
112 {
114 }
115 }
116
117 // Token: 0x170006E5 RID: 1765
118 // (get) Token: 0x06003954 RID: 14676 RVA: 0x0022D2B4 File Offset: 0x0022B4B4
119 // (set) Token: 0x06003955 RID: 14677 RVA: 0x0022D2D0 File Offset: 0x0022B4D0
120 private static int _threeDSTarget
121 {
122 get
123 {
125 }
126 set
127 {
129 }
130 }
131
132 // Token: 0x170006E6 RID: 1766
133 // (get) Token: 0x06003956 RID: 14678 RVA: 0x0022D2EC File Offset: 0x0022B4EC
134 // (set) Token: 0x06003957 RID: 14679 RVA: 0x0022D308 File Offset: 0x0022B508
135 private static int _targetClosestTarget
136 {
137 get
138 {
140 }
141 set
142 {
144 }
145 }
146
147 // Token: 0x170006E7 RID: 1767
148 // (get) Token: 0x06003958 RID: 14680 RVA: 0x0022D324 File Offset: 0x0022B524
149 // (set) Token: 0x06003959 RID: 14681 RVA: 0x0022D340 File Offset: 0x0022B540
150 public static bool ForceUsability
151 {
152 get
153 {
155 }
156 set
157 {
159 }
160 }
161
162 // Token: 0x170006E8 RID: 1768
163 // (get) Token: 0x0600395A RID: 14682 RVA: 0x0022D358 File Offset: 0x0022B558
164 // (set) Token: 0x0600395B RID: 14683 RVA: 0x0022D374 File Offset: 0x0022B574
165 public static bool LockOnAvailable
166 {
167 get
168 {
170 }
171 set
172 {
174 }
175 }
176
177 // Token: 0x170006E9 RID: 1769
178 // (get) Token: 0x0600395C RID: 14684 RVA: 0x0022D38C File Offset: 0x0022B58C
179 // (set) Token: 0x0600395D RID: 14685 RVA: 0x0022D3A8 File Offset: 0x0022B5A8
180 private static int _lastFrame
181 {
182 get
183 {
185 }
186 set
187 {
189 }
190 }
191
192 // Token: 0x170006EA RID: 1770
193 // (get) Token: 0x0600395E RID: 14686 RVA: 0x0022D3C4 File Offset: 0x0022B5C4
194 // (set) Token: 0x0600395F RID: 14687 RVA: 0x0022D3E0 File Offset: 0x0022B5E0
195 private static float[,] _drawProgress
196 {
197 get
198 {
200 }
201 set
202 {
204 }
205 }
206
207 // Token: 0x06003960 RID: 14688 RVA: 0x0022D3FC File Offset: 0x0022B5FC
208 public static void CycleUseModes()
209 {
210 if (!true)
211 {
212 }
214 if (useMode == LockOnHelper.LockOnMode.FocusTarget)
215 {
216 if (useMode == LockOnHelper.LockOnMode.FocusTarget)
217 {
218 }
219 return;
220 }
221 }
222
223 // Token: 0x170006EB RID: 1771
224 // (get) Token: 0x06003961 RID: 14689 RVA: 0x0022D430 File Offset: 0x0022B630
225 public static NPC AimedTarget
226 {
227 get
228 {
229 /*
230An exception occurred when decompiling this method (06003961)
231
232ICSharpCode.Decompiler.DecompilerException: Error decompiling Terraria.NPC Terraria.GameInput.LockOnHelper::get_AimedTarget()
233
234 ---> System.Exception: Basic block has to end with unconditional control flow.
235{
236 IL_0024:
237 stloc:class [mscorlib]System.Collections.Generic.List`1<int32>(var_3_30, ldfld:class [mscorlib]System.Collections.Generic.List`1<int32>(LockOnHelperStaticData::_targets, callgetter:LockOnHelperStaticData(LockOnHelperStaticData::get_Instance)))
238 stloc:int32(var_5_3E, ldfld:int32(LockOnHelperStaticData::_pickedTarget, callgetter:LockOnHelperStaticData(LockOnHelperStaticData::get_Instance)))
239}
240
241 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
242 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
243 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
244 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
245 --- End of inner exception stack trace ---
246 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
247 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
248*/;
249 }
250 }
251
252 // Token: 0x170006EC RID: 1772
253 // (get) Token: 0x06003962 RID: 14690 RVA: 0x0022D480 File Offset: 0x0022B680
255 {
256 get
257 {
258 /*
259An exception occurred when decompiling this method (06003962)
260
261ICSharpCode.Decompiler.DecompilerException: Error decompiling Microsoft.Xna.Framework.Vector2 Terraria.GameInput.LockOnHelper::get_PredictedPosition()
262
263 ---> System.Exception: Basic block has to end with unconditional control flow.
264{
265 IL_0096:
266 stloc:int32(var_34_9D, ldfld:int32(int32::m_value, ldloc:int32[exp:int32&](var_33_90)))
267}
268
269 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
270 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
271 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
272 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
273 --- End of inner exception stack trace ---
274 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
275 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
276*/;
277 }
278 }
279
280 // Token: 0x06003963 RID: 14691 RVA: 0x0022D52C File Offset: 0x0022B72C
281 public static void Update()
282 {
283 int num = 1;
284 if (num == 0)
285 {
286 }
288 if (num == 0)
289 {
290 }
292 int lastFrame = instance2._lastFrame;
293 int lifeTimeCounter = instance2._lifeTimeCounter;
294 }
295
296 // Token: 0x06003964 RID: 14692 RVA: 0x0022D750 File Offset: 0x0022B950
297 public static bool CanUseLockonSystem()
298 {
299 return true;
300 }
301
302 // Token: 0x06003965 RID: 14693 RVA: 0x0022D760 File Offset: 0x0022B960
303 public static void SetUP()
304 {
305 if (!true)
306 {
307 }
309 if (canLockOn)
310 {
311 if (!canLockOn)
312 {
313 }
316 if (!canLockOn)
317 {
318 }
319 Vector2 screenPosition = Main.screenPosition;
320 if (!canLockOn)
321 {
322 }
323 Vector2 vector;
325 return;
326 }
327 }
328
329 // Token: 0x06003966 RID: 14694 RVA: 0x0022D7B0 File Offset: 0x0022B9B0
330 public static void SetDOWN()
331 {
332 if (!true)
333 {
334 }
336 if (canLockOn)
337 {
338 if (!canLockOn)
339 {
340 }
342 return;
343 }
344 }
345
346 // Token: 0x06003967 RID: 14695 RVA: 0x000021DB File Offset: 0x000003DB
347 private static bool ShouldLockOn(Player p)
348 {
349 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
350 }
351
352 // Token: 0x06003968 RID: 14696 RVA: 0x0022D7DC File Offset: 0x0022B9DC
360
361 // Token: 0x170006ED RID: 1773
362 // (get) Token: 0x06003969 RID: 14697 RVA: 0x0022D814 File Offset: 0x0022BA14
363 public static bool Enabled
364 {
365 get
366 {
367 if (!true)
368 {
369 }
371 }
372 }
373
374 // Token: 0x170006EE RID: 1774
375 // (get) Token: 0x0600396A RID: 14698 RVA: 0x0022D830 File Offset: 0x0022BA30
376 public static Vector2 MouseWorld
377 {
378 get
379 {
380 /*
381An exception occurred when decompiling this method (0600396A)
382
383ICSharpCode.Decompiler.DecompilerException: Error decompiling Microsoft.Xna.Framework.Vector2 Terraria.GameInput.LockOnHelper::get_MouseWorld()
384
385 ---> System.Exception: Basic block has to end with unconditional control flow.
386{
387 IL_0023:
388 stloc:int32(var_10_2E, callgetter:int32(Main::get_myPlayer))
389 stloc:Vector2(var_12_38, callgetter:Vector2(Main::get_screenPosition))
390 stloc:int32(var_14_42, callgetter:int32(Main::get_screenHeight))
391 stloc:int32(var_16_4C, callgetter:int32(Main::get_mouseY))
392}
393
394 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
395 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
396 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
397 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
398 --- End of inner exception stack trace ---
399 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
400 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
401*/;
402 }
403 }
404
405 // Token: 0x0600396B RID: 14699 RVA: 0x0022D88C File Offset: 0x0022BA8C
428
429 // Token: 0x0600396C RID: 14700 RVA: 0x0022D934 File Offset: 0x0022BB34
430 private static void HandlePressing()
431 {
432 if (!true)
433 {
434 }
437 bool enabled = instance._enabled;
438 }
439
440 // Token: 0x0600396D RID: 14701 RVA: 0x0022D994 File Offset: 0x0022BB94
459
460 // Token: 0x0600396E RID: 14702 RVA: 0x0022DA58 File Offset: 0x0022BC58
488
489 // Token: 0x0600396F RID: 14703 RVA: 0x0022DAFC File Offset: 0x0022BCFC
490 private static bool CanEnable()
491 {
492 /*
493An exception occurred when decompiling this method (0600396F)
494
495ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.GameInput.LockOnHelper::CanEnable()
496
497 ---> System.Exception: Basic block has to end with unconditional control flow.
498{
499 IL_0003:
500 stloc:int32(var_1_0A, callgetter:int32(Main::get_myPlayer))
501}
502
503 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
504 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
505 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
506 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
507 --- End of inner exception stack trace ---
508 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
509 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
510*/;
511 }
512
513 // Token: 0x06003970 RID: 14704 RVA: 0x0022DB14 File Offset: 0x0022BD14
542
543 // Token: 0x06003971 RID: 14705 RVA: 0x000021DB File Offset: 0x000003DB
544 private static void RefreshTargets(Vector2 position, float radius)
545 {
546 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
547 }
548
549 // Token: 0x06003972 RID: 14706 RVA: 0x0022DBE0 File Offset: 0x0022BDE0
550 private static void GetClosestTarget(Vector2 position)
551 {
552 int num = 1;
553 if (num == 0)
554 {
555 }
558 {
559 }
560 int myPlayer = Main.myPlayer;
561 int myPlayer2 = Main.myPlayer;
563 long num2 = 0L;
564 if (myPlayer2 == 0)
565 {
566 }
568 {
569 }
572 {
573 }
575 }
576
577 // Token: 0x06003973 RID: 14707 RVA: 0x0022DCC0 File Offset: 0x0022BEC0
578 private static bool ValidTarget(NPC n)
579 {
580 return true;
581 }
582
583 // Token: 0x06003974 RID: 14708 RVA: 0x0022DCD0 File Offset: 0x0022BED0
584 private static void SetLockPosition(Vector2 position)
585 {
586 if (!true)
587 {
588 }
591 if (32640 == 0)
592 {
593 }
594 Main.mouseX = 0;
596 Main.mouseY = 0;
597 }
598
599 // Token: 0x06003975 RID: 14709 RVA: 0x0022DD04 File Offset: 0x0022BF04
600 private static void ResetLockPosition()
601 {
602 if (!true)
603 {
604 }
608 }
609
610 // Token: 0x06003976 RID: 14710 RVA: 0x0022DD30 File Offset: 0x0022BF30
611 public static void Draw(SpriteBatch spriteBatch)
612 {
613 int num = 1;
614 if (num == 0)
615 {
616 }
617 bool gameMenu = Main.gameMenu;
618 if (num == 0)
619 {
620 }
621 if (num == 0)
622 {
623 }
624 int num2 = 220;
625 if (num2 == 0)
626 {
627 }
628 int myPlayer = Main.myPlayer;
629 if (num2 == 0)
630 {
631 }
636 }
637
638 // Token: 0x06003977 RID: 14711 RVA: 0x0022DEC4 File Offset: 0x0022C0C4
640 {
641 }
642
643 // Token: 0x06003978 RID: 14712 RVA: 0x0022DED8 File Offset: 0x0022C0D8
644 // Note: this type is marked as 'beforefieldinit'.
646 {
647 }
648
649 // Token: 0x040079D9 RID: 31193
650 private const float LOCKON_RANGE = 2000f;
651
652 // Token: 0x040079DA RID: 31194
653 private const int LOCKON_HOLD_LIFETIME = 40;
654
655 // Token: 0x040079DB RID: 31195
656 private static List<int> tempTargets;
657
658 // Token: 0x020006C4 RID: 1732
659 public enum LockOnMode
660 {
661 // Token: 0x040079DD RID: 31197
663 // Token: 0x040079DE RID: 31198
665 // Token: 0x040079DF RID: 31199
666 ThreeDS
667 }
668 }
669}
class f__AnonymousType0<< Count > j__TPar
static LockOnHelperStaticData Instance
LockOnHelper.LockOnMode UseMode
static void GetClosestTarget(Vector2 position)
static void RefreshTargets(Vector2 position, float radius)
static void SetActive(bool on)
static void Draw(SpriteBatch spriteBatch)
static void FindMostViableTarget(LockOnHelper.LockOnMode context, int targetVar)
static bool ShouldLockOn(Player p)
static LockOnHelper.LockOnMode UseMode
static void Toggle(bool forceOff=false)
static void SetLockPosition(Vector2 position)
static int myPlayer
Definition Main.cs:2337
static Microsoft.Xna.Framework.Vector2 screenPosition
Definition Main.cs:1973
static bool gameMenu
Definition Main.cs:2673