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

// Token: 0x02000327 RID: 807
public class OldGameSaveTest : MonoBehaviour
{
	// Token: 0x06006E60 RID: 28256 RVA: 0x001C072C File Offset: 0x001BE92C
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 583512, XrefRangeEnd = 583537, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void Test()
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(OldGameSaveTest.NativeMethodInfoPtr_Test_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x06006E61 RID: 28257 RVA: 0x001C0770 File Offset: 0x001BE970
	[CallerCount(63)]
	[CachedScanResults(RefRangeStart = 222154, RefRangeEnd = 222217, XrefRangeStart = 222154, XrefRangeEnd = 222217, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe OldGameSaveTest()
		: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<OldGameSaveTest>.NativeClassPtr))
	{
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(OldGameSaveTest.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x06006E62 RID: 28258 RVA: 0x001C07BC File Offset: 0x001BE9BC
	// Note: this type is marked as 'beforefieldinit'.
	static OldGameSaveTest()
	{
		Il2CppClassPointerStore<OldGameSaveTest>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "", "OldGameSaveTest");
		IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<OldGameSaveTest>.NativeClassPtr);
		OldGameSaveTest.NativeFieldInfoPtr_oldGameSave = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<OldGameSaveTest>.NativeClassPtr, "oldGameSave");
		OldGameSaveTest.NativeFieldInfoPtr_currentGameSave = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<OldGameSaveTest>.NativeClassPtr, "currentGameSave");
		OldGameSaveTest.NativeMethodInfoPtr_Test_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<OldGameSaveTest>.NativeClassPtr, 100671494);
		OldGameSaveTest.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<OldGameSaveTest>.NativeClassPtr, 100671495);
	}

	// Token: 0x06006E63 RID: 28259 RVA: 0x0000351C File Offset: 0x0000171C
	public OldGameSaveTest(IntPtr pointer)
		: base(pointer)
	{
	}

	// Token: 0x17002633 RID: 9779
	// (get) Token: 0x06006E64 RID: 28260 RVA: 0x001C083C File Offset: 0x001BEA3C
	// (set) Token: 0x06006E65 RID: 28261 RVA: 0x001C0870 File Offset: 0x001BEA70
	public unsafe GameSaveLegacy oldGameSave
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(OldGameSaveTest.NativeFieldInfoPtr_oldGameSave);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new GameSaveLegacy(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(OldGameSaveTest.NativeFieldInfoPtr_oldGameSave), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x17002634 RID: 9780
	// (get) Token: 0x06006E66 RID: 28262 RVA: 0x001C0898 File Offset: 0x001BEA98
	// (set) Token: 0x06006E67 RID: 28263 RVA: 0x001C08CC File Offset: 0x001BEACC
	public unsafe GameSave currentGameSave
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(OldGameSaveTest.NativeFieldInfoPtr_currentGameSave);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new GameSave(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(OldGameSaveTest.NativeFieldInfoPtr_currentGameSave), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x04004969 RID: 18793
	private static readonly IntPtr NativeFieldInfoPtr_oldGameSave;

	// Token: 0x0400496A RID: 18794
	private static readonly IntPtr NativeFieldInfoPtr_currentGameSave;

	// Token: 0x0400496B RID: 18795
	private static readonly IntPtr NativeMethodInfoPtr_Test_Private_Void_0;

	// Token: 0x0400496C RID: 18796
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
}
