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

// Token: 0x02000293 RID: 659
public class UIGameSaveHandler : UIHandlerBase
{
	// Token: 0x060059C1 RID: 22977 RVA: 0x00169C6C File Offset: 0x00167E6C
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 565239, XrefRangeEnd = 565245, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void UpdateNumber(int index)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = ref index;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UIGameSaveHandler.NativeMethodInfoPtr_UpdateNumber_Public_Void_Int32_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x060059C2 RID: 22978 RVA: 0x00169CC0 File Offset: 0x00167EC0
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 565245, XrefRangeEnd = 565248, 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), UIGameSaveHandler.NativeMethodInfoPtr_OnSelect_Public_Virtual_Void_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x060059C3 RID: 22979 RVA: 0x00169D10 File Offset: 0x00167F10
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 565248, XrefRangeEnd = 565251, 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), UIGameSaveHandler.NativeMethodInfoPtr_OnDeselect_Public_Virtual_Void_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x060059C4 RID: 22980 RVA: 0x00169D60 File Offset: 0x00167F60
	[CallerCount(1)]
	[CachedScanResults(RefRangeStart = 565263, RefRangeEnd = 565264, XrefRangeStart = 565251, XrefRangeEnd = 565263, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void Setup(GameSavePreviewData previewData, LocalizationData data)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr;
		checked
		{
			ptr = stackalloc IntPtr[unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)];
			*ptr = IL2CPP.Il2CppObjectBaseToPtr(previewData);
		}
		ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = IL2CPP.Il2CppObjectBaseToPtr(data);
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UIGameSaveHandler.NativeMethodInfoPtr_Setup_Public_Void_GameSavePreviewData_LocalizationData_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x060059C5 RID: 22981 RVA: 0x00169DD4 File Offset: 0x00167FD4
	[CallerCount(3)]
	[CachedScanResults(RefRangeStart = 565283, RefRangeEnd = 565286, XrefRangeStart = 565264, XrefRangeEnd = 565283, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void Localize(GameSavePreviewData previewData, LocalizationData data)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr;
		checked
		{
			ptr = stackalloc IntPtr[unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)];
			*ptr = IL2CPP.Il2CppObjectBaseToPtr(previewData);
		}
		ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = IL2CPP.Il2CppObjectBaseToPtr(data);
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UIGameSaveHandler.NativeMethodInfoPtr_Localize_Public_Void_GameSavePreviewData_LocalizationData_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x060059C6 RID: 22982 RVA: 0x00169E48 File Offset: 0x00168048
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 565286, XrefRangeEnd = 565294, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe string GetDifficultyText(GameSavePreviewData previewData, GameTextData languageData)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr;
		checked
		{
			ptr = stackalloc IntPtr[unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)];
			*ptr = IL2CPP.Il2CppObjectBaseToPtr(previewData);
		}
		ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = IL2CPP.Il2CppObjectBaseToPtr(languageData);
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UIGameSaveHandler.NativeMethodInfoPtr_GetDifficultyText_Private_String_GameSavePreviewData_GameTextData_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		return IL2CPP.Il2CppStringToManaged(intPtr);
	}

	// Token: 0x060059C7 RID: 22983 RVA: 0x00169EC4 File Offset: 0x001680C4
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 565294, XrefRangeEnd = 565300, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void UpdateFont(GameFontPack fontPack)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = IL2CPP.Il2CppObjectBaseToPtr(fontPack);
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UIGameSaveHandler.NativeMethodInfoPtr_UpdateFont_Private_Void_GameFontPack_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x060059C8 RID: 22984 RVA: 0x00169F20 File Offset: 0x00168120
	[CallerCount(13)]
	[CachedScanResults(RefRangeStart = 227409, RefRangeEnd = 227422, XrefRangeStart = 227409, XrefRangeEnd = 227422, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe UIGameSaveHandler()
		: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<UIGameSaveHandler>.NativeClassPtr))
	{
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UIGameSaveHandler.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x060059C9 RID: 22985 RVA: 0x00169F6C File Offset: 0x0016816C
	// Note: this type is marked as 'beforefieldinit'.
	static UIGameSaveHandler()
	{
		Il2CppClassPointerStore<UIGameSaveHandler>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "", "UIGameSaveHandler");
		IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<UIGameSaveHandler>.NativeClassPtr);
		UIGameSaveHandler.NativeFieldInfoPtr_number = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<UIGameSaveHandler>.NativeClassPtr, "number");
		UIGameSaveHandler.NativeFieldInfoPtr_image = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<UIGameSaveHandler>.NativeClassPtr, "image");
		UIGameSaveHandler.NativeFieldInfoPtr_location = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<UIGameSaveHandler>.NativeClassPtr, "location");
		UIGameSaveHandler.NativeFieldInfoPtr_difficulty = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<UIGameSaveHandler>.NativeClassPtr, "difficulty");
		UIGameSaveHandler.NativeFieldInfoPtr_timeStamp = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<UIGameSaveHandler>.NativeClassPtr, "timeStamp");
		UIGameSaveHandler.NativeFieldInfoPtr_noDataLabel = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<UIGameSaveHandler>.NativeClassPtr, "noDataLabel");
		UIGameSaveHandler.NativeMethodInfoPtr_UpdateNumber_Public_Void_Int32_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIGameSaveHandler>.NativeClassPtr, 100669652);
		UIGameSaveHandler.NativeMethodInfoPtr_OnSelect_Public_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIGameSaveHandler>.NativeClassPtr, 100669653);
		UIGameSaveHandler.NativeMethodInfoPtr_OnDeselect_Public_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIGameSaveHandler>.NativeClassPtr, 100669654);
		UIGameSaveHandler.NativeMethodInfoPtr_Setup_Public_Void_GameSavePreviewData_LocalizationData_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIGameSaveHandler>.NativeClassPtr, 100669655);
		UIGameSaveHandler.NativeMethodInfoPtr_Localize_Public_Void_GameSavePreviewData_LocalizationData_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIGameSaveHandler>.NativeClassPtr, 100669656);
		UIGameSaveHandler.NativeMethodInfoPtr_GetDifficultyText_Private_String_GameSavePreviewData_GameTextData_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIGameSaveHandler>.NativeClassPtr, 100669657);
		UIGameSaveHandler.NativeMethodInfoPtr_UpdateFont_Private_Void_GameFontPack_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIGameSaveHandler>.NativeClassPtr, 100669658);
		UIGameSaveHandler.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIGameSaveHandler>.NativeClassPtr, 100669659);
	}

	// Token: 0x060059CA RID: 22986 RVA: 0x00146FEC File Offset: 0x001451EC
	public UIGameSaveHandler(IntPtr pointer)
		: base(pointer)
	{
	}

	// Token: 0x17001F50 RID: 8016
	// (get) Token: 0x060059CB RID: 22987 RVA: 0x0016A0B4 File Offset: 0x001682B4
	// (set) Token: 0x060059CC RID: 22988 RVA: 0x0016A0E8 File Offset: 0x001682E8
	public unsafe Text number
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(UIGameSaveHandler.NativeFieldInfoPtr_number);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new Text(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(UIGameSaveHandler.NativeFieldInfoPtr_number), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x17001F51 RID: 8017
	// (get) Token: 0x060059CD RID: 22989 RVA: 0x0016A110 File Offset: 0x00168310
	// (set) Token: 0x060059CE RID: 22990 RVA: 0x0016A144 File Offset: 0x00168344
	public unsafe Image image
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(UIGameSaveHandler.NativeFieldInfoPtr_image);
			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(UIGameSaveHandler.NativeFieldInfoPtr_image), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x17001F52 RID: 8018
	// (get) Token: 0x060059CF RID: 22991 RVA: 0x0016A16C File Offset: 0x0016836C
	// (set) Token: 0x060059D0 RID: 22992 RVA: 0x0016A1A0 File Offset: 0x001683A0
	public unsafe Text location
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(UIGameSaveHandler.NativeFieldInfoPtr_location);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new Text(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(UIGameSaveHandler.NativeFieldInfoPtr_location), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x17001F53 RID: 8019
	// (get) Token: 0x060059D1 RID: 22993 RVA: 0x0016A1C8 File Offset: 0x001683C8
	// (set) Token: 0x060059D2 RID: 22994 RVA: 0x0016A1FC File Offset: 0x001683FC
	public unsafe Text difficulty
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(UIGameSaveHandler.NativeFieldInfoPtr_difficulty);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new Text(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(UIGameSaveHandler.NativeFieldInfoPtr_difficulty), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x17001F54 RID: 8020
	// (get) Token: 0x060059D3 RID: 22995 RVA: 0x0016A224 File Offset: 0x00168424
	// (set) Token: 0x060059D4 RID: 22996 RVA: 0x0016A258 File Offset: 0x00168458
	public unsafe Text timeStamp
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(UIGameSaveHandler.NativeFieldInfoPtr_timeStamp);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new Text(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(UIGameSaveHandler.NativeFieldInfoPtr_timeStamp), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x17001F55 RID: 8021
	// (get) Token: 0x060059D5 RID: 22997 RVA: 0x0016A280 File Offset: 0x00168480
	// (set) Token: 0x060059D6 RID: 22998 RVA: 0x0016A2B4 File Offset: 0x001684B4
	public unsafe Text noDataLabel
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(UIGameSaveHandler.NativeFieldInfoPtr_noDataLabel);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new Text(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(UIGameSaveHandler.NativeFieldInfoPtr_noDataLabel), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x04003B8C RID: 15244
	private static readonly IntPtr NativeFieldInfoPtr_number;

	// Token: 0x04003B8D RID: 15245
	private static readonly IntPtr NativeFieldInfoPtr_image;

	// Token: 0x04003B8E RID: 15246
	private static readonly IntPtr NativeFieldInfoPtr_location;

	// Token: 0x04003B8F RID: 15247
	private static readonly IntPtr NativeFieldInfoPtr_difficulty;

	// Token: 0x04003B90 RID: 15248
	private static readonly IntPtr NativeFieldInfoPtr_timeStamp;

	// Token: 0x04003B91 RID: 15249
	private static readonly IntPtr NativeFieldInfoPtr_noDataLabel;

	// Token: 0x04003B92 RID: 15250
	private static readonly IntPtr NativeMethodInfoPtr_UpdateNumber_Public_Void_Int32_0;

	// Token: 0x04003B93 RID: 15251
	private static readonly IntPtr NativeMethodInfoPtr_OnSelect_Public_Virtual_Void_0;

	// Token: 0x04003B94 RID: 15252
	private static readonly IntPtr NativeMethodInfoPtr_OnDeselect_Public_Virtual_Void_0;

	// Token: 0x04003B95 RID: 15253
	private static readonly IntPtr NativeMethodInfoPtr_Setup_Public_Void_GameSavePreviewData_LocalizationData_0;

	// Token: 0x04003B96 RID: 15254
	private static readonly IntPtr NativeMethodInfoPtr_Localize_Public_Void_GameSavePreviewData_LocalizationData_0;

	// Token: 0x04003B97 RID: 15255
	private static readonly IntPtr NativeMethodInfoPtr_GetDifficultyText_Private_String_GameSavePreviewData_GameTextData_0;

	// Token: 0x04003B98 RID: 15256
	private static readonly IntPtr NativeMethodInfoPtr_UpdateFont_Private_Void_GameFontPack_0;

	// Token: 0x04003B99 RID: 15257
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
}
