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

namespace ch.sycoforge.Decal.Demo
{
	// Token: 0x02000650 RID: 1616
	public class BasicBulletHoles : MonoBehaviour
	{
		// Token: 0x0600A6D9 RID: 42713 RVA: 0x002AC0E4 File Offset: 0x002AA2E4
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 654926, XrefRangeEnd = 654936, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void Start()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(BasicBulletHoles.NativeMethodInfoPtr_Start_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x0600A6DA RID: 42714 RVA: 0x002AC128 File Offset: 0x002AA328
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 654936, XrefRangeEnd = 654958, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void Update()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(BasicBulletHoles.NativeMethodInfoPtr_Update_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x0600A6DB RID: 42715 RVA: 0x002AC16C File Offset: 0x002AA36C
		[CallerCount(67)]
		[CachedScanResults(RefRangeStart = 166362, RefRangeEnd = 166429, XrefRangeStart = 166362, XrefRangeEnd = 166429, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe BasicBulletHoles()
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<BasicBulletHoles>.NativeClassPtr))
		{
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(BasicBulletHoles.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x0600A6DC RID: 42716 RVA: 0x002AC1B8 File Offset: 0x002AA3B8
		// Note: this type is marked as 'beforefieldinit'.
		static BasicBulletHoles()
		{
			Il2CppClassPointerStore<BasicBulletHoles>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "ch.sycoforge.Decal.Demo", "BasicBulletHoles");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<BasicBulletHoles>.NativeClassPtr);
			BasicBulletHoles.NativeFieldInfoPtr_DecalPrefab = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<BasicBulletHoles>.NativeClassPtr, "DecalPrefab");
			BasicBulletHoles.NativeFieldInfoPtr_t = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<BasicBulletHoles>.NativeClassPtr, "t");
			BasicBulletHoles.NativeMethodInfoPtr_Start_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<BasicBulletHoles>.NativeClassPtr, 100676201);
			BasicBulletHoles.NativeMethodInfoPtr_Update_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<BasicBulletHoles>.NativeClassPtr, 100676202);
			BasicBulletHoles.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<BasicBulletHoles>.NativeClassPtr, 100676203);
		}

		// Token: 0x0600A6DD RID: 42717 RVA: 0x0000351C File Offset: 0x0000171C
		public BasicBulletHoles(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x17003874 RID: 14452
		// (get) Token: 0x0600A6DE RID: 42718 RVA: 0x002AC24C File Offset: 0x002AA44C
		// (set) Token: 0x0600A6DF RID: 42719 RVA: 0x002AC280 File Offset: 0x002AA480
		public unsafe EasyDecal DecalPrefab
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(BasicBulletHoles.NativeFieldInfoPtr_DecalPrefab);
				IntPtr intPtr2 = *intPtr;
				return (intPtr2 != 0) ? new EasyDecal(intPtr2) : null;
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(BasicBulletHoles.NativeFieldInfoPtr_DecalPrefab), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x17003875 RID: 14453
		// (get) Token: 0x0600A6E0 RID: 42720 RVA: 0x002AC2A8 File Offset: 0x002AA4A8
		// (set) Token: 0x0600A6E1 RID: 42721 RVA: 0x002AC2D0 File Offset: 0x002AA4D0
		public unsafe bool t
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(BasicBulletHoles.NativeFieldInfoPtr_t);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(BasicBulletHoles.NativeFieldInfoPtr_t)) = value;
			}
		}

		// Token: 0x04006FDD RID: 28637
		private static readonly IntPtr NativeFieldInfoPtr_DecalPrefab;

		// Token: 0x04006FDE RID: 28638
		private static readonly IntPtr NativeFieldInfoPtr_t;

		// Token: 0x04006FDF RID: 28639
		private static readonly IntPtr NativeMethodInfoPtr_Start_Public_Void_0;

		// Token: 0x04006FE0 RID: 28640
		private static readonly IntPtr NativeMethodInfoPtr_Update_Public_Void_0;

		// Token: 0x04006FE1 RID: 28641
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
