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
Utility.cs
Go to the documentation of this file.
1using System;
3using UnityEngine;
5
6namespace InControl
7{
8 // Token: 0x02000070 RID: 112
9 public static class Utility
10 {
11 // Token: 0x06000517 RID: 1303 RVA: 0x000100E4 File Offset: 0x0000E2E4
12 public static void DrawCircleGizmo(Vector2 center, float radius)
13 {
14 if (!true)
15 {
16 }
17 }
18
19 // Token: 0x06000518 RID: 1304 RVA: 0x000100F8 File Offset: 0x0000E2F8
20 public static void DrawCircleGizmo(Vector2 center, float radius, Color color)
21 {
22 if (!true)
23 {
24 }
25 }
26
27 // Token: 0x06000519 RID: 1305 RVA: 0x0001010C File Offset: 0x0000E30C
28 public static void DrawOvalGizmo(Vector2 center, Vector2 size)
29 {
30 if (!true)
31 {
32 }
33 }
34
35 // Token: 0x0600051A RID: 1306 RVA: 0x00010120 File Offset: 0x0000E320
36 public static void DrawOvalGizmo(Vector2 center, Vector2 size, Color color)
37 {
38 if (!true)
39 {
40 }
41 }
42
43 // Token: 0x0600051B RID: 1307 RVA: 0x00010134 File Offset: 0x0000E334
44 public static void DrawRectGizmo(Rect rect)
45 {
46 float xMin = rect.xMin;
47 float yMin = rect.yMin;
48 float xMax = rect.xMax;
49 float yMin2 = rect.yMin;
50 float xMax2 = rect.xMax;
51 float yMax = rect.yMax;
52 float xMin2 = rect.xMin;
53 float yMax2 = rect.yMax;
54 }
55
56 // Token: 0x0600051C RID: 1308 RVA: 0x0001018C File Offset: 0x0000E38C
57 public static void DrawRectGizmo(Rect rect, Color color)
58 {
59 if (!true)
60 {
61 }
62 }
63
64 // Token: 0x0600051D RID: 1309 RVA: 0x000101A0 File Offset: 0x0000E3A0
65 public static void DrawRectGizmo(Vector2 center, Vector2 size)
66 {
67 }
68
69 // Token: 0x0600051E RID: 1310 RVA: 0x000101B8 File Offset: 0x0000E3B8
70 public static void DrawRectGizmo(Vector2 center, Vector2 size, Color color)
71 {
72 if (!true)
73 {
74 }
75 }
76
77 // Token: 0x0600051F RID: 1311 RVA: 0x000101CC File Offset: 0x0000E3CC
78 public static bool GameObjectIsCulledOnCurrentCamera(GameObject gameObject)
79 {
80 /*
81An exception occurred when decompiling this method (0600051F)
82
83ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean InControl.Utility::GameObjectIsCulledOnCurrentCamera(UnityEngine.GameObject)
84
85 ---> System.Exception: Basic block has to end with unconditional control flow.
86{
87 Block_0:
88 stloc:int32(var_1_0C, callgetter:int32(Camera::get_cullingMask, callgetter:Camera(Camera::get_current)))
89}
90
91 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
92 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
93 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
94 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
95 --- End of inner exception stack trace ---
96 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
97 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
98*/;
99 }
100
101 // Token: 0x06000520 RID: 1312 RVA: 0x000025E1 File Offset: 0x000007E1
103 {
104 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
105 }
106
107 // Token: 0x06000521 RID: 1313 RVA: 0x000025E1 File Offset: 0x000007E1
108 public static float ApplyDeadZone(float value, float lowerDeadZone, float upperDeadZone)
109 {
110 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
111 }
112
113 // Token: 0x06000522 RID: 1314 RVA: 0x000101E8 File Offset: 0x0000E3E8
114 public static float ApplySmoothing(float thisValue, float lastValue, float deltaTime, float sensitivity)
115 {
116 /*
117An exception occurred when decompiling this method (06000522)
118
119ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single InControl.Utility::ApplySmoothing(System.Single,System.Single,System.Single,System.Single)
120
121 ---> System.Exception: Basic block has to end with unconditional control flow.
122{
123 IL_0000:
124 brtrue(IL_0000, ldc.i4:bool(1))
125}
126
127 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
128 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
129 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
130 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
131 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
132 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
133 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
134 --- End of inner exception stack trace ---
135 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
136 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
137*/;
138 }
139
140 // Token: 0x06000523 RID: 1315 RVA: 0x000025E1 File Offset: 0x000007E1
141 public static float ApplySnapping(float value, float threshold)
142 {
143 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
144 }
145
146 // Token: 0x06000524 RID: 1316 RVA: 0x000101F8 File Offset: 0x0000E3F8
147 internal static bool TargetIsButton(InputControlType target)
148 {
149 }
150
151 // Token: 0x06000525 RID: 1317 RVA: 0x00010208 File Offset: 0x0000E408
152 internal static bool TargetIsStandard(InputControlType target)
153 {
154 }
155
156 // Token: 0x06000526 RID: 1318 RVA: 0x000025E1 File Offset: 0x000007E1
157 internal static bool TargetIsAlias(InputControlType target)
158 {
159 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
160 }
161
162 // Token: 0x06000527 RID: 1319 RVA: 0x000025E1 File Offset: 0x000007E1
163 public static string ReadFromFile(string path)
164 {
165 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
166 }
167
168 // Token: 0x06000528 RID: 1320 RVA: 0x00010218 File Offset: 0x0000E418
169 public static void WriteToFile(string path, string data)
170 {
171 }
172
173 // Token: 0x06000529 RID: 1321 RVA: 0x000025E1 File Offset: 0x000007E1
174 public static float Abs(float value)
175 {
176 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
177 }
178
179 // Token: 0x0600052A RID: 1322 RVA: 0x000025E1 File Offset: 0x000007E1
180 public static bool Approximately(float v1, float v2)
181 {
182 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
183 }
184
185 // Token: 0x0600052B RID: 1323 RVA: 0x00010228 File Offset: 0x0000E428
186 public static bool Approximately(Vector2 v1, Vector2 v2)
187 {
188 /*
189An exception occurred when decompiling this method (0600052B)
190
191ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean InControl.Utility::Approximately(UnityEngine.Vector2,UnityEngine.Vector2)
192
193 ---> System.Exception: Basic block has to end with unconditional control flow.
194{
195 IL_0000:
196 brtrue(IL_0000, ldc.i4:bool(1))
197}
198
199 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
200 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
201 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
202 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
203 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
204 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
205 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
206 --- End of inner exception stack trace ---
207 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
208 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
209*/;
210 }
211
212 // Token: 0x0600052C RID: 1324 RVA: 0x000025E1 File Offset: 0x000007E1
213 public static bool IsNotZero(float value)
214 {
215 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
216 }
217
218 // Token: 0x0600052D RID: 1325 RVA: 0x000025E1 File Offset: 0x000007E1
219 public static bool IsZero(float value)
220 {
221 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
222 }
223
224 // Token: 0x0600052E RID: 1326 RVA: 0x000025E1 File Offset: 0x000007E1
225 public static int Sign(float f)
226 {
227 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
228 }
229
230 // Token: 0x0600052F RID: 1327 RVA: 0x000025E1 File Offset: 0x000007E1
231 public static bool AbsoluteIsOverThreshold(float value, float threshold)
232 {
233 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
234 }
235
236 // Token: 0x06000530 RID: 1328 RVA: 0x000025E1 File Offset: 0x000007E1
237 public static float NormalizeAngle(float angle)
238 {
239 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
240 }
241
242 // Token: 0x06000531 RID: 1329 RVA: 0x00010238 File Offset: 0x0000E438
243 public static float VectorToAngle(Vector2 vector)
244 {
245 /*
246An exception occurred when decompiling this method (06000531)
247
248ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single InControl.Utility::VectorToAngle(UnityEngine.Vector2)
249
250 ---> System.Exception: Basic block has to end with unconditional control flow.
251{
252 IL_0000:
253 brtrue(IL_0000, ldc.i4:bool(1))
254}
255
256 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
257 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
258 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
259 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
260 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
261 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
262 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
263 --- End of inner exception stack trace ---
264 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
265 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
266*/;
267 }
268
269 // Token: 0x06000532 RID: 1330 RVA: 0x000025E1 File Offset: 0x000007E1
270 public static float Min(float v0, float v1)
271 {
272 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
273 }
274
275 // Token: 0x06000533 RID: 1331 RVA: 0x000025E1 File Offset: 0x000007E1
276 public static float Max(float v0, float v1)
277 {
278 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
279 }
280
281 // Token: 0x06000534 RID: 1332 RVA: 0x000025E1 File Offset: 0x000007E1
282 public static float Min(float v0, float v1, float v2, float v3)
283 {
284 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
285 }
286
287 // Token: 0x06000535 RID: 1333 RVA: 0x000025E1 File Offset: 0x000007E1
288 public static float Max(float v0, float v1, float v2, float v3)
289 {
290 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
291 }
292
293 // Token: 0x06000536 RID: 1334 RVA: 0x00010248 File Offset: 0x0000E448
294 internal static float ValueFromSides(float negativeSide, float positiveSide)
295 {
296 /*
297An exception occurred when decompiling this method (06000536)
298
299ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single InControl.Utility::ValueFromSides(System.Single,System.Single)
300
301 ---> System.Exception: Basic block has to end with unconditional control flow.
302{
303 IL_0000:
304 brtrue(IL_0000, ldc.i4:bool(1))
305}
306
307 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
308 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
309 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
310 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
311 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
312 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
313 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
314 --- End of inner exception stack trace ---
315 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
316 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
317*/;
318 }
319
320 // Token: 0x06000537 RID: 1335 RVA: 0x00010258 File Offset: 0x0000E458
321 internal static float ValueFromSides(float negativeSide, float positiveSide, bool invertSides)
322 {
323 /*
324An exception occurred when decompiling this method (06000537)
325
326ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single InControl.Utility::ValueFromSides(System.Single,System.Single,System.Boolean)
327
328 ---> System.Exception: Basic block has to end with unconditional control flow.
329{
330 IL_0003:
331 stloc:float32(var_0_0A, call:float32(Utility::ValueFromSides, ldloc:float32(negativeSide), ldloc:float32(negativeSide)))
332}
333
334 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
335 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
336 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
337 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
338 --- End of inner exception stack trace ---
339 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
340 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
341*/;
342 }
343
344 // Token: 0x06000538 RID: 1336 RVA: 0x00010270 File Offset: 0x0000E470
345 public static void ArrayResize<T>(T[] array, int capacity)
346 {
348 }
349
350 // Token: 0x06000539 RID: 1337 RVA: 0x00010288 File Offset: 0x0000E488
351 public static void ArrayExpand<T>(T[] array, int capacity)
352 {
354 }
355
356 // Token: 0x0600053A RID: 1338 RVA: 0x0001029C File Offset: 0x0000E49C
357 public static void ArrayAppend<T>(T[] array, T item)
358 {
359 }
360
361 // Token: 0x0600053B RID: 1339 RVA: 0x000102AC File Offset: 0x0000E4AC
362 public static void ArrayAppend<T>(T[] array, T[] items)
363 {
364 }
365
366 // Token: 0x0600053C RID: 1340 RVA: 0x000102BC File Offset: 0x0000E4BC
367 public static int NextPowerOfTwo(int value)
368 {
369 }
370
371 // Token: 0x17000167 RID: 359
372 // (get) Token: 0x0600053D RID: 1341 RVA: 0x000102CC File Offset: 0x0000E4CC
373 internal static bool Is32Bit
374 {
375 get
376 {
377 /*
378An exception occurred when decompiling this method (0600053D)
379
380ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean InControl.Utility::get_Is32Bit()
381
382 ---> System.Exception: Basic block has to end with unconditional control flow.
383{
384 Block_0:
385 stloc:int32(var_1_07, callgetter:int32(native int::get_Size))
386}
387
388 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
389 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
390 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
391 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
392 --- End of inner exception stack trace ---
393 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
394 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
395*/;
396 }
397 }
398
399 // Token: 0x17000168 RID: 360
400 // (get) Token: 0x0600053E RID: 1342 RVA: 0x000102E0 File Offset: 0x0000E4E0
401 internal static bool Is64Bit
402 {
403 get
404 {
405 /*
406An exception occurred when decompiling this method (0600053E)
407
408ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean InControl.Utility::get_Is64Bit()
409
410 ---> System.Exception: Basic block has to end with unconditional control flow.
411{
412 Block_0:
413 stloc:int32(var_1_07, callgetter:int32(native int::get_Size))
414}
415
416 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
417 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
418 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
419 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
420 --- End of inner exception stack trace ---
421 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
422 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
423*/;
424 }
425 }
426
427 // Token: 0x0600053F RID: 1343 RVA: 0x000102F4 File Offset: 0x0000E4F4
428 public static string GetPlatformName(bool uppercase = true)
429 {
430 string operatingSystem = SystemInfo.operatingSystem;
431 string deviceModel = SystemInfo.deviceModel;
432 return (operatingSystem + " " + deviceModel).ToUpper();
433 }
434
435 // Token: 0x06000540 RID: 1344 RVA: 0x0001032C File Offset: 0x0000E52C
436 public static int GetSystemBuildNumber()
437 {
438 }
439
440 // Token: 0x06000541 RID: 1345 RVA: 0x0001033C File Offset: 0x0000E53C
441 public static void LoadScene(string sceneName)
442 {
443 if (!true)
444 {
445 }
447 }
448
449 // Token: 0x06000542 RID: 1346 RVA: 0x00010354 File Offset: 0x0000E554
450 internal static string PluginFileExtension()
451 {
452 return ".dll";
453 }
454
455 // Token: 0x06000543 RID: 1347 RVA: 0x00010368 File Offset: 0x0000E568
456 // Note: this type is marked as 'beforefieldinit'.
457 static Utility()
458 {
459 }
460
461 // Token: 0x040003FB RID: 1019
462 public const float Epsilon = 1E-07f;
463
464 // Token: 0x040003FC RID: 1020
466 }
467}
class f__AnonymousType0<< Count > j__TPar
static void WriteToFile(string path, string data)
Definition Utility.cs:169
static void ArrayResize< T >(T[] array, int capacity)
Definition Utility.cs:345
static int Sign(float f)
Definition Utility.cs:225
static bool Is32Bit
Definition Utility.cs:374
static float Min(float v0, float v1)
Definition Utility.cs:270
static bool IsZero(float value)
Definition Utility.cs:219
static void DrawRectGizmo(Rect rect, Color color)
Definition Utility.cs:57
static float ValueFromSides(float negativeSide, float positiveSide)
Definition Utility.cs:294
static int GetSystemBuildNumber()
Definition Utility.cs:436
static float NormalizeAngle(float angle)
Definition Utility.cs:237
static void DrawRectGizmo(Rect rect)
Definition Utility.cs:44
static bool TargetIsStandard(InputControlType target)
Definition Utility.cs:152
static string GetPlatformName(bool uppercase=true)
Definition Utility.cs:428
static float Max(float v0, float v1, float v2, float v3)
Definition Utility.cs:288
static readonly Vector2[] circleVertexList
Definition Utility.cs:465
static float ApplyDeadZone(float value, float lowerDeadZone, float upperDeadZone)
Definition Utility.cs:108
static Color MoveColorTowards(Color color0, Color color1, float maxDelta)
Definition Utility.cs:102
static void DrawOvalGizmo(Vector2 center, Vector2 size)
Definition Utility.cs:28
static int NextPowerOfTwo(int value)
Definition Utility.cs:367
static float ApplySmoothing(float thisValue, float lastValue, float deltaTime, float sensitivity)
Definition Utility.cs:114
static void DrawRectGizmo(Vector2 center, Vector2 size)
Definition Utility.cs:65
static void DrawOvalGizmo(Vector2 center, Vector2 size, Color color)
Definition Utility.cs:36
static float Abs(float value)
Definition Utility.cs:174
static void DrawRectGizmo(Vector2 center, Vector2 size, Color color)
Definition Utility.cs:70
static float Min(float v0, float v1, float v2, float v3)
Definition Utility.cs:282
static string ReadFromFile(string path)
Definition Utility.cs:163
static bool AbsoluteIsOverThreshold(float value, float threshold)
Definition Utility.cs:231
static bool Is64Bit
Definition Utility.cs:402
static Utility()
Definition Utility.cs:457
static float ApplySnapping(float value, float threshold)
Definition Utility.cs:141
static float VectorToAngle(Vector2 vector)
Definition Utility.cs:243
static bool TargetIsAlias(InputControlType target)
Definition Utility.cs:157
static void ArrayExpand< T >(T[] array, int capacity)
Definition Utility.cs:351
static bool TargetIsButton(InputControlType target)
Definition Utility.cs:147
static bool GameObjectIsCulledOnCurrentCamera(GameObject gameObject)
Definition Utility.cs:78
static void ArrayAppend< T >(T[] array, T item)
Definition Utility.cs:357
static void DrawCircleGizmo(Vector2 center, float radius, Color color)
Definition Utility.cs:20
const float Epsilon
Definition Utility.cs:462
static bool IsNotZero(float value)
Definition Utility.cs:213
static bool Approximately(Vector2 v1, Vector2 v2)
Definition Utility.cs:186
static float Max(float v0, float v1)
Definition Utility.cs:276
static string PluginFileExtension()
Definition Utility.cs:450
static bool Approximately(float v1, float v2)
Definition Utility.cs:180
static float ValueFromSides(float negativeSide, float positiveSide, bool invertSides)
Definition Utility.cs:321
static void LoadScene(string sceneName)
Definition Utility.cs:441
static void DrawCircleGizmo(Vector2 center, float radius)
Definition Utility.cs:12
static void LoadScene(string sceneName)
static string deviceModel
Definition SystemInfo.cs:49
static string operatingSystem
Definition SystemInfo.cs:19