327 lines
14 KiB
C#
327 lines
14 KiB
C#
using System;
|
|
using Il2CppInterop.Common.Attributes;
|
|
using Il2CppInterop.Runtime;
|
|
using RootMotion.FinalIK;
|
|
using UnityEngine;
|
|
|
|
namespace RootMotion.Demos
|
|
{
|
|
// Token: 0x020003CF RID: 975
|
|
public class ExplosionDemo : MonoBehaviour
|
|
{
|
|
// Token: 0x0600780F RID: 30735 RVA: 0x001EA420 File Offset: 0x001E8620
|
|
[CallerCount(0)]
|
|
[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 609567, XrefRangeEnd = 609578, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
|
|
public unsafe void Start()
|
|
{
|
|
IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
|
|
IntPtr* ptr = null;
|
|
IntPtr intPtr2;
|
|
IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ExplosionDemo.NativeMethodInfoPtr_Start_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
|
|
Il2CppException.RaiseExceptionIfNecessary(intPtr2);
|
|
}
|
|
|
|
// Token: 0x06007810 RID: 30736 RVA: 0x001EA464 File Offset: 0x001E8664
|
|
[CallerCount(0)]
|
|
[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 609578, XrefRangeEnd = 609611, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
|
|
public unsafe void Update()
|
|
{
|
|
IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
|
|
IntPtr* ptr = null;
|
|
IntPtr intPtr2;
|
|
IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ExplosionDemo.NativeMethodInfoPtr_Update_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
|
|
Il2CppException.RaiseExceptionIfNecessary(intPtr2);
|
|
}
|
|
|
|
// Token: 0x06007811 RID: 30737 RVA: 0x001EA4A8 File Offset: 0x001E86A8
|
|
[CallerCount(0)]
|
|
[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 609611, XrefRangeEnd = 609615, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
|
|
public unsafe void SetEffectorWeights(float w)
|
|
{
|
|
IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
|
|
checked
|
|
{
|
|
IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
|
|
*ptr = ref w;
|
|
IntPtr intPtr2;
|
|
IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ExplosionDemo.NativeMethodInfoPtr_SetEffectorWeights_Private_Void_Single_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
|
|
Il2CppException.RaiseExceptionIfNecessary(intPtr2);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06007812 RID: 30738 RVA: 0x001EA4FC File Offset: 0x001E86FC
|
|
[CallerCount(0)]
|
|
[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 609615, XrefRangeEnd = 609617, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
|
|
public unsafe ExplosionDemo()
|
|
: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<ExplosionDemo>.NativeClassPtr))
|
|
{
|
|
IntPtr* ptr = null;
|
|
IntPtr intPtr2;
|
|
IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ExplosionDemo.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
|
|
Il2CppException.RaiseExceptionIfNecessary(intPtr2);
|
|
}
|
|
|
|
// Token: 0x06007813 RID: 30739 RVA: 0x001EA548 File Offset: 0x001E8748
|
|
// Note: this type is marked as 'beforefieldinit'.
|
|
static ExplosionDemo()
|
|
{
|
|
Il2CppClassPointerStore<ExplosionDemo>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "RootMotion.Demos", "ExplosionDemo");
|
|
IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<ExplosionDemo>.NativeClassPtr);
|
|
ExplosionDemo.NativeFieldInfoPtr_character = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ExplosionDemo>.NativeClassPtr, "character");
|
|
ExplosionDemo.NativeFieldInfoPtr_forceMlp = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ExplosionDemo>.NativeClassPtr, "forceMlp");
|
|
ExplosionDemo.NativeFieldInfoPtr_upForce = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ExplosionDemo>.NativeClassPtr, "upForce");
|
|
ExplosionDemo.NativeFieldInfoPtr_weightFalloffSpeed = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ExplosionDemo>.NativeClassPtr, "weightFalloffSpeed");
|
|
ExplosionDemo.NativeFieldInfoPtr_weightFalloff = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ExplosionDemo>.NativeClassPtr, "weightFalloff");
|
|
ExplosionDemo.NativeFieldInfoPtr_explosionForceByDistance = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ExplosionDemo>.NativeClassPtr, "explosionForceByDistance");
|
|
ExplosionDemo.NativeFieldInfoPtr_scale = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ExplosionDemo>.NativeClassPtr, "scale");
|
|
ExplosionDemo.NativeFieldInfoPtr_weight = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ExplosionDemo>.NativeClassPtr, "weight");
|
|
ExplosionDemo.NativeFieldInfoPtr_defaultScale = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ExplosionDemo>.NativeClassPtr, "defaultScale");
|
|
ExplosionDemo.NativeFieldInfoPtr_r = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ExplosionDemo>.NativeClassPtr, "r");
|
|
ExplosionDemo.NativeFieldInfoPtr_ik = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ExplosionDemo>.NativeClassPtr, "ik");
|
|
ExplosionDemo.NativeMethodInfoPtr_Start_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ExplosionDemo>.NativeClassPtr, 100672363);
|
|
ExplosionDemo.NativeMethodInfoPtr_Update_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ExplosionDemo>.NativeClassPtr, 100672364);
|
|
ExplosionDemo.NativeMethodInfoPtr_SetEffectorWeights_Private_Void_Single_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ExplosionDemo>.NativeClassPtr, 100672365);
|
|
ExplosionDemo.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ExplosionDemo>.NativeClassPtr, 100672366);
|
|
}
|
|
|
|
// Token: 0x06007814 RID: 30740 RVA: 0x0000351C File Offset: 0x0000171C
|
|
public ExplosionDemo(IntPtr pointer)
|
|
: base(pointer)
|
|
{
|
|
}
|
|
|
|
// Token: 0x170028F9 RID: 10489
|
|
// (get) Token: 0x06007815 RID: 30741 RVA: 0x001EA6A4 File Offset: 0x001E88A4
|
|
// (set) Token: 0x06007816 RID: 30742 RVA: 0x001EA6D8 File Offset: 0x001E88D8
|
|
public unsafe SimpleLocomotion character
|
|
{
|
|
get
|
|
{
|
|
IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ExplosionDemo.NativeFieldInfoPtr_character);
|
|
IntPtr intPtr2 = *intPtr;
|
|
return (intPtr2 != 0) ? new SimpleLocomotion(intPtr2) : null;
|
|
}
|
|
set
|
|
{
|
|
IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
|
|
IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(ExplosionDemo.NativeFieldInfoPtr_character), IL2CPP.Il2CppObjectBaseToPtr(value));
|
|
}
|
|
}
|
|
|
|
// Token: 0x170028FA RID: 10490
|
|
// (get) Token: 0x06007817 RID: 30743 RVA: 0x001EA700 File Offset: 0x001E8900
|
|
// (set) Token: 0x06007818 RID: 30744 RVA: 0x001EA728 File Offset: 0x001E8928
|
|
public unsafe float forceMlp
|
|
{
|
|
get
|
|
{
|
|
IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ExplosionDemo.NativeFieldInfoPtr_forceMlp);
|
|
return *intPtr;
|
|
}
|
|
set
|
|
{
|
|
*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ExplosionDemo.NativeFieldInfoPtr_forceMlp)) = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x170028FB RID: 10491
|
|
// (get) Token: 0x06007819 RID: 30745 RVA: 0x001EA74C File Offset: 0x001E894C
|
|
// (set) Token: 0x0600781A RID: 30746 RVA: 0x001EA774 File Offset: 0x001E8974
|
|
public unsafe float upForce
|
|
{
|
|
get
|
|
{
|
|
IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ExplosionDemo.NativeFieldInfoPtr_upForce);
|
|
return *intPtr;
|
|
}
|
|
set
|
|
{
|
|
*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ExplosionDemo.NativeFieldInfoPtr_upForce)) = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x170028FC RID: 10492
|
|
// (get) Token: 0x0600781B RID: 30747 RVA: 0x001EA798 File Offset: 0x001E8998
|
|
// (set) Token: 0x0600781C RID: 30748 RVA: 0x001EA7C0 File Offset: 0x001E89C0
|
|
public unsafe float weightFalloffSpeed
|
|
{
|
|
get
|
|
{
|
|
IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ExplosionDemo.NativeFieldInfoPtr_weightFalloffSpeed);
|
|
return *intPtr;
|
|
}
|
|
set
|
|
{
|
|
*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ExplosionDemo.NativeFieldInfoPtr_weightFalloffSpeed)) = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x170028FD RID: 10493
|
|
// (get) Token: 0x0600781D RID: 30749 RVA: 0x001EA7E4 File Offset: 0x001E89E4
|
|
// (set) Token: 0x0600781E RID: 30750 RVA: 0x001EA818 File Offset: 0x001E8A18
|
|
public unsafe AnimationCurve weightFalloff
|
|
{
|
|
get
|
|
{
|
|
IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ExplosionDemo.NativeFieldInfoPtr_weightFalloff);
|
|
IntPtr intPtr2 = *intPtr;
|
|
return (intPtr2 != 0) ? new AnimationCurve(intPtr2) : null;
|
|
}
|
|
set
|
|
{
|
|
IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
|
|
IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(ExplosionDemo.NativeFieldInfoPtr_weightFalloff), IL2CPP.Il2CppObjectBaseToPtr(value));
|
|
}
|
|
}
|
|
|
|
// Token: 0x170028FE RID: 10494
|
|
// (get) Token: 0x0600781F RID: 30751 RVA: 0x001EA840 File Offset: 0x001E8A40
|
|
// (set) Token: 0x06007820 RID: 30752 RVA: 0x001EA874 File Offset: 0x001E8A74
|
|
public unsafe AnimationCurve explosionForceByDistance
|
|
{
|
|
get
|
|
{
|
|
IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ExplosionDemo.NativeFieldInfoPtr_explosionForceByDistance);
|
|
IntPtr intPtr2 = *intPtr;
|
|
return (intPtr2 != 0) ? new AnimationCurve(intPtr2) : null;
|
|
}
|
|
set
|
|
{
|
|
IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
|
|
IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(ExplosionDemo.NativeFieldInfoPtr_explosionForceByDistance), IL2CPP.Il2CppObjectBaseToPtr(value));
|
|
}
|
|
}
|
|
|
|
// Token: 0x170028FF RID: 10495
|
|
// (get) Token: 0x06007821 RID: 30753 RVA: 0x001EA89C File Offset: 0x001E8A9C
|
|
// (set) Token: 0x06007822 RID: 30754 RVA: 0x001EA8D0 File Offset: 0x001E8AD0
|
|
public unsafe AnimationCurve scale
|
|
{
|
|
get
|
|
{
|
|
IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ExplosionDemo.NativeFieldInfoPtr_scale);
|
|
IntPtr intPtr2 = *intPtr;
|
|
return (intPtr2 != 0) ? new AnimationCurve(intPtr2) : null;
|
|
}
|
|
set
|
|
{
|
|
IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
|
|
IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(ExplosionDemo.NativeFieldInfoPtr_scale), IL2CPP.Il2CppObjectBaseToPtr(value));
|
|
}
|
|
}
|
|
|
|
// Token: 0x17002900 RID: 10496
|
|
// (get) Token: 0x06007823 RID: 30755 RVA: 0x001EA8F8 File Offset: 0x001E8AF8
|
|
// (set) Token: 0x06007824 RID: 30756 RVA: 0x001EA920 File Offset: 0x001E8B20
|
|
public unsafe float weight
|
|
{
|
|
get
|
|
{
|
|
IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ExplosionDemo.NativeFieldInfoPtr_weight);
|
|
return *intPtr;
|
|
}
|
|
set
|
|
{
|
|
*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ExplosionDemo.NativeFieldInfoPtr_weight)) = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17002901 RID: 10497
|
|
// (get) Token: 0x06007825 RID: 30757 RVA: 0x001EA944 File Offset: 0x001E8B44
|
|
// (set) Token: 0x06007826 RID: 30758 RVA: 0x001EA96C File Offset: 0x001E8B6C
|
|
public unsafe Vector3 defaultScale
|
|
{
|
|
get
|
|
{
|
|
IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ExplosionDemo.NativeFieldInfoPtr_defaultScale);
|
|
return *intPtr;
|
|
}
|
|
set
|
|
{
|
|
*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ExplosionDemo.NativeFieldInfoPtr_defaultScale)) = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17002902 RID: 10498
|
|
// (get) Token: 0x06007827 RID: 30759 RVA: 0x001EA990 File Offset: 0x001E8B90
|
|
// (set) Token: 0x06007828 RID: 30760 RVA: 0x001EA9C4 File Offset: 0x001E8BC4
|
|
public unsafe Rigidbody r
|
|
{
|
|
get
|
|
{
|
|
IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ExplosionDemo.NativeFieldInfoPtr_r);
|
|
IntPtr intPtr2 = *intPtr;
|
|
return (intPtr2 != 0) ? new Rigidbody(intPtr2) : null;
|
|
}
|
|
set
|
|
{
|
|
IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
|
|
IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(ExplosionDemo.NativeFieldInfoPtr_r), IL2CPP.Il2CppObjectBaseToPtr(value));
|
|
}
|
|
}
|
|
|
|
// Token: 0x17002903 RID: 10499
|
|
// (get) Token: 0x06007829 RID: 30761 RVA: 0x001EA9EC File Offset: 0x001E8BEC
|
|
// (set) Token: 0x0600782A RID: 30762 RVA: 0x001EAA20 File Offset: 0x001E8C20
|
|
public unsafe FullBodyBipedIK ik
|
|
{
|
|
get
|
|
{
|
|
IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ExplosionDemo.NativeFieldInfoPtr_ik);
|
|
IntPtr intPtr2 = *intPtr;
|
|
return (intPtr2 != 0) ? new FullBodyBipedIK(intPtr2) : null;
|
|
}
|
|
set
|
|
{
|
|
IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
|
|
IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(ExplosionDemo.NativeFieldInfoPtr_ik), IL2CPP.Il2CppObjectBaseToPtr(value));
|
|
}
|
|
}
|
|
|
|
// Token: 0x0400508E RID: 20622
|
|
private static readonly IntPtr NativeFieldInfoPtr_character;
|
|
|
|
// Token: 0x0400508F RID: 20623
|
|
private static readonly IntPtr NativeFieldInfoPtr_forceMlp;
|
|
|
|
// Token: 0x04005090 RID: 20624
|
|
private static readonly IntPtr NativeFieldInfoPtr_upForce;
|
|
|
|
// Token: 0x04005091 RID: 20625
|
|
private static readonly IntPtr NativeFieldInfoPtr_weightFalloffSpeed;
|
|
|
|
// Token: 0x04005092 RID: 20626
|
|
private static readonly IntPtr NativeFieldInfoPtr_weightFalloff;
|
|
|
|
// Token: 0x04005093 RID: 20627
|
|
private static readonly IntPtr NativeFieldInfoPtr_explosionForceByDistance;
|
|
|
|
// Token: 0x04005094 RID: 20628
|
|
private static readonly IntPtr NativeFieldInfoPtr_scale;
|
|
|
|
// Token: 0x04005095 RID: 20629
|
|
private static readonly IntPtr NativeFieldInfoPtr_weight;
|
|
|
|
// Token: 0x04005096 RID: 20630
|
|
private static readonly IntPtr NativeFieldInfoPtr_defaultScale;
|
|
|
|
// Token: 0x04005097 RID: 20631
|
|
private static readonly IntPtr NativeFieldInfoPtr_r;
|
|
|
|
// Token: 0x04005098 RID: 20632
|
|
private static readonly IntPtr NativeFieldInfoPtr_ik;
|
|
|
|
// Token: 0x04005099 RID: 20633
|
|
private static readonly IntPtr NativeMethodInfoPtr_Start_Private_Void_0;
|
|
|
|
// Token: 0x0400509A RID: 20634
|
|
private static readonly IntPtr NativeMethodInfoPtr_Update_Private_Void_0;
|
|
|
|
// Token: 0x0400509B RID: 20635
|
|
private static readonly IntPtr NativeMethodInfoPtr_SetEffectorWeights_Private_Void_Single_0;
|
|
|
|
// Token: 0x0400509C RID: 20636
|
|
private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
|
|
}
|
|
}
|