Files
NobetaSource/Cpp2IL/Assembly-CSharp/Obi/ObiParticleRenderer.cs
2023-09-06 22:09:22 +02:00

224 lines
8.7 KiB
C#

using System;
using System.Collections.Generic;
using Cpp2IlInjected;
using UnityEngine;
namespace Obi
{
// Token: 0x02000491 RID: 1169
[Token(Token = "0x2000491")]
[ExecuteInEditMode]
[RequireComponent(typeof(ObiActor))]
public class ObiParticleRenderer : MonoBehaviour
{
// Token: 0x1700029F RID: 671
// (get) Token: 0x0600294A RID: 10570 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x1700029F")]
public IEnumerable<Mesh> ParticleMeshes
{
[Token(Token = "0x600294A")]
[Address(RVA = "0x3540B0", Offset = "0x3528B0", VA = "0x1803540B0")]
get
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
}
// Token: 0x170002A0 RID: 672
// (get) Token: 0x0600294B RID: 10571 RVA: 0x0005A94C File Offset: 0x00058B4C
[Token(Token = "0x170002A0")]
public Material ParticleMaterial
{
[Token(Token = "0x600294B")]
[Address(RVA = "0x354080", Offset = "0x352880", VA = "0x180354080")]
get
{
return this.material;
}
}
// Token: 0x0600294C RID: 10572 RVA: 0x0005A960 File Offset: 0x00058B60
[Token(Token = "0x600294C")]
[Address(RVA = "0xE73A10", Offset = "0xE72210", VA = "0x180E73A10")]
public void Awake()
{
/*
An exception occurred when decompiling this method (0600294C)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void Obi.ObiParticleRenderer::Awake()
---> System.Exception: Basic block has to end with unconditional control flow.
{; Block_0:; stloc:ObiActor(var_0_06, call:ObiActor(Component::GetComponent, ldloc:ObiParticleRenderer[exp:Component](this))); stfld:ObiActor(ObiParticleRenderer::actor, ldloc:ObiParticleRenderer(this), ldloc:ObiActor(var_0_06)); };
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1810
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 344
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
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
--- End of inner exception stack trace ---
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
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 1618
*/;
}
// Token: 0x0600294D RID: 10573 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x600294D")]
[Address(RVA = "0xE73F30", Offset = "0xE72730", VA = "0x180E73F30")]
public void OnEnable()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x0600294E RID: 10574 RVA: 0x0005A97C File Offset: 0x00058B7C
[Token(Token = "0x600294E")]
[Address(RVA = "0xE73DA0", Offset = "0xE725A0", VA = "0x180E73DA0")]
public void OnDisable()
{
ObiActor obiActor = this.actor;
int num = 0;
if (obiActor != num)
{
ObiSolver solver = this.actor.solver;
int num2 = 0;
if (solver != num2)
{
ObiActor obiActor2 = this.actor;
ObiSolver solver2 = obiActor2.solver;
int renderablePositionsClients = solver2.renderablePositionsClients;
if (renderablePositionsClients > 0)
{
int num3 = renderablePositionsClients - 1;
solver2.renderablePositionsClients = num3;
ObiActor obiActor3 = this.actor;
}
ObiSolver solver3 = obiActor2.solver;
EventHandler eventHandler = new EventHandler(this.Actor_solver_OnFrameEnd);
solver3.OnFrameEnd -= eventHandler;
}
}
this.ClearMeshes();
UnityEngine.Object.DestroyImmediate(this.material);
}
// Token: 0x0600294F RID: 10575 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x600294F")]
[Address(RVA = "0xE73060", Offset = "0xE71860", VA = "0x180E73060")]
private void Actor_solver_OnFrameEnd(object sender, EventArgs e)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06002950 RID: 10576 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6002950")]
[Address(RVA = "0xE73BB0", Offset = "0xE723B0", VA = "0x180E73BB0")]
private void DrawParticles()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06002951 RID: 10577 RVA: 0x0005AA24 File Offset: 0x00058C24
[Token(Token = "0x6002951")]
[Address(RVA = "0xE73990", Offset = "0xE72190", VA = "0x180E73990")]
private void Apply(Mesh mesh)
{
mesh.Clear();
List<Vector3> list = this.vertices;
mesh.SetVertices(list);
List<Vector3> list2 = this.normals;
mesh.SetNormals(list2);
List<Color> list3 = this.colors;
mesh.SetColors(list3);
List<int> list4 = this.triangles;
int num = 0;
mesh.SetTriangles(list4, num, true);
}
// Token: 0x06002952 RID: 10578 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6002952")]
[Address(RVA = "0xE73A60", Offset = "0xE72260", VA = "0x180E73A60")]
private void ClearMeshes()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06002953 RID: 10579 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6002953")]
[Address(RVA = "0xE73530", Offset = "0xE71D30", VA = "0x180E73530")]
private void AddParticle(int i, Vector3 position, Color color, float radius)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06002954 RID: 10580 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6002954")]
[Address(RVA = "0xE74140", Offset = "0xE72940", VA = "0x180E74140")]
public ObiParticleRenderer()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x040032A7 RID: 12967
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x40032A7")]
public bool render;
// Token: 0x040032A8 RID: 12968
[FieldOffset(Offset = "0x1C")]
[Token(Token = "0x40032A8")]
public Color particleColor;
// Token: 0x040032A9 RID: 12969
[FieldOffset(Offset = "0x2C")]
[Token(Token = "0x40032A9")]
public float radiusScale;
// Token: 0x040032AA RID: 12970
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x40032AA")]
private ObiActor actor;
// Token: 0x040032AB RID: 12971
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x40032AB")]
private List<Mesh> meshes;
// Token: 0x040032AC RID: 12972
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x40032AC")]
private Material material;
// Token: 0x040032AD RID: 12973
[FieldOffset(Offset = "0x48")]
[Token(Token = "0x40032AD")]
private List<Vector3> vertices;
// Token: 0x040032AE RID: 12974
[FieldOffset(Offset = "0x50")]
[Token(Token = "0x40032AE")]
private List<Vector3> normals;
// Token: 0x040032AF RID: 12975
[FieldOffset(Offset = "0x58")]
[Token(Token = "0x40032AF")]
private List<Color> colors;
// Token: 0x040032B0 RID: 12976
[FieldOffset(Offset = "0x60")]
[Token(Token = "0x40032B0")]
private List<int> triangles;
// Token: 0x040032B1 RID: 12977
[FieldOffset(Offset = "0x68")]
[Token(Token = "0x40032B1")]
private int particlesPerDrawcall;
// Token: 0x040032B2 RID: 12978
[FieldOffset(Offset = "0x6C")]
[Token(Token = "0x40032B2")]
private int drawcallCount;
// Token: 0x040032B3 RID: 12979
[FieldOffset(Offset = "0x70")]
[Token(Token = "0x40032B3")]
private Vector3[] particleOffsets;
}
}