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

// Token: 0x02000227 RID: 551
public class TreasureBox : AttackableObject
{
	// Token: 0x060051ED RID: 20973 RVA: 0x00146350 File Offset: 0x00144550
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 575419, XrefRangeEnd = 575437, 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: 0x060051EE RID: 20974 RVA: 0x001463A0 File Offset: 0x001445A0
	[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: 0x060051EF RID: 20975 RVA: 0x001463F4 File Offset: 0x001445F4
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 575437, XrefRangeEnd = 575444, 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: 0x060051F0 RID: 20976 RVA: 0x00146458 File Offset: 0x00144658
	[CallerCount(5874)]
	[CachedScanResults(RefRangeStart = 24, RefRangeEnd = 5898, XrefRangeStart = 24, XrefRangeEnd = 5898, 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: 0x060051F1 RID: 20977 RVA: 0x001464BC File Offset: 0x001446BC
	[CallerCount(1)]
	[CachedScanResults(RefRangeStart = 575468, RefRangeEnd = 575469, XrefRangeStart = 575444, XrefRangeEnd = 575468, 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: 0x060051F2 RID: 20978 RVA: 0x00146500 File Offset: 0x00144700
	[CallerCount(1)]
	[CachedScanResults(RefRangeStart = 575480, RefRangeEnd = 575481, XrefRangeStart = 575469, XrefRangeEnd = 575480, 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: 0x060051F3 RID: 20979 RVA: 0x00146554 File Offset: 0x00144754
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 575481, XrefRangeEnd = 575498, 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: 0x060051F4 RID: 20980 RVA: 0x00146598 File Offset: 0x00144798
	[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: 0x060051F5 RID: 20981 RVA: 0x001465E4 File Offset: 0x001447E4
	// 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, 100668788);
		TreasureBox.NativeMethodInfoPtr_InitTreasureData_Public_Void_Int32_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<TreasureBox>.NativeClassPtr, 100668789);
		TreasureBox.NativeMethodInfoPtr_HitPhysical_Public_Virtual_Void_AttackData_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<TreasureBox>.NativeClassPtr, 100668790);
		TreasureBox.NativeMethodInfoPtr_HitMagic_Public_Virtual_Void_AttackData_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<TreasureBox>.NativeClassPtr, 100668791);
		TreasureBox.NativeMethodInfoPtr_SetOpen_Protected_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<TreasureBox>.NativeClassPtr, 100668792);
		TreasureBox.NativeMethodInfoPtr_SetIsOpen_Public_Void_Boolean_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<TreasureBox>.NativeClassPtr, 100668793);
		TreasureBox.NativeMethodInfoPtr_OnEnable_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<TreasureBox>.NativeClassPtr, 100668794);
		TreasureBox.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<TreasureBox>.NativeClassPtr, 100668795);
	}

	// Token: 0x060051F6 RID: 20982 RVA: 0x00071BAC File Offset: 0x0006FDAC
	public TreasureBox(IntPtr pointer)
		: base(pointer)
	{
	}

	// Token: 0x17001D2A RID: 7466
	// (get) Token: 0x060051F7 RID: 20983 RVA: 0x00146754 File Offset: 0x00144954
	// (set) Token: 0x060051F8 RID: 20984 RVA: 0x0014677C File Offset: 0x0014497C
	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: 0x17001D2B RID: 7467
	// (get) Token: 0x060051F9 RID: 20985 RVA: 0x001467A0 File Offset: 0x001449A0
	// (set) Token: 0x060051FA RID: 20986 RVA: 0x001467D4 File Offset: 0x001449D4
	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: 0x17001D2C RID: 7468
	// (get) Token: 0x060051FB RID: 20987 RVA: 0x001467FC File Offset: 0x001449FC
	// (set) Token: 0x060051FC RID: 20988 RVA: 0x00146830 File Offset: 0x00144A30
	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: 0x17001D2D RID: 7469
	// (get) Token: 0x060051FD RID: 20989 RVA: 0x00146858 File Offset: 0x00144A58
	// (set) Token: 0x060051FE RID: 20990 RVA: 0x0014688C File Offset: 0x00144A8C
	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: 0x17001D2E RID: 7470
	// (get) Token: 0x060051FF RID: 20991 RVA: 0x001468B4 File Offset: 0x00144AB4
	// (set) Token: 0x06005200 RID: 20992 RVA: 0x001468DC File Offset: 0x00144ADC
	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: 0x17001D2F RID: 7471
	// (get) Token: 0x06005201 RID: 20993 RVA: 0x00146900 File Offset: 0x00144B00
	// (set) Token: 0x06005202 RID: 20994 RVA: 0x00146928 File Offset: 0x00144B28
	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: 0x17001D30 RID: 7472
	// (get) Token: 0x06005203 RID: 20995 RVA: 0x0014694C File Offset: 0x00144B4C
	// (set) Token: 0x06005204 RID: 20996 RVA: 0x00146974 File Offset: 0x00144B74
	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: 0x17001D31 RID: 7473
	// (get) Token: 0x06005205 RID: 20997 RVA: 0x00146998 File Offset: 0x00144B98
	// (set) Token: 0x06005206 RID: 20998 RVA: 0x001469CC File Offset: 0x00144BCC
	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: 0x04003603 RID: 13827
	private static readonly IntPtr NativeFieldInfoPtr_ItemType;

	// Token: 0x04003604 RID: 13828
	private static readonly IntPtr NativeFieldInfoPtr_PS;

	// Token: 0x04003605 RID: 13829
	private static readonly IntPtr NativeFieldInfoPtr_OpenEvent;

	// Token: 0x04003606 RID: 13830
	private static readonly IntPtr NativeFieldInfoPtr_OpenCollider;

	// Token: 0x04003607 RID: 13831
	private static readonly IntPtr NativeFieldInfoPtr_index;

	// Token: 0x04003608 RID: 13832
	private static readonly IntPtr NativeFieldInfoPtr_hasOpened;

	// Token: 0x04003609 RID: 13833
	private static readonly IntPtr NativeFieldInfoPtr_g_v3Center;

	// Token: 0x0400360A RID: 13834
	private static readonly IntPtr NativeFieldInfoPtr_g_Ani;

	// Token: 0x0400360B RID: 13835
	private static readonly IntPtr NativeMethodInfoPtr_Init_Public_Virtual_Void_0;

	// Token: 0x0400360C RID: 13836
	private static readonly IntPtr NativeMethodInfoPtr_InitTreasureData_Public_Void_Int32_0;

	// Token: 0x0400360D RID: 13837
	private static readonly IntPtr NativeMethodInfoPtr_HitPhysical_Public_Virtual_Void_AttackData_0;

	// Token: 0x0400360E RID: 13838
	private static readonly IntPtr NativeMethodInfoPtr_HitMagic_Public_Virtual_Void_AttackData_0;

	// Token: 0x0400360F RID: 13839
	private static readonly IntPtr NativeMethodInfoPtr_SetOpen_Protected_Void_0;

	// Token: 0x04003610 RID: 13840
	private static readonly IntPtr NativeMethodInfoPtr_SetIsOpen_Public_Void_Boolean_0;

	// Token: 0x04003611 RID: 13841
	private static readonly IntPtr NativeMethodInfoPtr_OnEnable_Private_Void_0;

	// Token: 0x04003612 RID: 13842
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
}
