93 lines
4.7 KiB
C#
93 lines
4.7 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
using UnityEngine;
|
|
|
|
namespace RootMotion.FinalIK
|
|
{
|
|
// Token: 0x0200044E RID: 1102
|
|
[Token(Token = "0x200044E")]
|
|
[Serializable]
|
|
public class ConstraintRotationOffset : Constraint
|
|
{
|
|
// Token: 0x06002712 RID: 10002 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002712")]
|
|
[Address(RVA = "0x12EE5B0", Offset = "0x12ED5B0", VA = "0x1812EE5B0", Slot = "4")]
|
|
public override void UpdateConstraint()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06002713 RID: 10003 RVA: 0x0005A1C4 File Offset: 0x000583C4
|
|
[Token(Token = "0x6002713")]
|
|
[Address(RVA = "0x36ABD0", Offset = "0x369BD0", VA = "0x18036ABD0")]
|
|
public ConstraintRotationOffset()
|
|
{
|
|
}
|
|
|
|
// Token: 0x06002714 RID: 10004 RVA: 0x0005A1D8 File Offset: 0x000583D8
|
|
[Token(Token = "0x6002714")]
|
|
[Address(RVA = "0x4940F0", Offset = "0x4930F0", VA = "0x1804940F0")]
|
|
public ConstraintRotationOffset(Transform transform)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06002714)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void RootMotion.FinalIK.ConstraintRotationOffset::.ctor(UnityEngine.Transform)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{; Block_0:; call:void(object::.ctor, ldloc:ConstraintRotationOffset[exp:object](this)); stfld:Transform(Constraint::transform, ldloc:ConstraintRotationOffset[exp:Constraint](this), ldloc:Transform(transform)); };
|
|
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: 0x17000234 RID: 564
|
|
// (get) Token: 0x06002715 RID: 10005 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x17000234")]
|
|
private bool rotationChanged
|
|
{
|
|
[Token(Token = "0x6002715")]
|
|
[Address(RVA = "0x12EE7A0", Offset = "0x12ED7A0", VA = "0x1812EE7A0")]
|
|
get
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
}
|
|
|
|
// Token: 0x040030EF RID: 12527
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x40030EF")]
|
|
public Quaternion offset;
|
|
|
|
// Token: 0x040030F0 RID: 12528
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x40030F0")]
|
|
private Quaternion defaultRotation;
|
|
|
|
// Token: 0x040030F1 RID: 12529
|
|
[FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x40030F1")]
|
|
private Quaternion defaultLocalRotation;
|
|
|
|
// Token: 0x040030F2 RID: 12530
|
|
[FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x40030F2")]
|
|
private Quaternion lastLocalRotation;
|
|
|
|
// Token: 0x040030F3 RID: 12531
|
|
[FieldOffset(Offset = "0x60")]
|
|
[Token(Token = "0x40030F3")]
|
|
private Quaternion defaultTargetLocalRotation;
|
|
|
|
// Token: 0x040030F4 RID: 12532
|
|
[FieldOffset(Offset = "0x70")]
|
|
[Token(Token = "0x40030F4")]
|
|
private bool initiated;
|
|
}
|
|
}
|