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
DistortionRenderTargetManager.cs
Go to the documentation of this file.
1using System;
3using UnityEngine;
4
5// Token: 0x02000304 RID: 772
7{
8 // Token: 0x170001A3 RID: 419
9 // (get) Token: 0x060011E4 RID: 4580 RVA: 0x00057724 File Offset: 0x00055924
11 {
12 get
13 {
14 /*
15An exception occurred when decompiling this method (060011E4)
16
17ICSharpCode.Decompiler.DecompilerException: Error decompiling DistortionRenderTargetManager DistortionRenderTargetManager::get_Instance()
18
19 ---> System.Exception: Basic block has to end with unconditional control flow.
20{
21 Block_0:
22 stloc:DistortionRenderTargetManager(var_1_19, call:DistortionRenderTargetManager(GameObject::GetComponent, call:GameObject(GameObjectExtensions::FindInChildren, call:GameObject(GameObject::Find, ldstr:string("TerrariaGame")), ldstr:string("DistortionRenderTargetCamera"))))
23}
24
25 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
26 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
27 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
28 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
29 --- End of inner exception stack trace ---
30 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
31 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
32*/;
33 }
34 }
35
36 // Token: 0x060011E5 RID: 4581 RVA: 0x0005774C File Offset: 0x0005594C
53
54 // Token: 0x060011E6 RID: 4582 RVA: 0x000577B8 File Offset: 0x000559B8
55 public void ClearRenderTarget()
56 {
57 this.EndRenderTarget();
58 }
59
60 // Token: 0x060011E7 RID: 4583 RVA: 0x000577CC File Offset: 0x000559CC
77
78 // Token: 0x060011E8 RID: 4584 RVA: 0x00057828 File Offset: 0x00055A28
79 public void BeginRenderTarget(bool clear, float clearValue)
80 {
82 if (!true)
83 {
84 }
85 this.InitialiseCamera();
86 Camera camera = this.cameraObject;
88 }
89
90 // Token: 0x060011E9 RID: 4585 RVA: 0x0005786C File Offset: 0x00055A6C
91 public void EndRenderTarget()
92 {
93 if (!true)
94 {
95 }
97 this.cameraObject.Render();
98 }
99
100 // Token: 0x060011EA RID: 4586 RVA: 0x00057890 File Offset: 0x00055A90
102 {
103 }
104
105 // Token: 0x0400216A RID: 8554
107
108 // Token: 0x0400216B RID: 8555
110
111 // Token: 0x0400216C RID: 8556
113
114 // Token: 0x0400216D RID: 8557
116
117 // Token: 0x0400216E RID: 8558
119
120 // Token: 0x0400216F RID: 8559
122}
class f__AnonymousType0<< Count > j__TPar
Microsoft.Xna.Framework.Graphics.Texture2D GameDistortionTarget
static DistortionRenderTargetManager Instance
Microsoft.Xna.Framework.Graphics.Texture2D GameDistortionTargetSwap
static DistortionRenderTargetManager _instance
void BeginRenderTarget(bool clear, float clearValue)
GameObject gameObject
Definition Component.cs:31
Component GetComponent(Type type)
Definition GameObject.cs:27