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
StyleDimension.cs
Go to the documentation of this file.
1using System;
3
4namespace Terraria.UI
5{
6 // Token: 0x0200071B RID: 1819
7 public struct StyleDimension
8 {
9 // Token: 0x06003C2D RID: 15405 RVA: 0x00235B30 File Offset: 0x00233D30
10 public StyleDimension(float pixels, float precent)
11 {
12 }
13
14 // Token: 0x06003C2E RID: 15406 RVA: 0x00235B40 File Offset: 0x00233D40
15 public void Set(float pixels, float precent)
16 {
17 }
18
19 // Token: 0x06003C2F RID: 15407 RVA: 0x00235B50 File Offset: 0x00233D50
20 public float GetValue(float containerSize)
21 {
22 /*
23An exception occurred when decompiling this method (06003C2F)
24
25ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single Terraria.UI.StyleDimension::GetValue(System.Single)
26
27 ---> System.Exception: Basic block has to end with unconditional control flow.
28{
29 Block_0:
30 stloc:float32(var_0_06, ldfld:float32(StyleDimension::Pixels, ldloc:valuetype Terraria.UI.StyleDimension&(this)))
31 stloc:float32(var_1_0D, ldfld:float32(StyleDimension::Precent, ldloc:valuetype Terraria.UI.StyleDimension&(this)))
32}
33
34 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
35 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
36 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
37 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
38 --- End of inner exception stack trace ---
39 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
40 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
41*/;
42 }
43
44 // Token: 0x06003C30 RID: 15408 RVA: 0x000021DB File Offset: 0x000003DB
45 public static StyleDimension FromPixels(float pixels)
46 {
47 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
48 }
49
50 // Token: 0x06003C31 RID: 15409 RVA: 0x000021DB File Offset: 0x000003DB
51 public static StyleDimension FromPercent(float percent)
52 {
53 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
54 }
55
56 // Token: 0x06003C32 RID: 15410 RVA: 0x000021DB File Offset: 0x000003DB
58 {
59 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
60 }
61
62 // Token: 0x06003C33 RID: 15411 RVA: 0x00235B6C File Offset: 0x00233D6C
63 // Note: this type is marked as 'beforefieldinit'.
65 {
66 }
67
68 // Token: 0x04007B7C RID: 31612
69 public static StyleDimension Fill;
70
71 // Token: 0x04007B7D RID: 31613
72 public static StyleDimension Empty;
73
74 // Token: 0x04007B7E RID: 31614
75 public float Pixels;
76
77 // Token: 0x04007B7F RID: 31615
78 public float Precent;
79 }
80}
class f__AnonymousType0<< Count > j__TPar
static StyleDimension Fill
static StyleDimension FromPixels(float pixels)
void Set(float pixels, float precent)
static StyleDimension Empty
StyleDimension(float pixels, float precent)
static StyleDimension FromPercent(float percent)
float GetValue(float containerSize)
static StyleDimension FromPixelsAndPercent(float pixels, float percent)