131 lines
5.6 KiB
C#
131 lines
5.6 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Runtime.CompilerServices;
|
|
using Cpp2IlInjected;
|
|
using Obi;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x02000365 RID: 869
|
|
[Token(Token = "0x2000365")]
|
|
[RequireComponent(typeof(ObiCloth))]
|
|
public class RuntimeClothGenerator : MonoBehaviour
|
|
{
|
|
// Token: 0x1400000B RID: 11
|
|
// (add) Token: 0x0600214D RID: 8525 RVA: 0x0004F3D4 File Offset: 0x0004D5D4
|
|
// (remove) Token: 0x0600214E RID: 8526 RVA: 0x0004F404 File Offset: 0x0004D604
|
|
[Token(Token = "0x1400000B")]
|
|
public event EventHandler Done
|
|
{
|
|
[Token(Token = "0x600214D")]
|
|
[Address(RVA = "0x472180", Offset = "0x470980", VA = "0x180472180")]
|
|
[CompilerGenerated]
|
|
add
|
|
{
|
|
EventHandler done = this.Done;
|
|
Delegate @delegate = Delegate.Combine(done, value);
|
|
if (@delegate == 0 || @delegate != 0)
|
|
{
|
|
while (@delegate != done)
|
|
{
|
|
}
|
|
return;
|
|
}
|
|
throw new InvalidCastException();
|
|
}
|
|
[Token(Token = "0x600214E")]
|
|
[Address(RVA = "0x472220", Offset = "0x470A20", VA = "0x180472220")]
|
|
[CompilerGenerated]
|
|
remove
|
|
{
|
|
EventHandler done = this.Done;
|
|
Delegate @delegate = Delegate.Remove(done, value);
|
|
if (@delegate == 0 || @delegate != 0)
|
|
{
|
|
while (@delegate != done)
|
|
{
|
|
}
|
|
return;
|
|
}
|
|
throw new InvalidCastException();
|
|
}
|
|
}
|
|
|
|
// Token: 0x170001CB RID: 459
|
|
// (get) Token: 0x0600214F RID: 8527 RVA: 0x0004F434 File Offset: 0x0004D634
|
|
[Token(Token = "0x170001CB")]
|
|
public ObiCloth Cloth
|
|
{
|
|
[Token(Token = "0x600214F")]
|
|
[Address(RVA = "0x3540B0", Offset = "0x3528B0", VA = "0x1803540B0")]
|
|
get
|
|
{
|
|
return this.cloth;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002150 RID: 8528 RVA: 0x0004F448 File Offset: 0x0004D648
|
|
[Token(Token = "0x6002150")]
|
|
[Address(RVA = "0x472050", Offset = "0x470850", VA = "0x180472050")]
|
|
public void Awake()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06002150)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void RuntimeClothGenerator::Awake()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{; Block_0:; stloc:ObiCloth(var_0_06, call:ObiCloth(Component::GetComponent, ldloc:RuntimeClothGenerator[exp:Component](this))); stfld:ObiCloth(RuntimeClothGenerator::cloth, ldloc:RuntimeClothGenerator(this), ldloc:ObiCloth(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: 0x06002151 RID: 8529 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002151")]
|
|
[Address(RVA = "0x472110", Offset = "0x470910", VA = "0x180472110")]
|
|
public IEnumerator Start()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06002152 RID: 8530 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002152")]
|
|
[Address(RVA = "0x4720A0", Offset = "0x4708A0", VA = "0x1804720A0")]
|
|
private IEnumerator GenerateAndAddToSolver()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06002153 RID: 8531 RVA: 0x0004F464 File Offset: 0x0004D664
|
|
[Token(Token = "0x6002153")]
|
|
[Address(RVA = "0x33E460", Offset = "0x33CC60", VA = "0x18033E460")]
|
|
public RuntimeClothGenerator()
|
|
{
|
|
}
|
|
|
|
// Token: 0x04002AC2 RID: 10946
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4002AC2")]
|
|
public ObiSolver solver;
|
|
|
|
// Token: 0x04002AC3 RID: 10947
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4002AC3")]
|
|
public Mesh mesh;
|
|
|
|
// Token: 0x04002AC4 RID: 10948
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4002AC4")]
|
|
public ObiMeshTopology topology;
|
|
|
|
// Token: 0x04002AC6 RID: 10950
|
|
[FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x4002AC6")]
|
|
private ObiCloth cloth;
|
|
}
|