using System;
using System.Collections.Generic;
using Cpp2IlInjected;
using MarsSDK;
using MEC;
using UnityEngine;
using UnityEngine.UI;

// Token: 0x02000368 RID: 872
[Token(Token = "0x2000368")]
public class FakeGameSaveTest : MonoBehaviour
{
	// Token: 0x0600225A RID: 8794 RVA: 0x00053208 File Offset: 0x00051408
	[Token(Token = "0x600225A")]
	[Address(RVA = "0xD1B150", Offset = "0xD1A150", VA = "0x180D1B150")]
	private void Start()
	{
		this._message.text = "Waiting system initialization for 5 seconds...\n";
		int num;
		FakeGameSaveTest.<Wait>d__2 <Wait>d__ = new FakeGameSaveTest.<Wait>d__2(num);
		num = 0;
		<Wait>d__.<>4__this = this;
		CoroutineHandle coroutineHandle = MECExtensionMethods1.RunCoroutine(<Wait>d__);
	}

	// Token: 0x0600225B RID: 8795 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x600225B")]
	[Address(RVA = "0xD1B200", Offset = "0xD1A200", VA = "0x180D1B200")]
	private IEnumerator<float> Wait()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x0600225C RID: 8796 RVA: 0x00053244 File Offset: 0x00051444
	[Token(Token = "0x600225C")]
	[Address(RVA = "0xD1AF90", Offset = "0xD19F90", VA = "0x180D1AF90")]
	private void MakeFakeSystemData()
	{
		GameCollection collection = Game.Collection;
		collection.gameCleared = (int)((ulong)1L);
		Game.Collection.UnlockAchievementFlag(34);
		Game.Collection.UnlockAchievementFlag(28);
		Game.Collection.UnlockAchievementFlag(21);
		Game.Collection.UnlockAchievementFlag(35);
		Game.Collection.UnlockAchievementFlag(7);
		GameCollection collection2 = Game.Collection;
		collection2.bossRushTitleTips = false;
		GameCollection collection3 = Game.Collection;
		collection3.bossRushCleared = (int)((ulong)1L);
		GameCollection collection4 = Game.Collection;
		collection4.bossRushMaximumMagic = true;
		GameCollection collection5 = Game.Collection;
		collection5.bossRushPerfectCleared = (int)((ulong)1L);
		Game.Collection.EnableMonicaPropsFlag();
		Game.Collection.EnableVanessaPropsFlag();
		Game.Collection.EnableCatPropsFlag();
		Game.Collection.EnableNobetaPropsFlag();
		GameCollection collection6 = Game.Collection;
		collection6.isDirty = true;
		WriteFileResult writeFileResult = Game.WriteSystemData();
	}

	// Token: 0x0600225D RID: 8797 RVA: 0x0005334C File Offset: 0x0005154C
	[Token(Token = "0x600225D")]
	[Address(RVA = "0xD1ACE0", Offset = "0xD19CE0", VA = "0x180D1ACE0")]
	private void MakeFakeGameSaveData()
	{
		int num;
		GameSave gameSave = new GameSave(1, (GameDifficulty)num);
		num = 0;
		gameSave.basic.stage = (GameStage)((ulong)2L);
		gameSave.basic.savePoint = (int)((ulong)1L);
		gameSave.stats.currentMoney = 90000f;
		gameSave.stats.healthyLevel = (int)((ulong)90L);
		gameSave.stats.manaLevel = (int)((ulong)90L);
		gameSave.stats.staminaLevel = (int)((ulong)90L);
		gameSave.stats.strengthLevel = (int)((ulong)90L);
		gameSave.stats.intelligenceLevel = (int)((ulong)90L);
		gameSave.stats.dexterityLevel = (int)((ulong)25L);
		gameSave.stats.secretMagicLevel = (int)((ulong)5L);
		gameSave.stats.iceMagicLevel = (int)((ulong)5L);
		gameSave.stats.fireMagicLevel = (int)((ulong)5L);
		gameSave.stats.thunderMagicLevel = (int)((ulong)5L);
		gameSave.stats.manaAbsorbLevel = (int)((ulong)5L);
		gameSave.stats.windMagicLevel = (int)((ulong)5L);
		gameSave.flags.stage01Room01 = true;
		gameSave.flags.stage01Room03 = true;
		gameSave.flags.stage01Room04 = true;
		gameSave.flags.stage01MeetCat = true;
		gameSave.flags.stage01Cleared = true;
		gameSave.flags.stage01OpenDoor01 = true;
		gameSave.flags.stage01OpenDoor02 = true;
		gameSave.flags.stage01OpenDoor03 = true;
		gameSave.flags.stage01Room06To07 = true;
		gameSave.flags.stage01Room07Wall = true;
		gameSave.flags.stage01Room08Wall01 = true;
		gameSave.flags.stage01Room08Wall02 = true;
		gameSave.flags.stage01Room07Barrier = true;
		gameSave.flags.stage01Room09Barrier = true;
		gameSave.flags.stage01Room10 = true;
		gameSave.flags.stage01Room08Door = true;
		WriteFileResult writeFileResult = Game.WriteGameSave(gameSave);
	}

	// Token: 0x0600225E RID: 8798 RVA: 0x0005350C File Offset: 0x0005170C
	[Token(Token = "0x600225E")]
	[Address(RVA = "0x328C40", Offset = "0x327C40", VA = "0x180328C40")]
	public FakeGameSaveTest()
	{
	}

	// Token: 0x04002BFA RID: 11258
	[FieldOffset(Offset = "0x18")]
	[Token(Token = "0x4002BFA")]
	[SerializeField]
	private Text _message;
}
