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

namespace ch.sycoforge.Decal.Demo
{
	// Token: 0x020005F8 RID: 1528
	public class BasicBulletHoles : MonoBehaviour
	{
		// Token: 0x06009E86 RID: 40582 RVA: 0x002893A8 File Offset: 0x002875A8
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 622624, XrefRangeEnd = 622634, 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: 0x06009E87 RID: 40583 RVA: 0x002893EC File Offset: 0x002875EC
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 622634, XrefRangeEnd = 622656, 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: 0x06009E88 RID: 40584 RVA: 0x00289430 File Offset: 0x00287630
		[CallerCount(63)]
		[CachedScanResults(RefRangeStart = 222154, RefRangeEnd = 222217, XrefRangeStart = 222154, XrefRangeEnd = 222217, 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: 0x06009E89 RID: 40585 RVA: 0x0028947C File Offset: 0x0028767C
		// 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, 100675488);
			BasicBulletHoles.NativeMethodInfoPtr_Update_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<BasicBulletHoles>.NativeClassPtr, 100675489);
			BasicBulletHoles.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<BasicBulletHoles>.NativeClassPtr, 100675490);
		}

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

		// Token: 0x170035D9 RID: 13785
		// (get) Token: 0x06009E8B RID: 40587 RVA: 0x00289510 File Offset: 0x00287710
		// (set) Token: 0x06009E8C RID: 40588 RVA: 0x00289544 File Offset: 0x00287744
		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: 0x170035DA RID: 13786
		// (get) Token: 0x06009E8D RID: 40589 RVA: 0x0028956C File Offset: 0x0028776C
		// (set) Token: 0x06009E8E RID: 40590 RVA: 0x00289594 File Offset: 0x00287794
		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: 0x04006A34 RID: 27188
		private static readonly IntPtr NativeFieldInfoPtr_DecalPrefab;

		// Token: 0x04006A35 RID: 27189
		private static readonly IntPtr NativeFieldInfoPtr_t;

		// Token: 0x04006A36 RID: 27190
		private static readonly IntPtr NativeMethodInfoPtr_Start_Public_Void_0;

		// Token: 0x04006A37 RID: 27191
		private static readonly IntPtr NativeMethodInfoPtr_Update_Public_Void_0;

		// Token: 0x04006A38 RID: 27192
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
