146 lines
4.7 KiB
C#
146 lines
4.7 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
using UnityEngine;
|
|
|
|
namespace RootMotion.FinalIK
|
|
{
|
|
// Token: 0x02000403 RID: 1027
|
|
[Token(Token = "0x2000403")]
|
|
public abstract class Grounder : MonoBehaviour
|
|
{
|
|
// Token: 0x0600249B RID: 9371
|
|
[Token(Token = "0x600249B")]
|
|
[Address(Slot = "4")]
|
|
public abstract void ResetPosition();
|
|
|
|
// Token: 0x0600249C RID: 9372 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x600249C")]
|
|
[Address(RVA = "0x11DD550", Offset = "0x11DBD50", VA = "0x1811DD550")]
|
|
protected Vector3 GetSpineOffsetTarget()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x0600249D RID: 9373 RVA: 0x00053684 File Offset: 0x00051884
|
|
[Token(Token = "0x600249D")]
|
|
[Address(RVA = "0xCBAFE0", Offset = "0xCB97E0", VA = "0x180CBAFE0")]
|
|
protected void LogWarning(string message)
|
|
{
|
|
Transform transform = base.transform;
|
|
int num = 0;
|
|
Warning.Log(message, transform, num != 0);
|
|
}
|
|
|
|
// Token: 0x0600249E RID: 9374 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x600249E")]
|
|
[Address(RVA = "0x11DD020", Offset = "0x11DB820", VA = "0x1811DD020")]
|
|
private Vector3 GetLegSpineBendVector(Grounding.Leg leg)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x0600249F RID: 9375 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x600249F")]
|
|
[Address(RVA = "0x11DD370", Offset = "0x11DBB70", VA = "0x1811DD370")]
|
|
private Vector3 GetLegSpineTangent(Grounding.Leg leg)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060024A0 RID: 9376
|
|
[Token(Token = "0x60024A0")]
|
|
[Address(Slot = "5")]
|
|
protected abstract void OpenUserManual();
|
|
|
|
// Token: 0x060024A1 RID: 9377
|
|
[Token(Token = "0x60024A1")]
|
|
[Address(Slot = "6")]
|
|
protected abstract void OpenScriptReference();
|
|
|
|
// Token: 0x060024A2 RID: 9378 RVA: 0x000536A4 File Offset: 0x000518A4
|
|
[Token(Token = "0x60024A2")]
|
|
[Address(RVA = "0x11DD690", Offset = "0x11DBE90", VA = "0x1811DD690")]
|
|
protected Grounder()
|
|
{
|
|
}
|
|
|
|
// Token: 0x04002E63 RID: 11875
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4002E63")]
|
|
[Tooltip("The master weight. Use this to fade in/out the grounding effect.")]
|
|
[Range(0f, 1f)]
|
|
public float weight = 1f;
|
|
|
|
// Token: 0x04002E64 RID: 11876
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4002E64")]
|
|
[Tooltip("The Grounding solver. Not to confuse with IK solvers.")]
|
|
public Grounding solver = new Grounding
|
|
{
|
|
maxStep = 0.5f,
|
|
footSpeed = 2.5f,
|
|
footRadius = 0.15f,
|
|
prediction = 0.05f,
|
|
footRotationWeight = 1f,
|
|
footRotationSpeed = 7f,
|
|
maxFootRotationAngle = 45f,
|
|
pelvisSpeed = 5f,
|
|
lowerPelvisWeight = 1f,
|
|
rootSphereCastRadius = 0.1f,
|
|
quality = (Grounding.Quality)((ulong)2L)
|
|
};
|
|
|
|
// Token: 0x04002E65 RID: 11877
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4002E65")]
|
|
public Grounder.GrounderDelegate OnPreGrounder;
|
|
|
|
// Token: 0x04002E66 RID: 11878
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x4002E66")]
|
|
public Grounder.GrounderDelegate OnPostGrounder;
|
|
|
|
// Token: 0x04002E67 RID: 11879
|
|
[FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x4002E67")]
|
|
protected bool initiated;
|
|
|
|
// Token: 0x02000404 RID: 1028
|
|
[Token(Token = "0x2000404")]
|
|
public sealed class GrounderDelegate : MulticastDelegate
|
|
{
|
|
// Token: 0x060024A3 RID: 9379 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60024A3")]
|
|
[Address(RVA = "0x491ED0", Offset = "0x4906D0", VA = "0x180491ED0")]
|
|
public GrounderDelegate(object @object, IntPtr method)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060024A4 RID: 9380 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60024A4")]
|
|
[Address(RVA = "0x66D330", Offset = "0x66BB30", VA = "0x18066D330", Slot = "13")]
|
|
public void Invoke()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060024A5 RID: 9381 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60024A5")]
|
|
[Address(RVA = "0x66D300", Offset = "0x66BB00", VA = "0x18066D300", Slot = "14")]
|
|
public IAsyncResult BeginInvoke(AsyncCallback callback, object @object)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060024A6 RID: 9382 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60024A6")]
|
|
[Address(RVA = "0x491BF0", Offset = "0x4903F0", VA = "0x180491BF0", Slot = "15")]
|
|
public void EndInvoke(IAsyncResult result)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
}
|
|
}
|
|
}
|