203 lines
8.4 KiB
C#
203 lines
8.4 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Cpp2IlInjected;
|
|
using UnityEngine;
|
|
|
|
namespace Obi
|
|
{
|
|
// Token: 0x020004BE RID: 1214
|
|
[Token(Token = "0x20004BE")]
|
|
[ExecuteInEditMode]
|
|
public abstract class ObiBatchedConstraints : MonoBehaviour, IObiSolverClient
|
|
{
|
|
// Token: 0x170002DF RID: 735
|
|
// (get) Token: 0x06002AF0 RID: 10992 RVA: 0x0005D3E0 File Offset: 0x0005B5E0
|
|
[Token(Token = "0x170002DF")]
|
|
public ObiActor Actor
|
|
{
|
|
[Token(Token = "0x6002AF0")]
|
|
[Address(RVA = "0x2990A0", Offset = "0x2978A0", VA = "0x1802990A0")]
|
|
get
|
|
{
|
|
return this.actor;
|
|
}
|
|
}
|
|
|
|
// Token: 0x170002E0 RID: 736
|
|
// (get) Token: 0x06002AF1 RID: 10993 RVA: 0x0005D3F4 File Offset: 0x0005B5F4
|
|
[Token(Token = "0x170002E0")]
|
|
public bool InSolver
|
|
{
|
|
[Token(Token = "0x6002AF1")]
|
|
[Address(RVA = "0x4FB5B0", Offset = "0x4F9DB0", VA = "0x1804FB5B0")]
|
|
get
|
|
{
|
|
return this.inSolver;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002AF2 RID: 10994
|
|
[Token(Token = "0x6002AF2")]
|
|
[Address(Slot = "8")]
|
|
public abstract Oni.ConstraintType GetConstraintType();
|
|
|
|
// Token: 0x06002AF3 RID: 10995
|
|
[Token(Token = "0x6002AF3")]
|
|
[Address(Slot = "9")]
|
|
public abstract List<ObiConstraintBatch> GetBatches();
|
|
|
|
// Token: 0x06002AF4 RID: 10996
|
|
[Token(Token = "0x6002AF4")]
|
|
[Address(Slot = "10")]
|
|
public abstract void Clear();
|
|
|
|
// Token: 0x06002AF5 RID: 10997 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002AF5")]
|
|
[Address(RVA = "0x10C3D50", Offset = "0x10C2550", VA = "0x1810C3D50")]
|
|
protected void OnAddToSolver(object info)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06002AF6 RID: 10998 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002AF6")]
|
|
[Address(RVA = "0x10C3F80", Offset = "0x10C2780", VA = "0x1810C3F80")]
|
|
protected void OnRemoveFromSolver(object info)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06002AF7 RID: 10999 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002AF7")]
|
|
[Address(RVA = "0x10C4220", Offset = "0x10C2A20", VA = "0x1810C4220", Slot = "6")]
|
|
public void PushDataToSolver(ParticleData data = ParticleData.NONE)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06002AF8 RID: 11000 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002AF8")]
|
|
[Address(RVA = "0x10C4110", Offset = "0x10C2910", VA = "0x1810C4110", Slot = "7")]
|
|
public void PullDataFromSolver(ParticleData data = ParticleData.NONE)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06002AF9 RID: 11001 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002AF9")]
|
|
[Address(RVA = "0x10C43E0", Offset = "0x10C2BE0", VA = "0x1810C43E0")]
|
|
public void SetActiveConstraints()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06002AFA RID: 11002 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002AFA")]
|
|
[Address(RVA = "0x10C3BF0", Offset = "0x10C23F0", VA = "0x1810C3BF0")]
|
|
public void Enable()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06002AFB RID: 11003 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002AFB")]
|
|
[Address(RVA = "0x10C3AE0", Offset = "0x10C22E0", VA = "0x1810C3AE0")]
|
|
public void Disable()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06002AFC RID: 11004 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002AFC")]
|
|
[Address(RVA = "0x10C39E0", Offset = "0x10C21E0", VA = "0x1810C39E0", Slot = "4")]
|
|
public bool AddToSolver(object info)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06002AFD RID: 11005 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002AFD")]
|
|
[Address(RVA = "0x10C4330", Offset = "0x10C2B30", VA = "0x1810C4330", Slot = "5")]
|
|
public bool RemoveFromSolver(object info)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06002AFE RID: 11006 RVA: 0x0005D408 File Offset: 0x0005B608
|
|
[Token(Token = "0x6002AFE")]
|
|
[Address(RVA = "0x10C3D00", Offset = "0x10C2500", VA = "0x1810C3D00")]
|
|
public void GrabActor()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06002AFE)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void Obi.ObiBatchedConstraints::GrabActor()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{; Block_0:; stloc:ObiActor(var_0_06, call:ObiActor(Component::GetComponent, ldloc:ObiBatchedConstraints[exp:Component](this))); stfld:ObiActor(ObiBatchedConstraints::actor, ldloc:ObiBatchedConstraints(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: 0x06002AFF RID: 11007 RVA: 0x0005D424 File Offset: 0x0005B624
|
|
[Token(Token = "0x6002AFF")]
|
|
[Address(RVA = "0x10C3F70", Offset = "0x10C2770", VA = "0x1810C3F70")]
|
|
public void OnEnable()
|
|
{
|
|
this.Enable();
|
|
}
|
|
|
|
// Token: 0x06002B00 RID: 11008 RVA: 0x0005D438 File Offset: 0x0005B638
|
|
[Token(Token = "0x6002B00")]
|
|
[Address(RVA = "0x10C3EE0", Offset = "0x10C26E0", VA = "0x1810C3EE0")]
|
|
public void OnDisable()
|
|
{
|
|
ObiActor obiActor = this.actor;
|
|
int num = 0;
|
|
if (!(obiActor == num) && this.actor.inSolver)
|
|
{
|
|
this.Disable();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002B01 RID: 11009 RVA: 0x0005D474 File Offset: 0x0005B674
|
|
[Token(Token = "0x6002B01")]
|
|
[Address(RVA = "0x10C3ED0", Offset = "0x10C26D0", VA = "0x1810C3ED0")]
|
|
public void OnDestroy()
|
|
{
|
|
int num = 0;
|
|
bool flag = this.RemoveFromSolver(num);
|
|
}
|
|
|
|
// Token: 0x06002B02 RID: 11010 RVA: 0x0005D48C File Offset: 0x0005B68C
|
|
[Token(Token = "0x6002B02")]
|
|
[Address(RVA = "0x33E460", Offset = "0x33CC60", VA = "0x18033E460")]
|
|
protected ObiBatchedConstraints()
|
|
{
|
|
}
|
|
|
|
// Token: 0x040033B4 RID: 13236
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x40033B4")]
|
|
public bool visualize;
|
|
|
|
// Token: 0x040033B5 RID: 13237
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x40033B5")]
|
|
[NonSerialized]
|
|
protected ObiActor actor;
|
|
|
|
// Token: 0x040033B6 RID: 13238
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x40033B6")]
|
|
[NonSerialized]
|
|
protected bool inSolver;
|
|
}
|
|
}
|