using System;
using Il2CppInterop.Common.Attributes;
using Il2CppInterop.Runtime;
using Il2CppInterop.Runtime.InteropTypes.Arrays;
using UnityEngine;

// Token: 0x020001EA RID: 490
public class TreasureBox : AttackableObject
{
	// Token: 0x06004CBC RID: 19644 RVA: 0x00130B30 File Offset: 0x0012ED30
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 547336, XrefRangeEnd = 547354, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe override void Init()
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), TreasureBox.NativeMethodInfoPtr_Init_Public_Virtual_Void_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x06004CBD RID: 19645 RVA: 0x00130B80 File Offset: 0x0012ED80
	[CallerCount(0)]
	public unsafe void InitTreasureData(int index)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = ref index;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(TreasureBox.NativeMethodInfoPtr_InitTreasureData_Public_Void_Int32_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x06004CBE RID: 19646 RVA: 0x00130BD4 File Offset: 0x0012EDD4
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 547354, XrefRangeEnd = 547361, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe override void HitPhysical(AttackData AD)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = IL2CPP.Il2CppObjectBaseToPtr(AD);
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), TreasureBox.NativeMethodInfoPtr_HitPhysical_Public_Virtual_Void_AttackData_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x06004CBF RID: 19647 RVA: 0x00130C38 File Offset: 0x0012EE38
	[CallerCount(5585)]
	[CachedScanResults(RefRangeStart = 24, RefRangeEnd = 5609, XrefRangeStart = 24, XrefRangeEnd = 5609, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe override void HitMagic(AttackData AD)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = IL2CPP.Il2CppObjectBaseToPtr(AD);
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), TreasureBox.NativeMethodInfoPtr_HitMagic_Public_Virtual_Void_AttackData_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x06004CC0 RID: 19648 RVA: 0x00130C9C File Offset: 0x0012EE9C
	[CallerCount(1)]
	[CachedScanResults(RefRangeStart = 547385, RefRangeEnd = 547386, XrefRangeStart = 547361, XrefRangeEnd = 547385, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void SetOpen()
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(TreasureBox.NativeMethodInfoPtr_SetOpen_Protected_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x06004CC1 RID: 19649 RVA: 0x00130CE0 File Offset: 0x0012EEE0
	[CallerCount(1)]
	[CachedScanResults(RefRangeStart = 547397, RefRangeEnd = 547398, XrefRangeStart = 547386, XrefRangeEnd = 547397, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void SetIsOpen(bool bOpen)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = ref bOpen;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(TreasureBox.NativeMethodInfoPtr_SetIsOpen_Public_Void_Boolean_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x06004CC2 RID: 19650 RVA: 0x00130D34 File Offset: 0x0012EF34
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 547398, XrefRangeEnd = 547415, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public new unsafe void OnEnable()
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(TreasureBox.NativeMethodInfoPtr_OnEnable_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x06004CC3 RID: 19651 RVA: 0x00130D78 File Offset: 0x0012EF78
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 0, XrefRangeEnd = 0, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe TreasureBox()
		: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<TreasureBox>.NativeClassPtr))
	{
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(TreasureBox.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x06004CC4 RID: 19652 RVA: 0x00130DC4 File Offset: 0x0012EFC4
	// Note: this type is marked as 'beforefieldinit'.
	static TreasureBox()
	{
		Il2CppClassPointerStore<TreasureBox>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "", "TreasureBox");
		IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<TreasureBox>.NativeClassPtr);
		TreasureBox.NativeFieldInfoPtr_ItemType = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<TreasureBox>.NativeClassPtr, "ItemType");
		TreasureBox.NativeFieldInfoPtr_PS = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<TreasureBox>.NativeClassPtr, "PS");
		TreasureBox.NativeFieldInfoPtr_OpenEvent = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<TreasureBox>.NativeClassPtr, "OpenEvent");
		TreasureBox.NativeFieldInfoPtr_OpenCollider = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<TreasureBox>.NativeClassPtr, "OpenCollider");
		TreasureBox.NativeFieldInfoPtr_index = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<TreasureBox>.NativeClassPtr, "index");
		TreasureBox.NativeFieldInfoPtr_hasOpened = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<TreasureBox>.NativeClassPtr, "hasOpened");
		TreasureBox.NativeFieldInfoPtr_g_v3Center = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<TreasureBox>.NativeClassPtr, "g_v3Center");
		TreasureBox.NativeFieldInfoPtr_g_Ani = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<TreasureBox>.NativeClassPtr, "g_Ani");
		TreasureBox.NativeMethodInfoPtr_Init_Public_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<TreasureBox>.NativeClassPtr, 100668351);
		TreasureBox.NativeMethodInfoPtr_InitTreasureData_Public_Void_Int32_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<TreasureBox>.NativeClassPtr, 100668352);
		TreasureBox.NativeMethodInfoPtr_HitPhysical_Public_Virtual_Void_AttackData_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<TreasureBox>.NativeClassPtr, 100668353);
		TreasureBox.NativeMethodInfoPtr_HitMagic_Public_Virtual_Void_AttackData_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<TreasureBox>.NativeClassPtr, 100668354);
		TreasureBox.NativeMethodInfoPtr_SetOpen_Protected_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<TreasureBox>.NativeClassPtr, 100668355);
		TreasureBox.NativeMethodInfoPtr_SetIsOpen_Public_Void_Boolean_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<TreasureBox>.NativeClassPtr, 100668356);
		TreasureBox.NativeMethodInfoPtr_OnEnable_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<TreasureBox>.NativeClassPtr, 100668357);
		TreasureBox.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<TreasureBox>.NativeClassPtr, 100668358);
	}

	// Token: 0x06004CC5 RID: 19653 RVA: 0x0006B324 File Offset: 0x00069524
	public TreasureBox(IntPtr pointer)
		: base(pointer)
	{
	}

	// Token: 0x17001BA7 RID: 7079
	// (get) Token: 0x06004CC6 RID: 19654 RVA: 0x00130F34 File Offset: 0x0012F134
	// (set) Token: 0x06004CC7 RID: 19655 RVA: 0x00130F5C File Offset: 0x0012F15C
	public unsafe ItemSystem.ItemType ItemType
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(TreasureBox.NativeFieldInfoPtr_ItemType);
			return *intPtr;
		}
		set
		{
			*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(TreasureBox.NativeFieldInfoPtr_ItemType)) = value;
		}
	}

	// Token: 0x17001BA8 RID: 7080
	// (get) Token: 0x06004CC8 RID: 19656 RVA: 0x00130F80 File Offset: 0x0012F180
	// (set) Token: 0x06004CC9 RID: 19657 RVA: 0x00130FB4 File Offset: 0x0012F1B4
	public unsafe ParticleSystem PS
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(TreasureBox.NativeFieldInfoPtr_PS);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new ParticleSystem(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(TreasureBox.NativeFieldInfoPtr_PS), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x17001BA9 RID: 7081
	// (get) Token: 0x06004CCA RID: 19658 RVA: 0x00130FDC File Offset: 0x0012F1DC
	// (set) Token: 0x06004CCB RID: 19659 RVA: 0x00131010 File Offset: 0x0012F210
	public unsafe Il2CppReferenceArray<SceneEvent> OpenEvent
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(TreasureBox.NativeFieldInfoPtr_OpenEvent);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new Il2CppReferenceArray<SceneEvent>(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(TreasureBox.NativeFieldInfoPtr_OpenEvent), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x17001BAA RID: 7082
	// (get) Token: 0x06004CCC RID: 19660 RVA: 0x00131038 File Offset: 0x0012F238
	// (set) Token: 0x06004CCD RID: 19661 RVA: 0x0013106C File Offset: 0x0012F26C
	public unsafe BoxCollider OpenCollider
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(TreasureBox.NativeFieldInfoPtr_OpenCollider);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new BoxCollider(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(TreasureBox.NativeFieldInfoPtr_OpenCollider), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x17001BAB RID: 7083
	// (get) Token: 0x06004CCE RID: 19662 RVA: 0x00131094 File Offset: 0x0012F294
	// (set) Token: 0x06004CCF RID: 19663 RVA: 0x001310BC File Offset: 0x0012F2BC
	public unsafe int index
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(TreasureBox.NativeFieldInfoPtr_index);
			return *intPtr;
		}
		set
		{
			*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(TreasureBox.NativeFieldInfoPtr_index)) = value;
		}
	}

	// Token: 0x17001BAC RID: 7084
	// (get) Token: 0x06004CD0 RID: 19664 RVA: 0x001310E0 File Offset: 0x0012F2E0
	// (set) Token: 0x06004CD1 RID: 19665 RVA: 0x00131108 File Offset: 0x0012F308
	public unsafe bool hasOpened
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(TreasureBox.NativeFieldInfoPtr_hasOpened);
			return *intPtr;
		}
		set
		{
			*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(TreasureBox.NativeFieldInfoPtr_hasOpened)) = value;
		}
	}

	// Token: 0x17001BAD RID: 7085
	// (get) Token: 0x06004CD2 RID: 19666 RVA: 0x0013112C File Offset: 0x0012F32C
	// (set) Token: 0x06004CD3 RID: 19667 RVA: 0x00131154 File Offset: 0x0012F354
	public unsafe Vector3 g_v3Center
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(TreasureBox.NativeFieldInfoPtr_g_v3Center);
			return *intPtr;
		}
		set
		{
			*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(TreasureBox.NativeFieldInfoPtr_g_v3Center)) = value;
		}
	}

	// Token: 0x17001BAE RID: 7086
	// (get) Token: 0x06004CD4 RID: 19668 RVA: 0x00131178 File Offset: 0x0012F378
	// (set) Token: 0x06004CD5 RID: 19669 RVA: 0x001311AC File Offset: 0x0012F3AC
	public unsafe Animator g_Ani
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(TreasureBox.NativeFieldInfoPtr_g_Ani);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new Animator(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(TreasureBox.NativeFieldInfoPtr_g_Ani), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x04003282 RID: 12930
	private static readonly IntPtr NativeFieldInfoPtr_ItemType;

	// Token: 0x04003283 RID: 12931
	private static readonly IntPtr NativeFieldInfoPtr_PS;

	// Token: 0x04003284 RID: 12932
	private static readonly IntPtr NativeFieldInfoPtr_OpenEvent;

	// Token: 0x04003285 RID: 12933
	private static readonly IntPtr NativeFieldInfoPtr_OpenCollider;

	// Token: 0x04003286 RID: 12934
	private static readonly IntPtr NativeFieldInfoPtr_index;

	// Token: 0x04003287 RID: 12935
	private static readonly IntPtr NativeFieldInfoPtr_hasOpened;

	// Token: 0x04003288 RID: 12936
	private static readonly IntPtr NativeFieldInfoPtr_g_v3Center;

	// Token: 0x04003289 RID: 12937
	private static readonly IntPtr NativeFieldInfoPtr_g_Ani;

	// Token: 0x0400328A RID: 12938
	private static readonly IntPtr NativeMethodInfoPtr_Init_Public_Virtual_Void_0;

	// Token: 0x0400328B RID: 12939
	private static readonly IntPtr NativeMethodInfoPtr_InitTreasureData_Public_Void_Int32_0;

	// Token: 0x0400328C RID: 12940
	private static readonly IntPtr NativeMethodInfoPtr_HitPhysical_Public_Virtual_Void_AttackData_0;

	// Token: 0x0400328D RID: 12941
	private static readonly IntPtr NativeMethodInfoPtr_HitMagic_Public_Virtual_Void_AttackData_0;

	// Token: 0x0400328E RID: 12942
	private static readonly IntPtr NativeMethodInfoPtr_SetOpen_Protected_Void_0;

	// Token: 0x0400328F RID: 12943
	private static readonly IntPtr NativeMethodInfoPtr_SetIsOpen_Public_Void_Boolean_0;

	// Token: 0x04003290 RID: 12944
	private static readonly IntPtr NativeMethodInfoPtr_OnEnable_Private_Void_0;

	// Token: 0x04003291 RID: 12945
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
}
