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

// Token: 0x020002DE RID: 734
public class UIGameSaveHandler : UIHandlerBase
{
	// Token: 0x06006039 RID: 24633 RVA: 0x00184BC8 File Offset: 0x00182DC8
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 595323, XrefRangeEnd = 595329, 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: 0x0600603A RID: 24634 RVA: 0x00184C1C File Offset: 0x00182E1C
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 595329, XrefRangeEnd = 595332, 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: 0x0600603B RID: 24635 RVA: 0x00184C6C File Offset: 0x00182E6C
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 595332, XrefRangeEnd = 595335, 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: 0x0600603C RID: 24636 RVA: 0x00184CBC File Offset: 0x00182EBC
	[CallerCount(1)]
	[CachedScanResults(RefRangeStart = 595347, RefRangeEnd = 595348, XrefRangeStart = 595335, XrefRangeEnd = 595347, 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: 0x0600603D RID: 24637 RVA: 0x00184D30 File Offset: 0x00182F30
	[CallerCount(3)]
	[CachedScanResults(RefRangeStart = 595375, RefRangeEnd = 595378, XrefRangeStart = 595348, XrefRangeEnd = 595375, 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: 0x0600603E RID: 24638 RVA: 0x00184DA4 File Offset: 0x00182FA4
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 595378, XrefRangeEnd = 595385, 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: 0x0600603F RID: 24639 RVA: 0x00184E20 File Offset: 0x00183020
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 595385, XrefRangeEnd = 595391, 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: 0x06006040 RID: 24640 RVA: 0x00184E7C File Offset: 0x0018307C
	[CallerCount(13)]
	[CachedScanResults(RefRangeStart = 235327, RefRangeEnd = 235340, XrefRangeStart = 235327, XrefRangeEnd = 235340, 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: 0x06006041 RID: 24641 RVA: 0x00184EC8 File Offset: 0x001830C8
	// 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, 100670208);
		UIGameSaveHandler.NativeMethodInfoPtr_OnSelect_Public_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIGameSaveHandler>.NativeClassPtr, 100670209);
		UIGameSaveHandler.NativeMethodInfoPtr_OnDeselect_Public_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIGameSaveHandler>.NativeClassPtr, 100670210);
		UIGameSaveHandler.NativeMethodInfoPtr_Setup_Public_Void_GameSavePreviewData_LocalizationData_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIGameSaveHandler>.NativeClassPtr, 100670211);
		UIGameSaveHandler.NativeMethodInfoPtr_Localize_Public_Void_GameSavePreviewData_LocalizationData_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIGameSaveHandler>.NativeClassPtr, 100670212);
		UIGameSaveHandler.NativeMethodInfoPtr_GetDifficultyText_Private_String_GameSavePreviewData_GameTextData_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIGameSaveHandler>.NativeClassPtr, 100670213);
		UIGameSaveHandler.NativeMethodInfoPtr_UpdateFont_Private_Void_GameFontPack_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIGameSaveHandler>.NativeClassPtr, 100670214);
		UIGameSaveHandler.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIGameSaveHandler>.NativeClassPtr, 100670215);
	}

	// Token: 0x06006042 RID: 24642 RVA: 0x0015B1F8 File Offset: 0x001593F8
	public UIGameSaveHandler(IntPtr pointer)
		: base(pointer)
	{
	}

	// Token: 0x17002144 RID: 8516
	// (get) Token: 0x06006043 RID: 24643 RVA: 0x00185010 File Offset: 0x00183210
	// (set) Token: 0x06006044 RID: 24644 RVA: 0x00185044 File Offset: 0x00183244
	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: 0x17002145 RID: 8517
	// (get) Token: 0x06006045 RID: 24645 RVA: 0x0018506C File Offset: 0x0018326C
	// (set) Token: 0x06006046 RID: 24646 RVA: 0x001850A0 File Offset: 0x001832A0
	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: 0x17002146 RID: 8518
	// (get) Token: 0x06006047 RID: 24647 RVA: 0x001850C8 File Offset: 0x001832C8
	// (set) Token: 0x06006048 RID: 24648 RVA: 0x001850FC File Offset: 0x001832FC
	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: 0x17002147 RID: 8519
	// (get) Token: 0x06006049 RID: 24649 RVA: 0x00185124 File Offset: 0x00183324
	// (set) Token: 0x0600604A RID: 24650 RVA: 0x00185158 File Offset: 0x00183358
	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: 0x17002148 RID: 8520
	// (get) Token: 0x0600604B RID: 24651 RVA: 0x00185180 File Offset: 0x00183380
	// (set) Token: 0x0600604C RID: 24652 RVA: 0x001851B4 File Offset: 0x001833B4
	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: 0x17002149 RID: 8521
	// (get) Token: 0x0600604D RID: 24653 RVA: 0x001851DC File Offset: 0x001833DC
	// (set) Token: 0x0600604E RID: 24654 RVA: 0x00185210 File Offset: 0x00183410
	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: 0x04004001 RID: 16385
	private static readonly IntPtr NativeFieldInfoPtr_number;

	// Token: 0x04004002 RID: 16386
	private static readonly IntPtr NativeFieldInfoPtr_image;

	// Token: 0x04004003 RID: 16387
	private static readonly IntPtr NativeFieldInfoPtr_location;

	// Token: 0x04004004 RID: 16388
	private static readonly IntPtr NativeFieldInfoPtr_difficulty;

	// Token: 0x04004005 RID: 16389
	private static readonly IntPtr NativeFieldInfoPtr_timeStamp;

	// Token: 0x04004006 RID: 16390
	private static readonly IntPtr NativeFieldInfoPtr_noDataLabel;

	// Token: 0x04004007 RID: 16391
	private static readonly IntPtr NativeMethodInfoPtr_UpdateNumber_Public_Void_Int32_0;

	// Token: 0x04004008 RID: 16392
	private static readonly IntPtr NativeMethodInfoPtr_OnSelect_Public_Virtual_Void_0;

	// Token: 0x04004009 RID: 16393
	private static readonly IntPtr NativeMethodInfoPtr_OnDeselect_Public_Virtual_Void_0;

	// Token: 0x0400400A RID: 16394
	private static readonly IntPtr NativeMethodInfoPtr_Setup_Public_Void_GameSavePreviewData_LocalizationData_0;

	// Token: 0x0400400B RID: 16395
	private static readonly IntPtr NativeMethodInfoPtr_Localize_Public_Void_GameSavePreviewData_LocalizationData_0;

	// Token: 0x0400400C RID: 16396
	private static readonly IntPtr NativeMethodInfoPtr_GetDifficultyText_Private_String_GameSavePreviewData_GameTextData_0;

	// Token: 0x0400400D RID: 16397
	private static readonly IntPtr NativeMethodInfoPtr_UpdateFont_Private_Void_GameFontPack_0;

	// Token: 0x0400400E RID: 16398
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
}
