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
NormalizedShort4.cs
Go to the documentation of this file.
1using System;
3
5{
6 // Token: 0x020003BD RID: 957
7 public struct NormalizedShort4 : IPackedVector<ulong>, IPackedVector, IEquatable<NormalizedShort4>
8 {
9 // Token: 0x060019E3 RID: 6627 RVA: 0x0006B99C File Offset: 0x00069B9C
11 {
12 ulong num;
14 }
15
16 // Token: 0x060019E4 RID: 6628 RVA: 0x0006B9B0 File Offset: 0x00069BB0
17 public NormalizedShort4(float x, float y, float z, float w)
18 {
19 ulong num = NormalizedShort4.PackInFour(x, y, z, w);
21 }
22
23 // Token: 0x060019E5 RID: 6629 RVA: 0x0006B9D0 File Offset: 0x00069BD0
25 {
26 bool flag;
27 return flag;
28 }
29
30 // Token: 0x060019E6 RID: 6630 RVA: 0x0006B9E0 File Offset: 0x00069BE0
32 {
33 bool flag;
34 return flag;
35 }
36
37 // Token: 0x1700036A RID: 874
38 // (get) Token: 0x060019E7 RID: 6631 RVA: 0x000021DB File Offset: 0x000003DB
39 // (set) Token: 0x060019E8 RID: 6632 RVA: 0x0006B9F0 File Offset: 0x00069BF0
40 [CLSCompliant(false)]
42 {
43 get
44 {
45 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
46 }
47 set
48 {
50 }
51 }
52
53 // Token: 0x060019E9 RID: 6633 RVA: 0x0006BA04 File Offset: 0x00069C04
54 public override bool Equals(object obj)
55 {
56 if (obj != null)
57 {
58 }
59 bool flag;
60 return flag;
61 }
62
63 // Token: 0x060019EA RID: 6634 RVA: 0x0006BA18 File Offset: 0x00069C18
65 {
66 bool flag;
67 return flag;
68 }
69
70 // Token: 0x060019EB RID: 6635 RVA: 0x0006BA28 File Offset: 0x00069C28
71 public override int GetHashCode()
72 {
73 int num;
74 return num;
75 }
76
77 // Token: 0x060019EC RID: 6636 RVA: 0x0006BA38 File Offset: 0x00069C38
78 public override string ToString()
79 {
80 string text;
81 return text;
82 }
83
84 // Token: 0x060019ED RID: 6637 RVA: 0x0006BA48 File Offset: 0x00069C48
85 private static ulong PackInFour(float vectorX, float vectorY, float vectorZ, float vectorW)
86 {
87 /*
88An exception occurred when decompiling this method (060019ED)
89
90ICSharpCode.Decompiler.DecompilerException: Error decompiling System.UInt64 Microsoft.Xna.Framework.Graphics.PackedVector.NormalizedShort4::PackInFour(System.Single,System.Single,System.Single,System.Single)
91
92 ---> System.Exception: Basic block has to end with unconditional control flow.
93{
94 Block_0:
95 stloc:float32(var_1_0A, call:float32(MathHelper::Clamp, ldloc:float32(vectorX), ldloc:float32(vectorX), ldloc:float32(vectorZ)))
96 stloc:float32(var_3_15, call:float32(MathHelper::Clamp, ldloc:float32(var_1_0A), ldloc:float32(vectorX), ldloc:float32(vectorZ)))
97 stloc:float32(var_5_21, call:float32(MathHelper::Clamp, ldloc:float32(vectorY), ldloc:float32(vectorX), ldloc:float32(vectorZ)))
98 stloc:float32(var_7_2E, call:float32(MathHelper::Clamp, ldloc:float32(vectorZ), ldloc:float32(vectorX), ldloc:float32(vectorZ)))
99}
100
101 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
102 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
103 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
104 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
105 --- End of inner exception stack trace ---
106 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
107 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
108*/;
109 }
110
111 // Token: 0x060019EE RID: 6638 RVA: 0x0006BA84 File Offset: 0x00069C84
113 {
114 ulong num;
115 this.short4Packed = num;
116 }
117
118 // Token: 0x060019EF RID: 6639 RVA: 0x000021DB File Offset: 0x000003DB
120 {
121 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
122 }
123
124 // Token: 0x040027A7 RID: 10151
126 }
127}
class f__AnonymousType0<< Count > j__TPar
static ulong PackInFour(float vectorX, float vectorY, float vectorZ, float vectorW)
static bool operator==(NormalizedShort4 a, NormalizedShort4 b)
static bool operator!=(NormalizedShort4 a, NormalizedShort4 b)