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

// Token: 0x0200037F RID: 895
public class OldGameSaveTest : MonoBehaviour
{
	// Token: 0x060076B3 RID: 30387 RVA: 0x001E3474 File Offset: 0x001E1674
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 615696, XrefRangeEnd = 615721, 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: 0x060076B4 RID: 30388 RVA: 0x001E34B8 File Offset: 0x001E16B8
	[CallerCount(67)]
	[CachedScanResults(RefRangeStart = 166362, RefRangeEnd = 166429, XrefRangeStart = 166362, XrefRangeEnd = 166429, 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: 0x060076B5 RID: 30389 RVA: 0x001E3504 File Offset: 0x001E1704
	// 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, 100672207);
		OldGameSaveTest.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<OldGameSaveTest>.NativeClassPtr, 100672208);
	}

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

	// Token: 0x170028CE RID: 10446
	// (get) Token: 0x060076B7 RID: 30391 RVA: 0x001E3584 File Offset: 0x001E1784
	// (set) Token: 0x060076B8 RID: 30392 RVA: 0x001E35B8 File Offset: 0x001E17B8
	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: 0x170028CF RID: 10447
	// (get) Token: 0x060076B9 RID: 30393 RVA: 0x001E35E0 File Offset: 0x001E17E0
	// (set) Token: 0x060076BA RID: 30394 RVA: 0x001E3614 File Offset: 0x001E1814
	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: 0x04004F12 RID: 20242
	private static readonly IntPtr NativeFieldInfoPtr_oldGameSave;

	// Token: 0x04004F13 RID: 20243
	private static readonly IntPtr NativeFieldInfoPtr_currentGameSave;

	// Token: 0x04004F14 RID: 20244
	private static readonly IntPtr NativeMethodInfoPtr_Test_Private_Void_0;

	// Token: 0x04004F15 RID: 20245
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
}
