142 lines
4.7 KiB
C#
142 lines
4.7 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Cpp2IlInjected;
|
|
using UnityEngine;
|
|
|
|
namespace RootMotion
|
|
{
|
|
// Token: 0x020003A7 RID: 935
|
|
[Token(Token = "0x20003A7")]
|
|
public static class LayerMaskExtensions
|
|
{
|
|
// Token: 0x060022ED RID: 8941 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60022ED")]
|
|
[Address(RVA = "0x1047400", Offset = "0x1045C00", VA = "0x181047400")]
|
|
public static bool Contains(LayerMask mask, int layer)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060022EE RID: 8942 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60022EE")]
|
|
[Address(RVA = "0x10BF150", Offset = "0x10BD950", VA = "0x1810BF150")]
|
|
public static LayerMask Create(params string[] layerNames)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060022EF RID: 8943 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60022EF")]
|
|
[Address(RVA = "0x10BF1F0", Offset = "0x10BD9F0", VA = "0x1810BF1F0")]
|
|
public static LayerMask Create(params int[] layerNumbers)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060022F0 RID: 8944 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60022F0")]
|
|
[Address(RVA = "0x10BF150", Offset = "0x10BD950", VA = "0x1810BF150")]
|
|
public static LayerMask NamesToMask(params string[] layerNames)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060022F1 RID: 8945 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60022F1")]
|
|
[Address(RVA = "0x10BF1F0", Offset = "0x10BD9F0", VA = "0x1810BF1F0")]
|
|
public static LayerMask LayerNumbersToMask(params int[] layerNumbers)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060022F2 RID: 8946 RVA: 0x000506C8 File Offset: 0x0004E8C8
|
|
[Token(Token = "0x60022F2")]
|
|
[Address(RVA = "0x10BF270", Offset = "0x10BDA70", VA = "0x1810BF270")]
|
|
public static LayerMask Inverse(this LayerMask original)
|
|
{
|
|
return original;
|
|
}
|
|
|
|
// Token: 0x060022F3 RID: 8947 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60022F3")]
|
|
[Address(RVA = "0x10BF080", Offset = "0x10BD880", VA = "0x1810BF080")]
|
|
public static LayerMask AddToMask(this LayerMask original, params string[] layerNames)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060022F4 RID: 8948 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60022F4")]
|
|
[Address(RVA = "0x10BF6F0", Offset = "0x10BDEF0", VA = "0x1810BF6F0")]
|
|
public static LayerMask RemoveFromMask(this LayerMask original, params string[] layerNames)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060022F5 RID: 8949 RVA: 0x000506E0 File Offset: 0x0004E8E0
|
|
[Token(Token = "0x60022F5")]
|
|
[Address(RVA = "0x10BF290", Offset = "0x10BDA90", VA = "0x1810BF290")]
|
|
public static string[] MaskToNames(this LayerMask original)
|
|
{
|
|
int mask = original.m_Mask;
|
|
List<string> list = new List();
|
|
int num = 0;
|
|
if (mask == (uint)1)
|
|
{
|
|
string text = LayerMask.LayerToName(num);
|
|
if (!string.IsNullOrEmpty(text))
|
|
{
|
|
list.Add(text);
|
|
}
|
|
}
|
|
num++;
|
|
return list.ToArray();
|
|
}
|
|
|
|
// Token: 0x060022F6 RID: 8950 RVA: 0x00050730 File Offset: 0x0004E930
|
|
[Token(Token = "0x60022F6")]
|
|
[Address(RVA = "0x10BF3A0", Offset = "0x10BDBA0", VA = "0x1810BF3A0")]
|
|
public static int[] MaskToNumbers(this LayerMask original)
|
|
{
|
|
int mask = original.m_Mask;
|
|
List<int> list = new List();
|
|
int num = 0;
|
|
if (mask == (uint)1)
|
|
{
|
|
list.Add(num);
|
|
}
|
|
num++;
|
|
return list.ToArray();
|
|
}
|
|
|
|
// Token: 0x060022F7 RID: 8951 RVA: 0x00050770 File Offset: 0x0004E970
|
|
[Token(Token = "0x60022F7")]
|
|
[Address(RVA = "0x10BF490", Offset = "0x10BDC90", VA = "0x1810BF490")]
|
|
public static string MaskToString(this LayerMask original)
|
|
{
|
|
int mask = original.m_Mask;
|
|
List<string> list = new List();
|
|
int num = 0;
|
|
if (mask == (uint)1)
|
|
{
|
|
string text = LayerMask.LayerToName(num);
|
|
if (!string.IsNullOrEmpty(text))
|
|
{
|
|
list.Add(text);
|
|
}
|
|
}
|
|
num++;
|
|
string[] array = list.ToArray();
|
|
return string.Join(", ", array);
|
|
}
|
|
|
|
// Token: 0x060022F8 RID: 8952 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60022F8")]
|
|
[Address(RVA = "0x10BF5D0", Offset = "0x10BDDD0", VA = "0x1810BF5D0")]
|
|
public static string MaskToString(this LayerMask original, string delimiter)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
}
|
|
}
|