using System;
using System.IO;
using Cpp2IlInjected;
using UnityEngine;

// Token: 0x02000312 RID: 786
[Token(Token = "0x2000312")]
public class GameSaveTest : MonoBehaviour
{
	// Token: 0x06001F9C RID: 8092 RVA: 0x0004C0BC File Offset: 0x0004A2BC
	[Token(Token = "0x6001F9C")]
	[Address(RVA = "0x549C20", Offset = "0x548A20", VA = "0x180549C20")]
	private void Test()
	{
		string text = Path.Combine(Application.dataPath, "Game_Test/GameSaveTest/Save01.dat");
		this.gameSaveLegacy = new GameSaveLegacy
		{
			iDifficulty = (int)((ulong)1L),
			iHPLevel = (int)((ulong)1L),
			iMPLevel = (int)((ulong)1L),
			iSPLevel = (int)((ulong)1L),
			iSTRLevel = (int)((ulong)1L),
			iINTLevel = (int)((ulong)1L),
			iDEXLevel = (int)((ulong)1L),
			iMagicNull = (int)((ulong)1L),
			iItemSize = (int)((ulong)4L)
		};
		GameSave gameSave = this.gameSaveLegacy.Convert(text);
		this.gameSave = gameSave;
		throw new NullReferenceException();
	}

	// Token: 0x06001F9D RID: 8093 RVA: 0x0004C154 File Offset: 0x0004A354
	[Token(Token = "0x6001F9D")]
	[Address(RVA = "0x3088F0", Offset = "0x3076F0", VA = "0x1803088F0")]
	public GameSaveTest()
	{
	}

	// Token: 0x04002914 RID: 10516
	[FieldOffset(Offset = "0x18")]
	[Token(Token = "0x4002914")]
	private GameSaveLegacy gameSaveLegacy;

	// Token: 0x04002915 RID: 10517
	[FieldOffset(Offset = "0x20")]
	[Token(Token = "0x4002915")]
	private GameSave gameSave;
}
