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

// Token: 0x020001A2 RID: 418
public class PassiveEvent : MonoBehaviour
{
	// Token: 0x060049A5 RID: 18853 RVA: 0x00126E04 File Offset: 0x00125004
	[CallerCount(5874)]
	[CachedScanResults(RefRangeStart = 24, RefRangeEnd = 5898, XrefRangeStart = 24, XrefRangeEnd = 5898, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe virtual void Start()
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), PassiveEvent.NativeMethodInfoPtr_Start_Protected_Virtual_New_Void_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x060049A6 RID: 18854 RVA: 0x00126E54 File Offset: 0x00125054
	[CallerCount(5874)]
	[CachedScanResults(RefRangeStart = 24, RefRangeEnd = 5898, XrefRangeStart = 24, XrefRangeEnd = 5898, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe virtual 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), PassiveEvent.NativeMethodInfoPtr_Init_Public_Virtual_New_Void_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x060049A7 RID: 18855 RVA: 0x00126EA4 File Offset: 0x001250A4
	[CallerCount(6)]
	[CachedScanResults(RefRangeStart = 568675, RefRangeEnd = 568681, XrefRangeStart = 568671, XrefRangeEnd = 568675, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe virtual void Update()
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), PassiveEvent.NativeMethodInfoPtr_Update_Protected_Virtual_New_Void_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x060049A8 RID: 18856 RVA: 0x00126EF4 File Offset: 0x001250F4
	[CallerCount(0)]
	public unsafe PassiveEvent.PassiveEventType GetEventType()
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(PassiveEvent.NativeMethodInfoPtr_GetEventType_Public_PassiveEventType_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		return *IL2CPP.il2cpp_object_unbox(intPtr);
	}

	// Token: 0x060049A9 RID: 18857 RVA: 0x00126F44 File Offset: 0x00125144
	[CallerCount(5874)]
	[CachedScanResults(RefRangeStart = 24, RefRangeEnd = 5898, XrefRangeStart = 24, XrefRangeEnd = 5898, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe virtual void SetTimeScale(float fScaleTime)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = ref fScaleTime;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), PassiveEvent.NativeMethodInfoPtr_SetTimeScale_Public_Virtual_New_Void_Single_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

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

	// Token: 0x060049AB RID: 18859 RVA: 0x00126FF0 File Offset: 0x001251F0
	// Note: this type is marked as 'beforefieldinit'.
	static PassiveEvent()
	{
		Il2CppClassPointerStore<PassiveEvent>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "", "PassiveEvent");
		IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<PassiveEvent>.NativeClassPtr);
		PassiveEvent.NativeFieldInfoPtr_EventType = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<PassiveEvent>.NativeClassPtr, "EventType");
		PassiveEvent.NativeFieldInfoPtr_g_fDeltaTime = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<PassiveEvent>.NativeClassPtr, "g_fDeltaTime");
		PassiveEvent.NativeMethodInfoPtr_Start_Protected_Virtual_New_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<PassiveEvent>.NativeClassPtr, 100668285);
		PassiveEvent.NativeMethodInfoPtr_Init_Public_Virtual_New_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<PassiveEvent>.NativeClassPtr, 100668286);
		PassiveEvent.NativeMethodInfoPtr_Update_Protected_Virtual_New_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<PassiveEvent>.NativeClassPtr, 100668287);
		PassiveEvent.NativeMethodInfoPtr_GetEventType_Public_PassiveEventType_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<PassiveEvent>.NativeClassPtr, 100668288);
		PassiveEvent.NativeMethodInfoPtr_SetTimeScale_Public_Virtual_New_Void_Single_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<PassiveEvent>.NativeClassPtr, 100668289);
		PassiveEvent.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<PassiveEvent>.NativeClassPtr, 100668290);
	}

	// Token: 0x060049AC RID: 18860 RVA: 0x0000351C File Offset: 0x0000171C
	public PassiveEvent(IntPtr pointer)
		: base(pointer)
	{
	}

	// Token: 0x17001A6C RID: 6764
	// (get) Token: 0x060049AD RID: 18861 RVA: 0x001270C0 File Offset: 0x001252C0
	// (set) Token: 0x060049AE RID: 18862 RVA: 0x001270E8 File Offset: 0x001252E8
	public unsafe PassiveEvent.PassiveEventType EventType
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(PassiveEvent.NativeFieldInfoPtr_EventType);
			return *intPtr;
		}
		set
		{
			*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(PassiveEvent.NativeFieldInfoPtr_EventType)) = value;
		}
	}

	// Token: 0x17001A6D RID: 6765
	// (get) Token: 0x060049AF RID: 18863 RVA: 0x0012710C File Offset: 0x0012530C
	// (set) Token: 0x060049B0 RID: 18864 RVA: 0x00127134 File Offset: 0x00125334
	public unsafe float g_fDeltaTime
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(PassiveEvent.NativeFieldInfoPtr_g_fDeltaTime);
			return *intPtr;
		}
		set
		{
			*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(PassiveEvent.NativeFieldInfoPtr_g_fDeltaTime)) = value;
		}
	}

	// Token: 0x040030DA RID: 12506
	private static readonly IntPtr NativeFieldInfoPtr_EventType;

	// Token: 0x040030DB RID: 12507
	private static readonly IntPtr NativeFieldInfoPtr_g_fDeltaTime;

	// Token: 0x040030DC RID: 12508
	private static readonly IntPtr NativeMethodInfoPtr_Start_Protected_Virtual_New_Void_0;

	// Token: 0x040030DD RID: 12509
	private static readonly IntPtr NativeMethodInfoPtr_Init_Public_Virtual_New_Void_0;

	// Token: 0x040030DE RID: 12510
	private static readonly IntPtr NativeMethodInfoPtr_Update_Protected_Virtual_New_Void_0;

	// Token: 0x040030DF RID: 12511
	private static readonly IntPtr NativeMethodInfoPtr_GetEventType_Public_PassiveEventType_0;

	// Token: 0x040030E0 RID: 12512
	private static readonly IntPtr NativeMethodInfoPtr_SetTimeScale_Public_Virtual_New_Void_Single_0;

	// Token: 0x040030E1 RID: 12513
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;

	// Token: 0x020001A3 RID: 419
	public enum PassiveEventType
	{
		// Token: 0x040030E3 RID: 12515
		Null,
		// Token: 0x040030E4 RID: 12516
		Item,
		// Token: 0x040030E5 RID: 12517
		SavePoint,
		// Token: 0x040030E6 RID: 12518
		Prompt,
		// Token: 0x040030E7 RID: 12519
		OnLight,
		// Token: 0x040030E8 RID: 12520
		Dialogue,
		// Token: 0x040030E9 RID: 12521
		DoorSwitch,
		// Token: 0x040030EA RID: 12522
		Exit,
		// Token: 0x040030EB RID: 12523
		Teleport,
		// Token: 0x040030EC RID: 12524
		StartUpEvent,
		// Token: 0x040030ED RID: 12525
		LightBall,
		// Token: 0x040030EE RID: 12526
		BossRushTeleport,
		// Token: 0x040030EF RID: 12527
		BossRushSettlement
	}
}
