325 lines
14 KiB
C#
325 lines
14 KiB
C#
using System;
|
|
using Il2CppInterop.Common.Attributes;
|
|
using Il2CppInterop.Runtime;
|
|
using Il2CppInterop.Runtime.InteropTypes.Arrays;
|
|
using Il2CppSystem;
|
|
using UnityEngine;
|
|
|
|
namespace RootMotion.FinalIK
|
|
{
|
|
// Token: 0x0200047F RID: 1151
|
|
public class AimPoser : MonoBehaviour
|
|
{
|
|
// Token: 0x06008876 RID: 34934 RVA: 0x0022FAC8 File Offset: 0x0022DCC8
|
|
[CallerCount(1)]
|
|
[CachedScanResults(RefRangeStart = 621722, RefRangeEnd = 621723, XrefRangeStart = 621720, XrefRangeEnd = 621722, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
|
|
public unsafe AimPoser.Pose GetPose(Vector3 localDirection)
|
|
{
|
|
IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
|
|
checked
|
|
{
|
|
IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
|
|
*ptr = ref localDirection;
|
|
IntPtr intPtr2;
|
|
IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(AimPoser.NativeMethodInfoPtr_GetPose_Public_Pose_Vector3_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
|
|
Il2CppException.RaiseExceptionIfNecessary(intPtr2);
|
|
IntPtr intPtr3 = intPtr;
|
|
return (intPtr3 != 0) ? new AimPoser.Pose(intPtr3) : null;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06008877 RID: 34935 RVA: 0x0022FB30 File Offset: 0x0022DD30
|
|
[CallerCount(1)]
|
|
[CachedScanResults(RefRangeStart = 621725, RefRangeEnd = 621726, XrefRangeStart = 621723, XrefRangeEnd = 621725, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
|
|
public unsafe void SetPoseActive(AimPoser.Pose pose)
|
|
{
|
|
IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
|
|
checked
|
|
{
|
|
IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
|
|
*ptr = IL2CPP.Il2CppObjectBaseToPtr(pose);
|
|
IntPtr intPtr2;
|
|
IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(AimPoser.NativeMethodInfoPtr_SetPoseActive_Public_Void_Pose_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
|
|
Il2CppException.RaiseExceptionIfNecessary(intPtr2);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06008878 RID: 34936 RVA: 0x0022FB8C File Offset: 0x0022DD8C
|
|
[CallerCount(0)]
|
|
[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 621726, XrefRangeEnd = 621731, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
|
|
public unsafe AimPoser()
|
|
: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<AimPoser>.NativeClassPtr))
|
|
{
|
|
IntPtr* ptr = null;
|
|
IntPtr intPtr2;
|
|
IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(AimPoser.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
|
|
Il2CppException.RaiseExceptionIfNecessary(intPtr2);
|
|
}
|
|
|
|
// Token: 0x06008879 RID: 34937 RVA: 0x0022FBD8 File Offset: 0x0022DDD8
|
|
// Note: this type is marked as 'beforefieldinit'.
|
|
static AimPoser()
|
|
{
|
|
Il2CppClassPointerStore<AimPoser>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "RootMotion.FinalIK", "AimPoser");
|
|
IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<AimPoser>.NativeClassPtr);
|
|
AimPoser.NativeFieldInfoPtr_angleBuffer = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<AimPoser>.NativeClassPtr, "angleBuffer");
|
|
AimPoser.NativeFieldInfoPtr_poses = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<AimPoser>.NativeClassPtr, "poses");
|
|
AimPoser.NativeMethodInfoPtr_GetPose_Public_Pose_Vector3_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<AimPoser>.NativeClassPtr, 100673722);
|
|
AimPoser.NativeMethodInfoPtr_SetPoseActive_Public_Void_Pose_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<AimPoser>.NativeClassPtr, 100673723);
|
|
AimPoser.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<AimPoser>.NativeClassPtr, 100673724);
|
|
}
|
|
|
|
// Token: 0x0600887A RID: 34938 RVA: 0x0000351C File Offset: 0x0000171C
|
|
public AimPoser(IntPtr pointer)
|
|
: base(pointer)
|
|
{
|
|
}
|
|
|
|
// Token: 0x17002E6B RID: 11883
|
|
// (get) Token: 0x0600887B RID: 34939 RVA: 0x0022FC6C File Offset: 0x0022DE6C
|
|
// (set) Token: 0x0600887C RID: 34940 RVA: 0x0022FC94 File Offset: 0x0022DE94
|
|
public unsafe float angleBuffer
|
|
{
|
|
get
|
|
{
|
|
IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(AimPoser.NativeFieldInfoPtr_angleBuffer);
|
|
return *intPtr;
|
|
}
|
|
set
|
|
{
|
|
*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(AimPoser.NativeFieldInfoPtr_angleBuffer)) = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17002E6C RID: 11884
|
|
// (get) Token: 0x0600887D RID: 34941 RVA: 0x0022FCB8 File Offset: 0x0022DEB8
|
|
// (set) Token: 0x0600887E RID: 34942 RVA: 0x0022FCEC File Offset: 0x0022DEEC
|
|
public unsafe Il2CppReferenceArray<AimPoser.Pose> poses
|
|
{
|
|
get
|
|
{
|
|
IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(AimPoser.NativeFieldInfoPtr_poses);
|
|
IntPtr intPtr2 = *intPtr;
|
|
return (intPtr2 != 0) ? new Il2CppReferenceArray<AimPoser.Pose>(intPtr2) : null;
|
|
}
|
|
set
|
|
{
|
|
IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
|
|
IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(AimPoser.NativeFieldInfoPtr_poses), IL2CPP.Il2CppObjectBaseToPtr(value));
|
|
}
|
|
}
|
|
|
|
// Token: 0x04005B1D RID: 23325
|
|
private static readonly IntPtr NativeFieldInfoPtr_angleBuffer;
|
|
|
|
// Token: 0x04005B1E RID: 23326
|
|
private static readonly IntPtr NativeFieldInfoPtr_poses;
|
|
|
|
// Token: 0x04005B1F RID: 23327
|
|
private static readonly IntPtr NativeMethodInfoPtr_GetPose_Public_Pose_Vector3_0;
|
|
|
|
// Token: 0x04005B20 RID: 23328
|
|
private static readonly IntPtr NativeMethodInfoPtr_SetPoseActive_Public_Void_Pose_0;
|
|
|
|
// Token: 0x04005B21 RID: 23329
|
|
private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
|
|
|
|
// Token: 0x02000480 RID: 1152
|
|
[Serializable]
|
|
public class Pose : Il2CppSystem.Object
|
|
{
|
|
// Token: 0x0600887F RID: 34943 RVA: 0x0022FD14 File Offset: 0x0022DF14
|
|
[CallerCount(1)]
|
|
[CachedScanResults(RefRangeStart = 621718, RefRangeEnd = 621719, XrefRangeStart = 621705, XrefRangeEnd = 621718, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
|
|
public unsafe bool IsInDirection(Vector3 d)
|
|
{
|
|
IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
|
|
checked
|
|
{
|
|
IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
|
|
*ptr = ref d;
|
|
IntPtr intPtr2;
|
|
IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(AimPoser.Pose.NativeMethodInfoPtr_IsInDirection_Public_Boolean_Vector3_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
|
|
Il2CppException.RaiseExceptionIfNecessary(intPtr2);
|
|
return *IL2CPP.il2cpp_object_unbox(intPtr);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06008880 RID: 34944 RVA: 0x0022FD78 File Offset: 0x0022DF78
|
|
[CallerCount(1)]
|
|
[CachedScanResults(RefRangeStart = 223861, RefRangeEnd = 223862, XrefRangeStart = 223861, XrefRangeEnd = 223862, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
|
|
public unsafe void SetAngleBuffer(float value)
|
|
{
|
|
IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
|
|
checked
|
|
{
|
|
IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
|
|
*ptr = ref value;
|
|
IntPtr intPtr2;
|
|
IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(AimPoser.Pose.NativeMethodInfoPtr_SetAngleBuffer_Public_Void_Single_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
|
|
Il2CppException.RaiseExceptionIfNecessary(intPtr2);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06008881 RID: 34945 RVA: 0x0022FDCC File Offset: 0x0022DFCC
|
|
[CallerCount(0)]
|
|
[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 621719, XrefRangeEnd = 621720, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
|
|
public unsafe Pose()
|
|
: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<AimPoser.Pose>.NativeClassPtr))
|
|
{
|
|
IntPtr* ptr = null;
|
|
IntPtr intPtr2;
|
|
IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(AimPoser.Pose.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
|
|
Il2CppException.RaiseExceptionIfNecessary(intPtr2);
|
|
}
|
|
|
|
// Token: 0x06008882 RID: 34946 RVA: 0x0022FE18 File Offset: 0x0022E018
|
|
// Note: this type is marked as 'beforefieldinit'.
|
|
static Pose()
|
|
{
|
|
Il2CppClassPointerStore<AimPoser.Pose>.NativeClassPtr = IL2CPP.GetIl2CppNestedType(Il2CppClassPointerStore<AimPoser>.NativeClassPtr, "Pose");
|
|
IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<AimPoser.Pose>.NativeClassPtr);
|
|
AimPoser.Pose.NativeFieldInfoPtr_visualize = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<AimPoser.Pose>.NativeClassPtr, "visualize");
|
|
AimPoser.Pose.NativeFieldInfoPtr_name = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<AimPoser.Pose>.NativeClassPtr, "name");
|
|
AimPoser.Pose.NativeFieldInfoPtr_direction = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<AimPoser.Pose>.NativeClassPtr, "direction");
|
|
AimPoser.Pose.NativeFieldInfoPtr_yaw = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<AimPoser.Pose>.NativeClassPtr, "yaw");
|
|
AimPoser.Pose.NativeFieldInfoPtr_pitch = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<AimPoser.Pose>.NativeClassPtr, "pitch");
|
|
AimPoser.Pose.NativeFieldInfoPtr_angleBuffer = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<AimPoser.Pose>.NativeClassPtr, "angleBuffer");
|
|
AimPoser.Pose.NativeMethodInfoPtr_IsInDirection_Public_Boolean_Vector3_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<AimPoser.Pose>.NativeClassPtr, 100673725);
|
|
AimPoser.Pose.NativeMethodInfoPtr_SetAngleBuffer_Public_Void_Single_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<AimPoser.Pose>.NativeClassPtr, 100673726);
|
|
AimPoser.Pose.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<AimPoser.Pose>.NativeClassPtr, 100673727);
|
|
}
|
|
|
|
// Token: 0x06008883 RID: 34947 RVA: 0x0000A74C File Offset: 0x0000894C
|
|
public Pose(IntPtr pointer)
|
|
: base(pointer)
|
|
{
|
|
}
|
|
|
|
// Token: 0x17002E6D RID: 11885
|
|
// (get) Token: 0x06008884 RID: 34948 RVA: 0x0022FEF8 File Offset: 0x0022E0F8
|
|
// (set) Token: 0x06008885 RID: 34949 RVA: 0x0022FF20 File Offset: 0x0022E120
|
|
public unsafe bool visualize
|
|
{
|
|
get
|
|
{
|
|
IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(AimPoser.Pose.NativeFieldInfoPtr_visualize);
|
|
return *intPtr;
|
|
}
|
|
set
|
|
{
|
|
*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(AimPoser.Pose.NativeFieldInfoPtr_visualize)) = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17002E6E RID: 11886
|
|
// (get) Token: 0x06008886 RID: 34950 RVA: 0x0022FF44 File Offset: 0x0022E144
|
|
// (set) Token: 0x06008887 RID: 34951 RVA: 0x0022FF6D File Offset: 0x0022E16D
|
|
public unsafe string name
|
|
{
|
|
get
|
|
{
|
|
IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(AimPoser.Pose.NativeFieldInfoPtr_name);
|
|
return IL2CPP.Il2CppStringToManaged(*intPtr);
|
|
}
|
|
set
|
|
{
|
|
IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
|
|
IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(AimPoser.Pose.NativeFieldInfoPtr_name), IL2CPP.ManagedStringToIl2Cpp(value));
|
|
}
|
|
}
|
|
|
|
// Token: 0x17002E6F RID: 11887
|
|
// (get) Token: 0x06008888 RID: 34952 RVA: 0x0022FF94 File Offset: 0x0022E194
|
|
// (set) Token: 0x06008889 RID: 34953 RVA: 0x0022FFBC File Offset: 0x0022E1BC
|
|
public unsafe Vector3 direction
|
|
{
|
|
get
|
|
{
|
|
IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(AimPoser.Pose.NativeFieldInfoPtr_direction);
|
|
return *intPtr;
|
|
}
|
|
set
|
|
{
|
|
*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(AimPoser.Pose.NativeFieldInfoPtr_direction)) = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17002E70 RID: 11888
|
|
// (get) Token: 0x0600888A RID: 34954 RVA: 0x0022FFE0 File Offset: 0x0022E1E0
|
|
// (set) Token: 0x0600888B RID: 34955 RVA: 0x00230008 File Offset: 0x0022E208
|
|
public unsafe float yaw
|
|
{
|
|
get
|
|
{
|
|
IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(AimPoser.Pose.NativeFieldInfoPtr_yaw);
|
|
return *intPtr;
|
|
}
|
|
set
|
|
{
|
|
*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(AimPoser.Pose.NativeFieldInfoPtr_yaw)) = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17002E71 RID: 11889
|
|
// (get) Token: 0x0600888C RID: 34956 RVA: 0x0023002C File Offset: 0x0022E22C
|
|
// (set) Token: 0x0600888D RID: 34957 RVA: 0x00230054 File Offset: 0x0022E254
|
|
public unsafe float pitch
|
|
{
|
|
get
|
|
{
|
|
IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(AimPoser.Pose.NativeFieldInfoPtr_pitch);
|
|
return *intPtr;
|
|
}
|
|
set
|
|
{
|
|
*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(AimPoser.Pose.NativeFieldInfoPtr_pitch)) = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17002E72 RID: 11890
|
|
// (get) Token: 0x0600888E RID: 34958 RVA: 0x00230078 File Offset: 0x0022E278
|
|
// (set) Token: 0x0600888F RID: 34959 RVA: 0x002300A0 File Offset: 0x0022E2A0
|
|
public unsafe float angleBuffer
|
|
{
|
|
get
|
|
{
|
|
IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(AimPoser.Pose.NativeFieldInfoPtr_angleBuffer);
|
|
return *intPtr;
|
|
}
|
|
set
|
|
{
|
|
*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(AimPoser.Pose.NativeFieldInfoPtr_angleBuffer)) = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x04005B22 RID: 23330
|
|
private static readonly IntPtr NativeFieldInfoPtr_visualize;
|
|
|
|
// Token: 0x04005B23 RID: 23331
|
|
private static readonly IntPtr NativeFieldInfoPtr_name;
|
|
|
|
// Token: 0x04005B24 RID: 23332
|
|
private static readonly IntPtr NativeFieldInfoPtr_direction;
|
|
|
|
// Token: 0x04005B25 RID: 23333
|
|
private static readonly IntPtr NativeFieldInfoPtr_yaw;
|
|
|
|
// Token: 0x04005B26 RID: 23334
|
|
private static readonly IntPtr NativeFieldInfoPtr_pitch;
|
|
|
|
// Token: 0x04005B27 RID: 23335
|
|
private static readonly IntPtr NativeFieldInfoPtr_angleBuffer;
|
|
|
|
// Token: 0x04005B28 RID: 23336
|
|
private static readonly IntPtr NativeMethodInfoPtr_IsInDirection_Public_Boolean_Vector3_0;
|
|
|
|
// Token: 0x04005B29 RID: 23337
|
|
private static readonly IntPtr NativeMethodInfoPtr_SetAngleBuffer_Public_Void_Single_0;
|
|
|
|
// Token: 0x04005B2A RID: 23338
|
|
private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
|
|
}
|
|
}
|
|
}
|