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

// Token: 0x020002A8 RID: 680
public class UITeleportHandler : UIHandlerBase
{
	// Token: 0x17001FD2 RID: 8146
	// (get) Token: 0x06005B4A RID: 23370 RVA: 0x0016F574 File Offset: 0x0016D774
	public unsafe GameStage Stage
	{
		[CallerCount(0)]
		get
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UITeleportHandler.NativeMethodInfoPtr_get_Stage_Public_get_GameStage_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			return *IL2CPP.il2cpp_object_unbox(intPtr);
		}
	}

	// Token: 0x17001FD3 RID: 8147
	// (get) Token: 0x06005B4B RID: 23371 RVA: 0x0016F5C4 File Offset: 0x0016D7C4
	public unsafe int SavePoint
	{
		[CallerCount(0)]
		get
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UITeleportHandler.NativeMethodInfoPtr_get_SavePoint_Public_get_Int32_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			return *IL2CPP.il2cpp_object_unbox(intPtr);
		}
	}

	// Token: 0x17001FD4 RID: 8148
	// (get) Token: 0x06005B4C RID: 23372 RVA: 0x0016F614 File Offset: 0x0016D814
	public unsafe bool HasUnlocked
	{
		[CallerCount(0)]
		get
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UITeleportHandler.NativeMethodInfoPtr_get_HasUnlocked_Public_get_Boolean_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			return *IL2CPP.il2cpp_object_unbox(intPtr);
		}
	}

	// Token: 0x06005B4D RID: 23373 RVA: 0x0016F664 File Offset: 0x0016D864
	[CallerCount(19)]
	[CachedScanResults(RefRangeStart = 589963, RefRangeEnd = 589982, XrefRangeStart = 589957, XrefRangeEnd = 589963, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void Init(GameStage stage, int savePoint)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr;
		checked
		{
			ptr = stackalloc IntPtr[unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)];
			*ptr = ref stage;
		}
		ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref savePoint;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UITeleportHandler.NativeMethodInfoPtr_Init_Public_Void_GameStage_Int32_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x06005B4E RID: 23374 RVA: 0x0016F6CC File Offset: 0x0016D8CC
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 589982, XrefRangeEnd = 589985, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe override void OnSelect()
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), UITeleportHandler.NativeMethodInfoPtr_OnSelect_Public_Virtual_Void_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x06005B4F RID: 23375 RVA: 0x0016F71C File Offset: 0x0016D91C
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 589985, XrefRangeEnd = 589988, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe override void OnDeselect()
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), UITeleportHandler.NativeMethodInfoPtr_OnDeselect_Public_Virtual_Void_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x06005B50 RID: 23376 RVA: 0x0016F76C File Offset: 0x0016D96C
	[CallerCount(2)]
	[CachedScanResults(RefRangeStart = 589999, RefRangeEnd = 590001, XrefRangeStart = 589988, XrefRangeEnd = 589999, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void UpdateUnlockState()
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UITeleportHandler.NativeMethodInfoPtr_UpdateUnlockState_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x06005B51 RID: 23377 RVA: 0x0016F7B0 File Offset: 0x0016D9B0
	[CallerCount(3)]
	[CachedScanResults(RefRangeStart = 590001, RefRangeEnd = 590004, XrefRangeStart = 590001, XrefRangeEnd = 590001, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe bool IsCurrentLocation(GameStage stage, int savePoint)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr;
		checked
		{
			ptr = stackalloc IntPtr[unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)];
			*ptr = ref stage;
		}
		ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref savePoint;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UITeleportHandler.NativeMethodInfoPtr_IsCurrentLocation_Public_Boolean_GameStage_Int32_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		return *IL2CPP.il2cpp_object_unbox(intPtr);
	}

	// Token: 0x06005B52 RID: 23378 RVA: 0x0016F828 File Offset: 0x0016DA28
	[CallerCount(1)]
	[CachedScanResults(RefRangeStart = 590017, RefRangeEnd = 590018, XrefRangeStart = 590004, XrefRangeEnd = 590017, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe string GetLocationText()
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UITeleportHandler.NativeMethodInfoPtr_GetLocationText_Public_String_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		return IL2CPP.Il2CppStringToManaged(intPtr);
	}

	// Token: 0x06005B53 RID: 23379 RVA: 0x0016F874 File Offset: 0x0016DA74
	[CallerCount(13)]
	[CachedScanResults(RefRangeStart = 235327, RefRangeEnd = 235340, XrefRangeStart = 235327, XrefRangeEnd = 235340, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe UITeleportHandler()
		: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<UITeleportHandler>.NativeClassPtr))
	{
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UITeleportHandler.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x06005B54 RID: 23380 RVA: 0x0016F8C0 File Offset: 0x0016DAC0
	// Note: this type is marked as 'beforefieldinit'.
	static UITeleportHandler()
	{
		Il2CppClassPointerStore<UITeleportHandler>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "", "UITeleportHandler");
		IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<UITeleportHandler>.NativeClassPtr);
		UITeleportHandler.NativeFieldInfoPtr_stage = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<UITeleportHandler>.NativeClassPtr, "stage");
		UITeleportHandler.NativeFieldInfoPtr_savePoint = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<UITeleportHandler>.NativeClassPtr, "savePoint");
		UITeleportHandler.NativeFieldInfoPtr_hasUnlocked = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<UITeleportHandler>.NativeClassPtr, "hasUnlocked");
		UITeleportHandler.NativeFieldInfoPtr_background = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<UITeleportHandler>.NativeClassPtr, "background");
		UITeleportHandler.NativeFieldInfoPtr_icon = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<UITeleportHandler>.NativeClassPtr, "icon");
		UITeleportHandler.NativeMethodInfoPtr_get_Stage_Public_get_GameStage_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UITeleportHandler>.NativeClassPtr, 100669720);
		UITeleportHandler.NativeMethodInfoPtr_get_SavePoint_Public_get_Int32_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UITeleportHandler>.NativeClassPtr, 100669721);
		UITeleportHandler.NativeMethodInfoPtr_get_HasUnlocked_Public_get_Boolean_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UITeleportHandler>.NativeClassPtr, 100669722);
		UITeleportHandler.NativeMethodInfoPtr_Init_Public_Void_GameStage_Int32_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UITeleportHandler>.NativeClassPtr, 100669723);
		UITeleportHandler.NativeMethodInfoPtr_OnSelect_Public_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UITeleportHandler>.NativeClassPtr, 100669724);
		UITeleportHandler.NativeMethodInfoPtr_OnDeselect_Public_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UITeleportHandler>.NativeClassPtr, 100669725);
		UITeleportHandler.NativeMethodInfoPtr_UpdateUnlockState_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UITeleportHandler>.NativeClassPtr, 100669726);
		UITeleportHandler.NativeMethodInfoPtr_IsCurrentLocation_Public_Boolean_GameStage_Int32_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UITeleportHandler>.NativeClassPtr, 100669727);
		UITeleportHandler.NativeMethodInfoPtr_GetLocationText_Public_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UITeleportHandler>.NativeClassPtr, 100669728);
		UITeleportHandler.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UITeleportHandler>.NativeClassPtr, 100669729);
	}

	// Token: 0x06005B55 RID: 23381 RVA: 0x0015B1F8 File Offset: 0x001593F8
	public UITeleportHandler(IntPtr pointer)
		: base(pointer)
	{
	}

	// Token: 0x17001FCD RID: 8141
	// (get) Token: 0x06005B56 RID: 23382 RVA: 0x0016FA1C File Offset: 0x0016DC1C
	// (set) Token: 0x06005B57 RID: 23383 RVA: 0x0016FA44 File Offset: 0x0016DC44
	public unsafe GameStage stage
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(UITeleportHandler.NativeFieldInfoPtr_stage);
			return *intPtr;
		}
		set
		{
			*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(UITeleportHandler.NativeFieldInfoPtr_stage)) = value;
		}
	}

	// Token: 0x17001FCE RID: 8142
	// (get) Token: 0x06005B58 RID: 23384 RVA: 0x0016FA68 File Offset: 0x0016DC68
	// (set) Token: 0x06005B59 RID: 23385 RVA: 0x0016FA90 File Offset: 0x0016DC90
	public unsafe int savePoint
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(UITeleportHandler.NativeFieldInfoPtr_savePoint);
			return *intPtr;
		}
		set
		{
			*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(UITeleportHandler.NativeFieldInfoPtr_savePoint)) = value;
		}
	}

	// Token: 0x17001FCF RID: 8143
	// (get) Token: 0x06005B5A RID: 23386 RVA: 0x0016FAB4 File Offset: 0x0016DCB4
	// (set) Token: 0x06005B5B RID: 23387 RVA: 0x0016FADC File Offset: 0x0016DCDC
	public unsafe bool hasUnlocked
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(UITeleportHandler.NativeFieldInfoPtr_hasUnlocked);
			return *intPtr;
		}
		set
		{
			*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(UITeleportHandler.NativeFieldInfoPtr_hasUnlocked)) = value;
		}
	}

	// Token: 0x17001FD0 RID: 8144
	// (get) Token: 0x06005B5C RID: 23388 RVA: 0x0016FB00 File Offset: 0x0016DD00
	// (set) Token: 0x06005B5D RID: 23389 RVA: 0x0016FB34 File Offset: 0x0016DD34
	public unsafe Image background
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(UITeleportHandler.NativeFieldInfoPtr_background);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new Image(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(UITeleportHandler.NativeFieldInfoPtr_background), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x17001FD1 RID: 8145
	// (get) Token: 0x06005B5E RID: 23390 RVA: 0x0016FB5C File Offset: 0x0016DD5C
	// (set) Token: 0x06005B5F RID: 23391 RVA: 0x0016FB90 File Offset: 0x0016DD90
	public unsafe Image icon
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(UITeleportHandler.NativeFieldInfoPtr_icon);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new Image(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(UITeleportHandler.NativeFieldInfoPtr_icon), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x04003CBB RID: 15547
	private static readonly IntPtr NativeFieldInfoPtr_stage;

	// Token: 0x04003CBC RID: 15548
	private static readonly IntPtr NativeFieldInfoPtr_savePoint;

	// Token: 0x04003CBD RID: 15549
	private static readonly IntPtr NativeFieldInfoPtr_hasUnlocked;

	// Token: 0x04003CBE RID: 15550
	private static readonly IntPtr NativeFieldInfoPtr_background;

	// Token: 0x04003CBF RID: 15551
	private static readonly IntPtr NativeFieldInfoPtr_icon;

	// Token: 0x04003CC0 RID: 15552
	private static readonly IntPtr NativeMethodInfoPtr_get_Stage_Public_get_GameStage_0;

	// Token: 0x04003CC1 RID: 15553
	private static readonly IntPtr NativeMethodInfoPtr_get_SavePoint_Public_get_Int32_0;

	// Token: 0x04003CC2 RID: 15554
	private static readonly IntPtr NativeMethodInfoPtr_get_HasUnlocked_Public_get_Boolean_0;

	// Token: 0x04003CC3 RID: 15555
	private static readonly IntPtr NativeMethodInfoPtr_Init_Public_Void_GameStage_Int32_0;

	// Token: 0x04003CC4 RID: 15556
	private static readonly IntPtr NativeMethodInfoPtr_OnSelect_Public_Virtual_Void_0;

	// Token: 0x04003CC5 RID: 15557
	private static readonly IntPtr NativeMethodInfoPtr_OnDeselect_Public_Virtual_Void_0;

	// Token: 0x04003CC6 RID: 15558
	private static readonly IntPtr NativeMethodInfoPtr_UpdateUnlockState_Public_Void_0;

	// Token: 0x04003CC7 RID: 15559
	private static readonly IntPtr NativeMethodInfoPtr_IsCurrentLocation_Public_Boolean_GameStage_Int32_0;

	// Token: 0x04003CC8 RID: 15560
	private static readonly IntPtr NativeMethodInfoPtr_GetLocationText_Public_String_0;

	// Token: 0x04003CC9 RID: 15561
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
}
