Files
NobetaSource/Cpp2IL/Assembly-CSharp/RootMotion/FinalIK/IKMappingSpine.cs
2023-09-06 22:09:22 +02:00

252 lines
14 KiB
C#

using System;
using Cpp2IlInjected;
using UnityEngine;
namespace RootMotion.FinalIK
{
// Token: 0x0200042A RID: 1066
[Token(Token = "0x200042A")]
[Serializable]
public class IKMappingSpine : IKMapping
{
// Token: 0x060025FD RID: 9725 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x60025FD")]
[Address(RVA = "0x11E7D20", Offset = "0x11E6520", VA = "0x1811E7D20", Slot = "4")]
public override bool IsValid(IKSolver solver, ref string message)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x060025FE RID: 9726 RVA: 0x000557DC File Offset: 0x000539DC
[Token(Token = "0x60025FE")]
[Address(RVA = "0x11E8F40", Offset = "0x11E7740", VA = "0x1811E8F40")]
public IKMappingSpine()
{
this.iterations = (int)((ulong)3L);
int num = 0;
this.twistWeight = 1f;
IKMapping.BoneMap[] array = new IKMapping.BoneMap[num];
this.spine = array;
IKMapping.BoneMap boneMap = new IKMapping.BoneMap();
this.leftUpperArm = boneMap;
IKMapping.BoneMap boneMap2 = new IKMapping.BoneMap();
this.rightUpperArm = boneMap2;
IKMapping.BoneMap boneMap3 = new IKMapping.BoneMap();
this.leftThigh = boneMap3;
IKMapping.BoneMap boneMap4 = new IKMapping.BoneMap();
this.rightThigh = boneMap4;
base..ctor();
}
// Token: 0x060025FF RID: 9727 RVA: 0x0005584C File Offset: 0x00053A4C
[Token(Token = "0x60025FF")]
[Address(RVA = "0x11E9060", Offset = "0x11E7860", VA = "0x1811E9060")]
public IKMappingSpine(Transform[] spineBones, Transform leftUpperArmBone, Transform rightUpperArmBone, Transform leftThighBone, Transform rightThighBone)
{
/*
An exception occurred when decompiling this method (060025FF)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void RootMotion.FinalIK.IKMappingSpine::.ctor(UnityEngine.Transform[],UnityEngine.Transform,UnityEngine.Transform,UnityEngine.Transform,UnityEngine.Transform)
---> System.Exception: Basic block has to end with unconditional control flow.
{; Block_0:; stfld:int32(IKMappingSpine::iterations, ldloc:IKMappingSpine(this), conv.u8:uint64[exp:int32](ldc.i8:int64[exp:uint64](3))); stloc:int32(var_0_0A, ldc.i4:int32(0)); stfld:float32(IKMappingSpine::twistWeight, ldloc:IKMappingSpine(this), ldc.r4:float32(1)); stloc:class RootMotion.FinalIK.IKMapping/BoneMap[](var_1_1C, newarr:class RootMotion.FinalIK.IKMapping/BoneMap[](RootMotion.FinalIK.IKMapping/BoneMap, ldloc:int32(var_0_0A))); stfld:class RootMotion.FinalIK.IKMapping/BoneMap[](IKMappingSpine::spine, ldloc:IKMappingSpine(this), ldloc:class RootMotion.FinalIK.IKMapping/BoneMap[](var_1_1C)); stloc:BoneMap(var_2_29, newobj:BoneMap(BoneMap::.ctor)); stfld:BoneMap(IKMappingSpine::leftUpperArm, ldloc:IKMappingSpine(this), ldloc:BoneMap(var_2_29)); stloc:BoneMap(var_3_36, newobj:BoneMap(BoneMap::.ctor)); stfld:BoneMap(IKMappingSpine::rightUpperArm, ldloc:IKMappingSpine(this), ldloc:BoneMap(var_3_36)); stloc:BoneMap(var_4_43, newobj:BoneMap(BoneMap::.ctor)); stfld:BoneMap(IKMappingSpine::leftThigh, ldloc:IKMappingSpine(this), ldloc:BoneMap(var_4_43)); stloc:BoneMap(var_5_52, newobj:BoneMap(BoneMap::.ctor)); stfld:BoneMap(IKMappingSpine::rightThigh, ldloc:IKMappingSpine(this), ldloc:BoneMap(var_5_52)); call:void(object::.ctor, ldloc:IKMappingSpine[exp:object](this)); stfld:class [UnityEngine.CoreModule]UnityEngine.Transform[](IKMappingSpine::spineBones, ldloc:IKMappingSpine(this), ldloc:class [UnityEngine.CoreModule]UnityEngine.Transform[](spineBones)); stfld:Transform(IKMappingSpine::leftUpperArmBone, ldloc:IKMappingSpine(this), ldloc:Transform(leftUpperArmBone)); stfld:Transform(IKMappingSpine::rightUpperArmBone, ldloc:IKMappingSpine(this), ldloc:Transform(rightUpperArmBone)); stfld:Transform(IKMappingSpine::leftThighBone, ldloc:IKMappingSpine(this), ldc.i4:int32[exp:Transform](0)); stfld:Transform(IKMappingSpine::rightThighBone, ldloc:IKMappingSpine(this), ldc.i4:int32[exp:Transform](0)); };
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: 0x06002600 RID: 9728 RVA: 0x000558E0 File Offset: 0x00053AE0
[Token(Token = "0x6002600")]
[Address(RVA = "0x11E8950", Offset = "0x11E7150", VA = "0x1811E8950")]
public void SetBones(Transform[] spineBones, Transform leftUpperArmBone, Transform rightUpperArmBone, Transform leftThighBone, Transform rightThighBone)
{
/*
An exception occurred when decompiling this method (06002600)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void RootMotion.FinalIK.IKMappingSpine::SetBones(UnityEngine.Transform[],UnityEngine.Transform,UnityEngine.Transform,UnityEngine.Transform,UnityEngine.Transform)
---> System.Exception: Basic block has to end with unconditional control flow.
{; Block_0:; stfld:class [UnityEngine.CoreModule]UnityEngine.Transform[](IKMappingSpine::spineBones, ldloc:IKMappingSpine(this), ldloc:class [UnityEngine.CoreModule]UnityEngine.Transform[](spineBones)); stfld:Transform(IKMappingSpine::leftUpperArmBone, ldloc:IKMappingSpine(this), ldloc:Transform(leftUpperArmBone)); stfld:Transform(IKMappingSpine::rightUpperArmBone, ldloc:IKMappingSpine(this), ldloc:Transform(rightUpperArmBone)); stfld:Transform(IKMappingSpine::leftThighBone, ldloc:IKMappingSpine(this), ldc.i4:int32[exp:Transform](0)); stfld:Transform(IKMappingSpine::rightThighBone, ldloc:IKMappingSpine(this), ldc.i4:int32[exp:Transform](0)); };
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: 0x06002601 RID: 9729 RVA: 0x00055910 File Offset: 0x00053B10
[Token(Token = "0x6002601")]
[Address(RVA = "0x11E89D0", Offset = "0x11E71D0", VA = "0x1811E89D0")]
public void StoreDefaultLocalState()
{
IKMapping.BoneMap[] array = this.spine;
int num = 0;
if (num < array.Length)
{
array[num].StoreDefaultLocalState();
IKMapping.BoneMap[] array2 = this.spine;
num++;
}
}
// Token: 0x06002602 RID: 9730 RVA: 0x0005594C File Offset: 0x00053B4C
[Token(Token = "0x6002602")]
[Address(RVA = "0x11E7200", Offset = "0x11E5A00", VA = "0x1811E7200")]
public void FixTransforms()
{
IKMapping.BoneMap[] array = this.spine;
int num = 0;
int num2 = 0;
if (num2 < array.Length)
{
int length = array.Length;
IKMapping.BoneMap boneMap = array[num];
if (num == 0)
{
}
int num3 = length - 1;
bool flag = num == num3;
boneMap.FixTransform(flag);
IKMapping.BoneMap[] array2 = this.spine;
num++;
}
}
// Token: 0x06002603 RID: 9731 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6002603")]
[Address(RVA = "0x11E7490", Offset = "0x11E5C90", VA = "0x1811E7490", Slot = "5")]
public override void Initiate(IKSolverFullBody solver)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06002604 RID: 9732 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6002604")]
[Address(RVA = "0x11E8A50", Offset = "0x11E7250", VA = "0x1811E8A50")]
private bool UseFABRIK()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06002605 RID: 9733 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6002605")]
[Address(RVA = "0x11E8570", Offset = "0x11E6D70", VA = "0x1811E8570")]
public void ReadPose()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06002606 RID: 9734 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6002606")]
[Address(RVA = "0x11E8A80", Offset = "0x11E7280", VA = "0x1811E8A80")]
public void WritePose(IKSolverFullBody solver)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06002607 RID: 9735 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6002607")]
[Address(RVA = "0x11E72A0", Offset = "0x11E5AA0", VA = "0x1811E72A0")]
public void ForwardReach(Vector3 position)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06002608 RID: 9736 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6002608")]
[Address(RVA = "0x11E7020", Offset = "0x11E5820", VA = "0x1811E7020")]
private void BackwardReach(Vector3 position)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06002609 RID: 9737 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6002609")]
[Address(RVA = "0x11E8140", Offset = "0x11E6940", VA = "0x1811E8140")]
private void MapToSolverPositions(IKSolverFullBody solver)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x04002FBB RID: 12219
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4002FBB")]
public Transform[] spineBones;
// Token: 0x04002FBC RID: 12220
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4002FBC")]
public Transform leftUpperArmBone;
// Token: 0x04002FBD RID: 12221
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4002FBD")]
public Transform rightUpperArmBone;
// Token: 0x04002FBE RID: 12222
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x4002FBE")]
public Transform leftThighBone;
// Token: 0x04002FBF RID: 12223
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x4002FBF")]
public Transform rightThighBone;
// Token: 0x04002FC0 RID: 12224
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x4002FC0")]
[Range(1f, 3f)]
public int iterations;
// Token: 0x04002FC1 RID: 12225
[FieldOffset(Offset = "0x3C")]
[Token(Token = "0x4002FC1")]
[Range(0f, 1f)]
public float twistWeight;
// Token: 0x04002FC2 RID: 12226
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x4002FC2")]
private int rootNodeIndex;
// Token: 0x04002FC3 RID: 12227
[FieldOffset(Offset = "0x48")]
[Token(Token = "0x4002FC3")]
private IKMapping.BoneMap[] spine;
// Token: 0x04002FC4 RID: 12228
[FieldOffset(Offset = "0x50")]
[Token(Token = "0x4002FC4")]
private IKMapping.BoneMap leftUpperArm;
// Token: 0x04002FC5 RID: 12229
[FieldOffset(Offset = "0x58")]
[Token(Token = "0x4002FC5")]
private IKMapping.BoneMap rightUpperArm;
// Token: 0x04002FC6 RID: 12230
[FieldOffset(Offset = "0x60")]
[Token(Token = "0x4002FC6")]
private IKMapping.BoneMap leftThigh;
// Token: 0x04002FC7 RID: 12231
[FieldOffset(Offset = "0x68")]
[Token(Token = "0x4002FC7")]
private IKMapping.BoneMap rightThigh;
// Token: 0x04002FC8 RID: 12232
[FieldOffset(Offset = "0x70")]
[Token(Token = "0x4002FC8")]
private bool useFABRIK;
}
}