using System;
using Il2CppInterop.Common.Attributes;
using Il2CppInterop.Runtime;
using Il2CppSystem;
using Il2CppSystem.Collections.Generic;
using UnityEngine;

// Token: 0x02000122 RID: 290
public class EffectProvider : Il2CppSystem.Object
{
	// Token: 0x06003EB9 RID: 16057 RVA: 0x000F87A0 File Offset: 0x000F69A0
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 552849, XrefRangeEnd = 552859, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe EffectProvider(GameObject prefab, Transform root)
		: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<EffectProvider>.NativeClassPtr))
	{
		IntPtr* ptr;
		checked
		{
			ptr = stackalloc IntPtr[unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)];
			*ptr = IL2CPP.Il2CppObjectBaseToPtr(prefab);
		}
		ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = IL2CPP.Il2CppObjectBaseToPtr(root);
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(EffectProvider.NativeMethodInfoPtr__ctor_Public_Void_GameObject_Transform_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x06003EBA RID: 16058 RVA: 0x000F881C File Offset: 0x000F6A1C
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 552859, XrefRangeEnd = 552871, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe EffectUpdater Get()
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(EffectProvider.NativeMethodInfoPtr_Get_Public_EffectUpdater_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		IntPtr intPtr3 = intPtr;
		return (intPtr3 != 0) ? new EffectUpdater(intPtr3) : null;
	}

	// Token: 0x06003EBB RID: 16059 RVA: 0x000F8874 File Offset: 0x000F6A74
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 552871, XrefRangeEnd = 552877, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void Return(EffectUpdater updater)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = IL2CPP.Il2CppObjectBaseToPtr(updater);
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(EffectProvider.NativeMethodInfoPtr_Return_Public_Void_EffectUpdater_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x06003EBC RID: 16060 RVA: 0x000F88D0 File Offset: 0x000F6AD0
	// Note: this type is marked as 'beforefieldinit'.
	static EffectProvider()
	{
		Il2CppClassPointerStore<EffectProvider>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "", "EffectProvider");
		IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<EffectProvider>.NativeClassPtr);
		EffectProvider.NativeFieldInfoPtr_prefab = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<EffectProvider>.NativeClassPtr, "prefab");
		EffectProvider.NativeFieldInfoPtr_root = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<EffectProvider>.NativeClassPtr, "root");
		EffectProvider.NativeFieldInfoPtr_effectPool = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<EffectProvider>.NativeClassPtr, "effectPool");
		EffectProvider.NativeMethodInfoPtr__ctor_Public_Void_GameObject_Transform_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<EffectProvider>.NativeClassPtr, 100667201);
		EffectProvider.NativeMethodInfoPtr_Get_Public_EffectUpdater_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<EffectProvider>.NativeClassPtr, 100667202);
		EffectProvider.NativeMethodInfoPtr_Return_Public_Void_EffectUpdater_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<EffectProvider>.NativeClassPtr, 100667203);
	}

	// Token: 0x06003EBD RID: 16061 RVA: 0x0000A74C File Offset: 0x0000894C
	public EffectProvider(IntPtr pointer)
		: base(pointer)
	{
	}

	// Token: 0x17001710 RID: 5904
	// (get) Token: 0x06003EBE RID: 16062 RVA: 0x000F8978 File Offset: 0x000F6B78
	// (set) Token: 0x06003EBF RID: 16063 RVA: 0x000F89AC File Offset: 0x000F6BAC
	public unsafe GameObject prefab
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(EffectProvider.NativeFieldInfoPtr_prefab);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new GameObject(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(EffectProvider.NativeFieldInfoPtr_prefab), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x17001711 RID: 5905
	// (get) Token: 0x06003EC0 RID: 16064 RVA: 0x000F89D4 File Offset: 0x000F6BD4
	// (set) Token: 0x06003EC1 RID: 16065 RVA: 0x000F8A08 File Offset: 0x000F6C08
	public unsafe Transform root
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(EffectProvider.NativeFieldInfoPtr_root);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new Transform(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(EffectProvider.NativeFieldInfoPtr_root), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x17001712 RID: 5906
	// (get) Token: 0x06003EC2 RID: 16066 RVA: 0x000F8A30 File Offset: 0x000F6C30
	// (set) Token: 0x06003EC3 RID: 16067 RVA: 0x000F8A64 File Offset: 0x000F6C64
	public unsafe Queue<EffectUpdater> effectPool
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(EffectProvider.NativeFieldInfoPtr_effectPool);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new Queue<EffectUpdater>(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(EffectProvider.NativeFieldInfoPtr_effectPool), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x040028F0 RID: 10480
	private static readonly IntPtr NativeFieldInfoPtr_prefab;

	// Token: 0x040028F1 RID: 10481
	private static readonly IntPtr NativeFieldInfoPtr_root;

	// Token: 0x040028F2 RID: 10482
	private static readonly IntPtr NativeFieldInfoPtr_effectPool;

	// Token: 0x040028F3 RID: 10483
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_GameObject_Transform_0;

	// Token: 0x040028F4 RID: 10484
	private static readonly IntPtr NativeMethodInfoPtr_Get_Public_EffectUpdater_0;

	// Token: 0x040028F5 RID: 10485
	private static readonly IntPtr NativeMethodInfoPtr_Return_Public_Void_EffectUpdater_0;
}
