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

// Token: 0x020000FC RID: 252
public class EffectProvider : Il2CppSystem.Object
{
	// Token: 0x06003B8E RID: 15246 RVA: 0x000EAAC8 File Offset: 0x000E8CC8
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 527682, XrefRangeEnd = 527692, 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: 0x06003B8F RID: 15247 RVA: 0x000EAB44 File Offset: 0x000E8D44
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 527692, XrefRangeEnd = 527704, 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: 0x06003B90 RID: 15248 RVA: 0x000EAB9C File Offset: 0x000E8D9C
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 527704, XrefRangeEnd = 527710, 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: 0x06003B91 RID: 15249 RVA: 0x000EABF8 File Offset: 0x000E8DF8
	// 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, 100666902);
		EffectProvider.NativeMethodInfoPtr_Get_Public_EffectUpdater_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<EffectProvider>.NativeClassPtr, 100666903);
		EffectProvider.NativeMethodInfoPtr_Return_Public_Void_EffectUpdater_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<EffectProvider>.NativeClassPtr, 100666904);
	}

	// Token: 0x06003B92 RID: 15250 RVA: 0x0000A688 File Offset: 0x00008888
	public EffectProvider(IntPtr pointer)
		: base(pointer)
	{
	}

	// Token: 0x1700162F RID: 5679
	// (get) Token: 0x06003B93 RID: 15251 RVA: 0x000EACA0 File Offset: 0x000E8EA0
	// (set) Token: 0x06003B94 RID: 15252 RVA: 0x000EACD4 File Offset: 0x000E8ED4
	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: 0x17001630 RID: 5680
	// (get) Token: 0x06003B95 RID: 15253 RVA: 0x000EACFC File Offset: 0x000E8EFC
	// (set) Token: 0x06003B96 RID: 15254 RVA: 0x000EAD30 File Offset: 0x000E8F30
	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: 0x17001631 RID: 5681
	// (get) Token: 0x06003B97 RID: 15255 RVA: 0x000EAD58 File Offset: 0x000E8F58
	// (set) Token: 0x06003B98 RID: 15256 RVA: 0x000EAD8C File Offset: 0x000E8F8C
	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: 0x040026C7 RID: 9927
	private static readonly IntPtr NativeFieldInfoPtr_prefab;

	// Token: 0x040026C8 RID: 9928
	private static readonly IntPtr NativeFieldInfoPtr_root;

	// Token: 0x040026C9 RID: 9929
	private static readonly IntPtr NativeFieldInfoPtr_effectPool;

	// Token: 0x040026CA RID: 9930
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_GameObject_Transform_0;

	// Token: 0x040026CB RID: 9931
	private static readonly IntPtr NativeMethodInfoPtr_Get_Public_EffectUpdater_0;

	// Token: 0x040026CC RID: 9932
	private static readonly IntPtr NativeMethodInfoPtr_Return_Public_Void_EffectUpdater_0;
}
