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
ArmorShaderDataSet.cs
Go to the documentation of this file.
1using System;
7
9{
10 // Token: 0x02000746 RID: 1862
11 public class ArmorShaderDataSet
12 {
13 // Token: 0x06003D5A RID: 15706 RVA: 0x000021DB File Offset: 0x000003DB
15 {
16 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
17 }
18
19 // Token: 0x06003D5B RID: 15707 RVA: 0x00239000 File Offset: 0x00237200
20 public void Apply(int shaderId, Entity entity, [Optional] DrawData? drawData)
21 {
23 EffectTechnique <CurrentTechnique>k__BackingField = Main.pixelShader.<CurrentTechnique>k__BackingField;
24 long num = 0L;
25 EffectPass effectPass = <CurrentTechnique>k__BackingField.<Passes>k__BackingField[(int)num];
26 }
27
28 // Token: 0x06003D5C RID: 15708 RVA: 0x0023903C File Offset: 0x0023723C
29 public void ApplySecondary(int shaderId, Entity entity, [Optional] DrawData? drawData)
30 {
32 EffectTechnique <CurrentTechnique>k__BackingField = Main.pixelShader.<CurrentTechnique>k__BackingField;
33 long num = 0L;
34 EffectPass effectPass = <CurrentTechnique>k__BackingField.<Passes>k__BackingField[(int)num];
35 }
36
37 // Token: 0x06003D5D RID: 15709 RVA: 0x00239078 File Offset: 0x00237278
39 {
40 /*
41An exception occurred when decompiling this method (06003D5D)
42
43ICSharpCode.Decompiler.DecompilerException: Error decompiling Terraria.Graphics.Shaders.ArmorShaderData Terraria.Graphics.Shaders.ArmorShaderDataSet::GetShaderFromItemId(System.Int32)
44
45 ---> System.Exception: Basic block has to end with unconditional control flow.
46{
47 Block_0:
48 stloc:class [mscorlib]System.Collections.Generic.Dictionary`2<int32, int32>(var_0_06, ldfld:class [mscorlib]System.Collections.Generic.Dictionary`2<int32, int32>(ArmorShaderDataSet::_shaderLookupDictionary, ldloc:ArmorShaderDataSet(this)))
49 stloc:class [mscorlib]System.Collections.Generic.List`1<class Terraria.Graphics.Shaders.ArmorShaderData>(var_1_0D, ldfld:class [mscorlib]System.Collections.Generic.List`1<class Terraria.Graphics.Shaders.ArmorShaderData>(ArmorShaderDataSet::_shaderData, ldloc:ArmorShaderDataSet(this)))
50 stloc:class [mscorlib]System.Collections.Generic.Dictionary`2<int32, int32>(var_2_14, ldfld:class [mscorlib]System.Collections.Generic.Dictionary`2<int32, int32>(ArmorShaderDataSet::_shaderLookupDictionary, ldloc:ArmorShaderDataSet(this)))
51}
52
53 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
54 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
55 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
56 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
57 --- End of inner exception stack trace ---
58 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
59 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
60*/;
61 }
62
63 // Token: 0x06003D5E RID: 15710 RVA: 0x0023909C File Offset: 0x0023729C
64 public int GetShaderIdFromItemId(int type)
65 {
66 /*
67An exception occurred when decompiling this method (06003D5E)
68
69ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 Terraria.Graphics.Shaders.ArmorShaderDataSet::GetShaderIdFromItemId(System.Int32)
70
71 ---> System.Exception: Basic block has to end with unconditional control flow.
72{
73 Block_0:
74 stloc:class [mscorlib]System.Collections.Generic.Dictionary`2<int32, int32>(var_0_06, ldfld:class [mscorlib]System.Collections.Generic.Dictionary`2<int32, int32>(ArmorShaderDataSet::_shaderLookupDictionary, ldloc:ArmorShaderDataSet(this)))
75 stloc:class [mscorlib]System.Collections.Generic.Dictionary`2<int32, int32>(var_1_0D, ldfld:class [mscorlib]System.Collections.Generic.Dictionary`2<int32, int32>(ArmorShaderDataSet::_shaderLookupDictionary, ldloc:ArmorShaderDataSet(this)))
76}
77
78 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
79 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
80 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
81 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
82 --- End of inner exception stack trace ---
83 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
84 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
85*/;
86 }
87
88 // Token: 0x06003D5F RID: 15711 RVA: 0x002390B8 File Offset: 0x002372B8
90 {
91 if (id == 0)
92 {
93 return;
94 }
96 if (this._shaderData != null)
97 {
99 return;
100 }
101 }
102
103 // Token: 0x06003D60 RID: 15712 RVA: 0x002390E0 File Offset: 0x002372E0
105 {
106 }
107
108 // Token: 0x04007C40 RID: 31808
110
111 // Token: 0x04007C41 RID: 31809
113
114 // Token: 0x04007C42 RID: 31810
115 protected int _shaderDataCount;
116 }
117}
class f__AnonymousType0<< Count > j__TPar
ArmorShaderData GetSecondaryShader(int id, Player player)
void Apply(int shaderId, Entity entity, [Optional] DrawData? drawData)
void ApplySecondary(int shaderId, Entity entity, [Optional] DrawData? drawData)
static Effect pixelShader
Definition Main.cs:4317