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

// Token: 0x02000175 RID: 373
public class PassiveEvent : MonoBehaviour
{
	// Token: 0x0600452A RID: 17706 RVA: 0x00114274 File Offset: 0x00112474
	[CallerCount(5585)]
	[CachedScanResults(RefRangeStart = 24, RefRangeEnd = 5609, XrefRangeStart = 24, XrefRangeEnd = 5609, 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: 0x0600452B RID: 17707 RVA: 0x001142C4 File Offset: 0x001124C4
	[CallerCount(5585)]
	[CachedScanResults(RefRangeStart = 24, RefRangeEnd = 5609, XrefRangeStart = 24, XrefRangeEnd = 5609, 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: 0x0600452C RID: 17708 RVA: 0x00114314 File Offset: 0x00112514
	[CallerCount(5)]
	[CachedScanResults(RefRangeStart = 541476, RefRangeEnd = 541481, XrefRangeStart = 541472, XrefRangeEnd = 541476, 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: 0x0600452D RID: 17709 RVA: 0x00114364 File Offset: 0x00112564
	[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: 0x0600452E RID: 17710 RVA: 0x001143B4 File Offset: 0x001125B4
	[CallerCount(5585)]
	[CachedScanResults(RefRangeStart = 24, RefRangeEnd = 5609, XrefRangeStart = 24, XrefRangeEnd = 5609, 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: 0x0600452F RID: 17711 RVA: 0x00114414 File Offset: 0x00112614
	[CallerCount(63)]
	[CachedScanResults(RefRangeStart = 222154, RefRangeEnd = 222217, XrefRangeStart = 222154, XrefRangeEnd = 222217, 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: 0x06004530 RID: 17712 RVA: 0x00114460 File Offset: 0x00112660
	// 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, 100667902);
		PassiveEvent.NativeMethodInfoPtr_Init_Public_Virtual_New_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<PassiveEvent>.NativeClassPtr, 100667903);
		PassiveEvent.NativeMethodInfoPtr_Update_Protected_Virtual_New_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<PassiveEvent>.NativeClassPtr, 100667904);
		PassiveEvent.NativeMethodInfoPtr_GetEventType_Public_PassiveEventType_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<PassiveEvent>.NativeClassPtr, 100667905);
		PassiveEvent.NativeMethodInfoPtr_SetTimeScale_Public_Virtual_New_Void_Single_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<PassiveEvent>.NativeClassPtr, 100667906);
		PassiveEvent.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<PassiveEvent>.NativeClassPtr, 100667907);
	}

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

	// Token: 0x1700191E RID: 6430
	// (get) Token: 0x06004532 RID: 17714 RVA: 0x00114530 File Offset: 0x00112730
	// (set) Token: 0x06004533 RID: 17715 RVA: 0x00114558 File Offset: 0x00112758
	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: 0x1700191F RID: 6431
	// (get) Token: 0x06004534 RID: 17716 RVA: 0x0011457C File Offset: 0x0011277C
	// (set) Token: 0x06004535 RID: 17717 RVA: 0x001145A4 File Offset: 0x001127A4
	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: 0x04002DD2 RID: 11730
	private static readonly IntPtr NativeFieldInfoPtr_EventType;

	// Token: 0x04002DD3 RID: 11731
	private static readonly IntPtr NativeFieldInfoPtr_g_fDeltaTime;

	// Token: 0x04002DD4 RID: 11732
	private static readonly IntPtr NativeMethodInfoPtr_Start_Protected_Virtual_New_Void_0;

	// Token: 0x04002DD5 RID: 11733
	private static readonly IntPtr NativeMethodInfoPtr_Init_Public_Virtual_New_Void_0;

	// Token: 0x04002DD6 RID: 11734
	private static readonly IntPtr NativeMethodInfoPtr_Update_Protected_Virtual_New_Void_0;

	// Token: 0x04002DD7 RID: 11735
	private static readonly IntPtr NativeMethodInfoPtr_GetEventType_Public_PassiveEventType_0;

	// Token: 0x04002DD8 RID: 11736
	private static readonly IntPtr NativeMethodInfoPtr_SetTimeScale_Public_Virtual_New_Void_Single_0;

	// Token: 0x04002DD9 RID: 11737
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;

	// Token: 0x02000176 RID: 374
	public enum PassiveEventType
	{
		// Token: 0x04002DDB RID: 11739
		Null,
		// Token: 0x04002DDC RID: 11740
		Item,
		// Token: 0x04002DDD RID: 11741
		SavePoint,
		// Token: 0x04002DDE RID: 11742
		Prompt,
		// Token: 0x04002DDF RID: 11743
		OnLight,
		// Token: 0x04002DE0 RID: 11744
		Dialogue,
		// Token: 0x04002DE1 RID: 11745
		DoorSwitch,
		// Token: 0x04002DE2 RID: 11746
		Exit,
		// Token: 0x04002DE3 RID: 11747
		Teleport,
		// Token: 0x04002DE4 RID: 11748
		StartUpEvent,
		// Token: 0x04002DE5 RID: 11749
		LightBall
	}
}
