335 lines
11 KiB
C#
335 lines
11 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
using UnityEngine;
|
|
|
|
namespace RootMotion
|
|
{
|
|
// Token: 0x0200039C RID: 924
|
|
[Token(Token = "0x200039C")]
|
|
public static class BipedNaming
|
|
{
|
|
// Token: 0x0600228C RID: 8844 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x600228C")]
|
|
[Address(RVA = "0xE3FA00", Offset = "0xE3E200", VA = "0x180E3FA00")]
|
|
public static Transform[] GetBonesOfType(BipedNaming.BoneType boneType, Transform[] bones)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x0600228D RID: 8845 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x600228D")]
|
|
[Address(RVA = "0xE3F7D0", Offset = "0xE3DFD0", VA = "0x180E3F7D0")]
|
|
public static Transform[] GetBonesOfSide(BipedNaming.BoneSide boneSide, Transform[] bones)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x0600228E RID: 8846 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x600228E")]
|
|
[Address(RVA = "0xE3F980", Offset = "0xE3E180", VA = "0x180E3F980")]
|
|
public static Transform[] GetBonesOfTypeAndSide(BipedNaming.BoneType boneType, BipedNaming.BoneSide boneSide, Transform[] bones)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x0600228F RID: 8847 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x600228F")]
|
|
[Address(RVA = "0xE3FBB0", Offset = "0xE3E3B0", VA = "0x180E3FBB0")]
|
|
public static Transform GetFirstBoneOfTypeAndSide(BipedNaming.BoneType boneType, BipedNaming.BoneSide boneSide, Transform[] bones)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06002290 RID: 8848 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002290")]
|
|
[Address(RVA = "0xE3FC60", Offset = "0xE3E460", VA = "0x180E3FC60")]
|
|
public static Transform GetNamingMatch(Transform[] transforms, params string[][] namings)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06002291 RID: 8849 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002291")]
|
|
[Address(RVA = "0xE3F5C0", Offset = "0xE3DDC0", VA = "0x180E3F5C0")]
|
|
public static BipedNaming.BoneType GetBoneType(string boneName)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06002292 RID: 8850 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002292")]
|
|
[Address(RVA = "0xE3F520", Offset = "0xE3DD20", VA = "0x180E3F520")]
|
|
public static BipedNaming.BoneSide GetBoneSide(string boneName)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06002293 RID: 8851 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002293")]
|
|
[Address(RVA = "0xE3F740", Offset = "0xE3DF40", VA = "0x180E3F740")]
|
|
public static Transform GetBone(Transform[] transforms, BipedNaming.BoneType boneType, BipedNaming.BoneSide boneSide = BipedNaming.BoneSide.Center, params string[][] namings)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06002294 RID: 8852 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002294")]
|
|
[Address(RVA = "0xE43EE0", Offset = "0xE426E0", VA = "0x180E43EE0")]
|
|
private static bool isLeft(string boneName)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06002295 RID: 8853 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002295")]
|
|
[Address(RVA = "0xE44370", Offset = "0xE42B70", VA = "0x180E44370")]
|
|
private static bool isRight(string boneName)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06002296 RID: 8854 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002296")]
|
|
[Address(RVA = "0xE445F0", Offset = "0xE42DF0", VA = "0x180E445F0")]
|
|
private static bool isSpine(string boneName)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06002297 RID: 8855 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002297")]
|
|
[Address(RVA = "0xE43CD0", Offset = "0xE424D0", VA = "0x180E43CD0")]
|
|
private static bool isHead(string boneName)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06002298 RID: 8856 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002298")]
|
|
[Address(RVA = "0xE438B0", Offset = "0xE420B0", VA = "0x180E438B0")]
|
|
private static bool isArm(string boneName)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06002299 RID: 8857 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002299")]
|
|
[Address(RVA = "0xE44160", Offset = "0xE42960", VA = "0x180E44160")]
|
|
private static bool isLeg(string boneName)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x0600229A RID: 8858 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x600229A")]
|
|
[Address(RVA = "0xE44800", Offset = "0xE43000", VA = "0x180E44800")]
|
|
private static bool isTail(string boneName)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x0600229B RID: 8859 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x600229B")]
|
|
[Address(RVA = "0xE43AC0", Offset = "0xE422C0", VA = "0x180E43AC0")]
|
|
private static bool isEye(string boneName)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x0600229C RID: 8860 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x600229C")]
|
|
[Address(RVA = "0xE44A10", Offset = "0xE43210", VA = "0x180E44A10")]
|
|
private static bool isTypeExclude(string boneName)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x0600229D RID: 8861 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x600229D")]
|
|
[Address(RVA = "0xE44CD0", Offset = "0xE434D0", VA = "0x180E44CD0")]
|
|
private static bool matchesNaming(string boneName, string[] namingConvention)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x0600229E RID: 8862 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x600229E")]
|
|
[Address(RVA = "0xE437C0", Offset = "0xE41FC0", VA = "0x180E437C0")]
|
|
private static bool excludesNaming(string boneName, string[] namingConvention)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x0600229F RID: 8863 RVA: 0x00050220 File Offset: 0x0004E420
|
|
[Token(Token = "0x600229F")]
|
|
[Address(RVA = "0xE44BF0", Offset = "0xE433F0", VA = "0x180E44BF0")]
|
|
private static bool matchesLastLetter(string boneName, string[] namingConvention)
|
|
{
|
|
int num = 0;
|
|
int length = namingConvention.Length;
|
|
if (num < length)
|
|
{
|
|
string text = namingConvention[num];
|
|
int stringLength = boneName.m_stringLength;
|
|
if (!string.Equals(boneName.Substring(stringLength, 1), text))
|
|
{
|
|
num++;
|
|
}
|
|
return true;
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x060022A0 RID: 8864 RVA: 0x00050268 File Offset: 0x0004E468
|
|
[Token(Token = "0x60022A0")]
|
|
[Address(RVA = "0xE3FE90", Offset = "0xE3E690", VA = "0x180E3FE90")]
|
|
private static bool LastLetterIs(string boneName, string letter)
|
|
{
|
|
int stringLength = boneName.m_stringLength;
|
|
return string.Equals(boneName.Substring(stringLength, 1), letter);
|
|
}
|
|
|
|
// Token: 0x060022A1 RID: 8865 RVA: 0x00050290 File Offset: 0x0004E490
|
|
[Token(Token = "0x60022A1")]
|
|
[Address(RVA = "0xE43850", Offset = "0xE42050", VA = "0x180E43850")]
|
|
private static string firstLetter(string boneName)
|
|
{
|
|
return "";
|
|
}
|
|
|
|
// Token: 0x060022A2 RID: 8866 RVA: 0x000502B4 File Offset: 0x0004E4B4
|
|
[Token(Token = "0x60022A2")]
|
|
[Address(RVA = "0xE44B90", Offset = "0xE43390", VA = "0x180E44B90")]
|
|
private static string lastLetter(string boneName)
|
|
{
|
|
int stringLength = boneName.m_stringLength;
|
|
return "";
|
|
}
|
|
|
|
// Token: 0x060022A3 RID: 8867 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
// Note: this type is marked as 'beforefieldinit'.
|
|
[Token(Token = "0x60022A3")]
|
|
[Address(RVA = "0xE3FED0", Offset = "0xE3E6D0", VA = "0x180E3FED0")]
|
|
static BipedNaming()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x04002BFB RID: 11259
|
|
[Token(Token = "0x4002BFB")]
|
|
public static string[] typeLeft;
|
|
|
|
// Token: 0x04002BFC RID: 11260
|
|
[Token(Token = "0x4002BFC")]
|
|
public static string[] typeRight;
|
|
|
|
// Token: 0x04002BFD RID: 11261
|
|
[Token(Token = "0x4002BFD")]
|
|
public static string[] typeSpine;
|
|
|
|
// Token: 0x04002BFE RID: 11262
|
|
[Token(Token = "0x4002BFE")]
|
|
public static string[] typeHead;
|
|
|
|
// Token: 0x04002BFF RID: 11263
|
|
[Token(Token = "0x4002BFF")]
|
|
public static string[] typeArm;
|
|
|
|
// Token: 0x04002C00 RID: 11264
|
|
[Token(Token = "0x4002C00")]
|
|
public static string[] typeLeg;
|
|
|
|
// Token: 0x04002C01 RID: 11265
|
|
[Token(Token = "0x4002C01")]
|
|
public static string[] typeTail;
|
|
|
|
// Token: 0x04002C02 RID: 11266
|
|
[Token(Token = "0x4002C02")]
|
|
public static string[] typeEye;
|
|
|
|
// Token: 0x04002C03 RID: 11267
|
|
[Token(Token = "0x4002C03")]
|
|
public static string[] typeExclude;
|
|
|
|
// Token: 0x04002C04 RID: 11268
|
|
[Token(Token = "0x4002C04")]
|
|
public static string[] typeExcludeSpine;
|
|
|
|
// Token: 0x04002C05 RID: 11269
|
|
[Token(Token = "0x4002C05")]
|
|
public static string[] typeExcludeHead;
|
|
|
|
// Token: 0x04002C06 RID: 11270
|
|
[Token(Token = "0x4002C06")]
|
|
public static string[] typeExcludeArm;
|
|
|
|
// Token: 0x04002C07 RID: 11271
|
|
[Token(Token = "0x4002C07")]
|
|
public static string[] typeExcludeLeg;
|
|
|
|
// Token: 0x04002C08 RID: 11272
|
|
[Token(Token = "0x4002C08")]
|
|
public static string[] typeExcludeTail;
|
|
|
|
// Token: 0x04002C09 RID: 11273
|
|
[Token(Token = "0x4002C09")]
|
|
public static string[] typeExcludeEye;
|
|
|
|
// Token: 0x04002C0A RID: 11274
|
|
[Token(Token = "0x4002C0A")]
|
|
public static string[] pelvis;
|
|
|
|
// Token: 0x04002C0B RID: 11275
|
|
[Token(Token = "0x4002C0B")]
|
|
public static string[] hand;
|
|
|
|
// Token: 0x04002C0C RID: 11276
|
|
[Token(Token = "0x4002C0C")]
|
|
public static string[] foot;
|
|
|
|
// Token: 0x0200039D RID: 925
|
|
[Token(Token = "0x200039D")]
|
|
[Serializable]
|
|
public enum BoneType
|
|
{
|
|
// Token: 0x04002C0E RID: 11278
|
|
[Token(Token = "0x4002C0E")]
|
|
Unassigned,
|
|
// Token: 0x04002C0F RID: 11279
|
|
[Token(Token = "0x4002C0F")]
|
|
Spine,
|
|
// Token: 0x04002C10 RID: 11280
|
|
[Token(Token = "0x4002C10")]
|
|
Head,
|
|
// Token: 0x04002C11 RID: 11281
|
|
[Token(Token = "0x4002C11")]
|
|
Arm,
|
|
// Token: 0x04002C12 RID: 11282
|
|
[Token(Token = "0x4002C12")]
|
|
Leg,
|
|
// Token: 0x04002C13 RID: 11283
|
|
[Token(Token = "0x4002C13")]
|
|
Tail,
|
|
// Token: 0x04002C14 RID: 11284
|
|
[Token(Token = "0x4002C14")]
|
|
Eye
|
|
}
|
|
|
|
// Token: 0x0200039E RID: 926
|
|
[Token(Token = "0x200039E")]
|
|
[Serializable]
|
|
public enum BoneSide
|
|
{
|
|
// Token: 0x04002C16 RID: 11286
|
|
[Token(Token = "0x4002C16")]
|
|
Center,
|
|
// Token: 0x04002C17 RID: 11287
|
|
[Token(Token = "0x4002C17")]
|
|
Left,
|
|
// Token: 0x04002C18 RID: 11288
|
|
[Token(Token = "0x4002C18")]
|
|
Right
|
|
}
|
|
}
|
|
}
|