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
Bgr565.cs
Go to the documentation of this file.
1using System;
3
5{
6 // Token: 0x020003AF RID: 943
7 public struct Bgr565 : IPackedVector<ushort>, IPackedVector, IEquatable<Bgr565>
8 {
9 // Token: 0x06001956 RID: 6486 RVA: 0x0006B174 File Offset: 0x00069374
10 private static ushort Pack(float x, float y, float z)
11 {
12 /*
13An exception occurred when decompiling this method (06001956)
14
15ICSharpCode.Decompiler.DecompilerException: Error decompiling System.UInt16 Microsoft.Xna.Framework.Graphics.PackedVector.Bgr565::Pack(System.Single,System.Single,System.Single)
16
17 ---> System.Exception: Basic block has to end with unconditional control flow.
18{
19 IL_000E:
20 stloc:float32(var_3_18, call:float32(MathHelper::Clamp, ldloc:float32(y), ldloc:float32(y), ldloc:float32(z)))
21 stloc:float32(var_5_24, call:float32(MathHelper::Clamp, ldloc:float32(z), ldloc:float32(y), ldloc:float32(z)))
22}
23
24 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
25 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
26 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
27 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
28 --- End of inner exception stack trace ---
29 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
30 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
31*/;
32 }
33
34 // Token: 0x06001957 RID: 6487 RVA: 0x0006B1A8 File Offset: 0x000693A8
35 public Bgr565(float x, float y, float z)
36 {
37 ushort num = Bgr565.Pack(x, y, z);
39 }
40
41 // Token: 0x06001958 RID: 6488 RVA: 0x0006B1C8 File Offset: 0x000693C8
42 public Bgr565(Vector3 vector)
43 {
44 ushort num;
46 }
47
48 // Token: 0x1700035F RID: 863
49 // (get) Token: 0x06001959 RID: 6489 RVA: 0x000021DB File Offset: 0x000003DB
50 // (set) Token: 0x0600195A RID: 6490 RVA: 0x0006B1DC File Offset: 0x000693DC
51 [CLSCompliant(false)]
52 public ushort PackedValue
53 {
54 get
55 {
56 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
57 }
58 set
59 {
61 }
62 }
63
64 // Token: 0x0600195B RID: 6491 RVA: 0x000021DB File Offset: 0x000003DB
66 {
67 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
68 }
69
70 // Token: 0x0600195C RID: 6492 RVA: 0x0006B1F0 File Offset: 0x000693F0
72 {
73 this._packedValue = 32640;
74 }
75
76 // Token: 0x0600195D RID: 6493 RVA: 0x0006B208 File Offset: 0x00069408
78 {
79 Vector3 vector = this.ToVector3();
81 return vector2;
82 }
83
84 // Token: 0x0600195E RID: 6494 RVA: 0x0006B220 File Offset: 0x00069420
85 public override bool Equals(object obj)
86 {
87 if (obj != null)
88 {
89 return;
90 }
91 }
92
93 // Token: 0x0600195F RID: 6495 RVA: 0x000021DB File Offset: 0x000003DB
94 public bool Equals(Bgr565 other)
95 {
96 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
97 }
98
99 // Token: 0x06001960 RID: 6496 RVA: 0x0006B234 File Offset: 0x00069434
100 public override string ToString()
101 {
102 return this.ToVector3().ToString();
103 }
104
105 // Token: 0x06001961 RID: 6497 RVA: 0x0006B24C File Offset: 0x0006944C
106 public override int GetHashCode()
107 {
108 int num;
109 return num;
110 }
111
112 // Token: 0x06001962 RID: 6498 RVA: 0x000021DB File Offset: 0x000003DB
113 public static bool operator ==(Bgr565 lhs, Bgr565 rhs)
114 {
115 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
116 }
117
118 // Token: 0x06001963 RID: 6499 RVA: 0x000021DB File Offset: 0x000003DB
119 public static bool operator !=(Bgr565 lhs, Bgr565 rhs)
120 {
121 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
122 }
123
124 // Token: 0x0400279A RID: 10138
125 private ushort _packedValue;
126 }
127}
class f__AnonymousType0<< Count > j__TPar
static bool operator==(Bgr565 lhs, Bgr565 rhs)
Definition Bgr565.cs:113
static bool operator!=(Bgr565 lhs, Bgr565 rhs)
Definition Bgr565.cs:119
static ushort Pack(float x, float y, float z)
Definition Bgr565.cs:10
override string ToString()
Definition Vector3.cs:670