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
Rgba1010102.cs
Go to the documentation of this file.
1using System;
3
5{
6 // Token: 0x020003BF RID: 959
7 public struct Rgba1010102 : IPackedVector<uint>, IPackedVector, IEquatable<Rgba1010102>
8 {
9 // Token: 0x1700036C RID: 876
10 // (get) Token: 0x060019FE RID: 6654 RVA: 0x000021DB File Offset: 0x000003DB
11 // (set) Token: 0x060019FF RID: 6655 RVA: 0x0006BB58 File Offset: 0x00069D58
12 [CLSCompliant(false)]
13 public uint PackedValue
14 {
15 get
16 {
17 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
18 }
19 set
20 {
22 }
23 }
24
25 // Token: 0x06001A00 RID: 6656 RVA: 0x0006BB6C File Offset: 0x00069D6C
26 public Rgba1010102(float x, float y, float z, float w)
27 {
28 uint num = Rgba1010102.Pack(x, y, z, w);
29 this.packedValue = num;
30 }
31
32 // Token: 0x06001A01 RID: 6657 RVA: 0x0006BB8C File Offset: 0x00069D8C
33 public Rgba1010102(Vector4 vector)
34 {
35 uint num;
36 this.packedValue = num;
37 }
38
39 // Token: 0x06001A02 RID: 6658 RVA: 0x000021DB File Offset: 0x000003DB
41 {
42 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
43 }
44
45 // Token: 0x06001A03 RID: 6659 RVA: 0x0006BBA0 File Offset: 0x00069DA0
47 {
48 uint num;
49 this.packedValue = num;
50 }
51
52 // Token: 0x06001A04 RID: 6660 RVA: 0x0006BBB4 File Offset: 0x00069DB4
53 public override bool Equals(object obj)
54 {
55 if (obj != null)
56 {
57 return;
58 }
59 }
60
61 // Token: 0x06001A05 RID: 6661 RVA: 0x000021DB File Offset: 0x000003DB
63 {
64 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
65 }
66
67 // Token: 0x06001A06 RID: 6662 RVA: 0x0006BBC8 File Offset: 0x00069DC8
68 public override string ToString()
69 {
70 return this.ToVector4().ToString();
71 }
72
73 // Token: 0x06001A07 RID: 6663 RVA: 0x0006BBE0 File Offset: 0x00069DE0
74 public override int GetHashCode()
75 {
76 int num;
77 return num;
78 }
79
80 // Token: 0x06001A08 RID: 6664 RVA: 0x000021DB File Offset: 0x000003DB
82 {
83 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
84 }
85
86 // Token: 0x06001A09 RID: 6665 RVA: 0x000021DB File Offset: 0x000003DB
88 {
89 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
90 }
91
92 // Token: 0x06001A0A RID: 6666 RVA: 0x0006BBF0 File Offset: 0x00069DF0
93 private static uint Pack(float x, float y, float z, float w)
94 {
95 /*
96An exception occurred when decompiling this method (06001A0A)
97
98ICSharpCode.Decompiler.DecompilerException: Error decompiling System.UInt32 Microsoft.Xna.Framework.Graphics.PackedVector.Rgba1010102::Pack(System.Single,System.Single,System.Single,System.Single)
99
100 ---> System.Exception: Basic block has to end with unconditional control flow.
101{
102 IL_000E:
103 stloc:float32(var_3_18, call:float32(MathHelper::Clamp, ldloc:float32(y), ldloc:float32(y), ldloc:float32(z)))
104 stloc:float32(var_5_24, call:float32(MathHelper::Clamp, ldloc:float32(z), ldloc:float32(y), ldloc:float32(z)))
105 stloc:float32(var_7_31, call:float32(MathHelper::Clamp, ldloc:float32(z), ldloc:float32(y), ldloc:float32(z)))
106}
107
108 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
109 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
110 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
111 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
112 --- End of inner exception stack trace ---
113 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
114 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
115*/;
116 }
117
118 // Token: 0x040027A9 RID: 10153
119 private uint packedValue;
120 }
121}
class f__AnonymousType0<< Count > j__TPar
static bool operator==(Rgba1010102 lhs, Rgba1010102 rhs)
Rgba1010102(float x, float y, float z, float w)
static bool operator!=(Rgba1010102 lhs, Rgba1010102 rhs)
static uint Pack(float x, float y, float z, float w)
override string ToString()
Definition Vector4.cs:706