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

93 lines
4.7 KiB
C#

using System;
using Cpp2IlInjected;
using UnityEngine;
namespace RootMotion.FinalIK
{
// Token: 0x020003FF RID: 1023
[Token(Token = "0x20003FF")]
[Serializable]
public class ConstraintRotationOffset : Constraint
{
// Token: 0x0600247B RID: 9339 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x600247B")]
[Address(RVA = "0x1094C80", Offset = "0x1093480", VA = "0x181094C80", Slot = "4")]
public override void UpdateConstraint()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x0600247C RID: 9340 RVA: 0x00053458 File Offset: 0x00051658
[Token(Token = "0x600247C")]
[Address(RVA = "0x43A830", Offset = "0x439030", VA = "0x18043A830")]
public ConstraintRotationOffset()
{
}
// Token: 0x0600247D RID: 9341 RVA: 0x0005346C File Offset: 0x0005166C
[Token(Token = "0x600247D")]
[Address(RVA = "0x492D20", Offset = "0x491520", VA = "0x180492D20")]
public ConstraintRotationOffset(Transform transform)
{
/*
An exception occurred when decompiling this method (0600247D)
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: 0x17000209 RID: 521
// (get) Token: 0x0600247E RID: 9342 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x17000209")]
private bool rotationChanged
{
[Token(Token = "0x600247E")]
[Address(RVA = "0x1094E70", Offset = "0x1093670", VA = "0x181094E70")]
get
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
}
// Token: 0x04002E47 RID: 11847
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4002E47")]
public Quaternion offset;
// Token: 0x04002E48 RID: 11848
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x4002E48")]
private Quaternion defaultRotation;
// Token: 0x04002E49 RID: 11849
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x4002E49")]
private Quaternion defaultLocalRotation;
// Token: 0x04002E4A RID: 11850
[FieldOffset(Offset = "0x50")]
[Token(Token = "0x4002E4A")]
private Quaternion lastLocalRotation;
// Token: 0x04002E4B RID: 11851
[FieldOffset(Offset = "0x60")]
[Token(Token = "0x4002E4B")]
private Quaternion defaultTargetLocalRotation;
// Token: 0x04002E4C RID: 11852
[FieldOffset(Offset = "0x70")]
[Token(Token = "0x4002E4C")]
private bool initiated;
}
}