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
ParticlePool.cs
Go to the documentation of this file.
1using System;
4
6{
7 // Token: 0x02000750 RID: 1872
8 public class ParticlePool<T> where T : IPooledParticle
9 {
10 // Token: 0x06003DB0 RID: 15792 RVA: 0x00239E04 File Offset: 0x00238004
12 {
13 }
14
15 // Token: 0x06003DB1 RID: 15793 RVA: 0x00239E14 File Offset: 0x00238014
21
22 // Token: 0x06003DB2 RID: 15794 RVA: 0x00239E38 File Offset: 0x00238038
23 public T RequestParticle()
24 {
25 /*
26An exception occurred when decompiling this method (06003DB2)
27
28ICSharpCode.Decompiler.DecompilerException: Error decompiling T Terraria.Graphics.Renderers.ParticlePool`1::RequestParticle()
29
30 ---> System.Exception: Basic block has to end with unconditional control flow.
31{
32 Block_0:
33 stloc:List`1(var_0_06, ldfld:class [mscorlib]System.Collections.Generic.List`1<!T>[exp:List`1](ParticlePool`1::_particles, ldloc:ParticlePool`1(this)))
34 stloc:List`1(var_2_0F, ldfld:class [mscorlib]System.Collections.Generic.List`1<!T>[exp:List`1](ParticlePool`1::_particles, ldloc:ParticlePool`1(this)))
35 stloc:ParticleInstantiator(var_3_16, ldfld:class Terraria.Graphics.Renderers.ParticlePool`1/ParticleInstantiator<!T>[exp:ParticleInstantiator](ParticlePool`1::_instantiator, ldloc:ParticlePool`1(this)))
36 stloc:List`1(var_4_1D, ldfld:class [mscorlib]System.Collections.Generic.List`1<!T>[exp:List`1](ParticlePool`1::_particles, ldloc:ParticlePool`1(this)))
37}
38
39 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
40 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
41 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
42 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
43 --- End of inner exception stack trace ---
44 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
45 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
46*/;
47 }
48
49 // Token: 0x04007C6D RID: 31853
51
52 // Token: 0x04007C6E RID: 31854
54
55 // Token: 0x02000751 RID: 1873
57 {
58 // Token: 0x06003DB3 RID: 15795 RVA: 0x00239E64 File Offset: 0x00238064
59 public ParticleInstantiator(object @object, IntPtr method)
60 {
61 }
62
63 // Token: 0x06003DB4 RID: 15796 RVA: 0x000021DB File Offset: 0x000003DB
64 public T Invoke()
65 {
66 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
67 }
68
69 // Token: 0x06003DB5 RID: 15797 RVA: 0x000021DB File Offset: 0x000003DB
70 public IAsyncResult BeginInvoke(AsyncCallback callback, object @object)
71 {
72 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
73 }
74
75 // Token: 0x06003DB6 RID: 15798 RVA: 0x000021DB File Offset: 0x000003DB
76 public T EndInvoke(IAsyncResult result)
77 {
78 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
79 }
80 }
81 }
82}
class f__AnonymousType0<< Count > j__TPar
IAsyncResult BeginInvoke(AsyncCallback callback, object @object)
ParticlePool(int initialPoolSize, ParticlePool< T >.ParticleInstantiator instantiator)
ParticlePool< T >.ParticleInstantiator _instantiator