using System;
using Cpp2IlInjected;
using MarsSDK;
using Newtonsoft.Json;
using UnityEngine;

// Token: 0x02000150 RID: 336
[Token(Token = "0x2000150")]
public class EditorPlatform : IGamePlatform
{
	// Token: 0x17000078 RID: 120
	// (get) Token: 0x06001114 RID: 4372 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x17000078")]
	public ControllerDevice DefaultController
	{
		[Token(Token = "0x6001114")]
		[Address(RVA = "0x2B4CB0", Offset = "0x2B3AB0", VA = "0x1802B4CB0", Slot = "4")]
		get
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}
	}

	// Token: 0x17000079 RID: 121
	// (get) Token: 0x06001115 RID: 4373 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x17000079")]
	public IFileSystem FileSystem
	{
		[Token(Token = "0x6001115")]
		[Address(RVA = "0x2B4010", Offset = "0x2B2E10", VA = "0x1802B4010", Slot = "5")]
		get
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}
	}

	// Token: 0x1700007A RID: 122
	// (get) Token: 0x06001116 RID: 4374 RVA: 0x00027B90 File Offset: 0x00025D90
	[Token(Token = "0x1700007A")]
	public string AppVersion
	{
		[Token(Token = "0x6001116")]
		[Address(RVA = "0x943900", Offset = "0x942700", VA = "0x180943900", Slot = "6")]
		get
		{
			return Application.version;
		}
	}

	// Token: 0x1700007B RID: 123
	// (get) Token: 0x06001117 RID: 4375 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x1700007B")]
	public bool IsConsolePlatform
	{
		[Token(Token = "0x6001117")]
		[Address(RVA = "0x290BB0", Offset = "0x28F9B0", VA = "0x180290BB0", Slot = "7")]
		get
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}
	}

	// Token: 0x1700007C RID: 124
	// (get) Token: 0x06001118 RID: 4376 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x1700007C")]
	public bool UseAsiaController
	{
		[Token(Token = "0x6001118")]
		[Address(RVA = "0x290BB0", Offset = "0x28F9B0", VA = "0x180290BB0", Slot = "8")]
		get
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}
	}

	// Token: 0x1700007D RID: 125
	// (get) Token: 0x06001119 RID: 4377 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x1700007D")]
	public bool UseAchievement
	{
		[Token(Token = "0x6001119")]
		[Address(RVA = "0x290BB0", Offset = "0x28F9B0", VA = "0x180290BB0", Slot = "9")]
		get
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}
	}

	// Token: 0x1700007E RID: 126
	// (get) Token: 0x0600111A RID: 4378 RVA: 0x00027BA4 File Offset: 0x00025DA4
	[Token(Token = "0x1700007E")]
	public bool ShowQuitButton
	{
		[Token(Token = "0x600111A")]
		[Address(RVA = "0x454840", Offset = "0x453640", VA = "0x180454840", Slot = "10")]
		get
		{
			return true;
		}
	}

	// Token: 0x1700007F RID: 127
	// (get) Token: 0x0600111B RID: 4379 RVA: 0x00027BB4 File Offset: 0x00025DB4
	[Token(Token = "0x1700007F")]
	public bool ShowDepthOfFieldSetting
	{
		[Token(Token = "0x600111B")]
		[Address(RVA = "0x454840", Offset = "0x453640", VA = "0x180454840", Slot = "11")]
		get
		{
			return true;
		}
	}

	// Token: 0x17000080 RID: 128
	// (get) Token: 0x0600111C RID: 4380 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x17000080")]
	public bool IncludeChineseVideos
	{
		[Token(Token = "0x600111C")]
		[Address(RVA = "0x290BB0", Offset = "0x28F9B0", VA = "0x180290BB0", Slot = "12")]
		get
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}
	}

	// Token: 0x17000081 RID: 129
	// (get) Token: 0x0600111D RID: 4381 RVA: 0x00027BC4 File Offset: 0x00025DC4
	[Token(Token = "0x17000081")]
	public bool EnableBearSkin
	{
		[Token(Token = "0x600111D")]
		[Address(RVA = "0x454840", Offset = "0x453640", VA = "0x180454840", Slot = "13")]
		get
		{
			return true;
		}
	}

	// Token: 0x17000082 RID: 130
	// (get) Token: 0x0600111E RID: 4382 RVA: 0x00027BD4 File Offset: 0x00025DD4
	[Token(Token = "0x17000082")]
	public bool EnableBunnySkin
	{
		[Token(Token = "0x600111E")]
		[Address(RVA = "0x454840", Offset = "0x453640", VA = "0x180454840", Slot = "14")]
		get
		{
			return true;
		}
	}

	// Token: 0x17000083 RID: 131
	// (get) Token: 0x0600111F RID: 4383 RVA: 0x00027BE4 File Offset: 0x00025DE4
	[Token(Token = "0x17000083")]
	public bool EnablePajamasSkin
	{
		[Token(Token = "0x600111F")]
		[Address(RVA = "0x454840", Offset = "0x453640", VA = "0x180454840", Slot = "15")]
		get
		{
			return true;
		}
	}

	// Token: 0x06001120 RID: 4384 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001120")]
	[Address(RVA = "0xA5DB90", Offset = "0xA5C990", VA = "0x180A5DB90")]
	public EditorPlatform()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001121 RID: 4385 RVA: 0x00027BF4 File Offset: 0x00025DF4
	[Token(Token = "0x6001121")]
	[Address(RVA = "0x943700", Offset = "0x942500", VA = "0x180943700", Slot = "16")]
	public void Setup(Action nextAction)
	{
		if (nextAction != 0)
		{
			nextAction();
			return;
		}
	}

	// Token: 0x06001122 RID: 4386 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001122")]
	[Address(RVA = "0xA5D980", Offset = "0xA5C780", VA = "0x180A5D980", Slot = "17")]
	public GameConfig GetConfig()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001123 RID: 4387 RVA: 0x00027C0C File Offset: 0x00025E0C
	[Token(Token = "0x6001123")]
	[Address(RVA = "0xA5DAD0", Offset = "0xA5C8D0", VA = "0x180A5DAD0", Slot = "18")]
	public void SaveConfig(GameConfig config)
	{
		string text = JsonConvert.SerializeObject(config);
		PlayerPrefs.SetString("Config", text);
	}

	// Token: 0x06001124 RID: 4388 RVA: 0x00027C2C File Offset: 0x00025E2C
	[Token(Token = "0x6001124")]
	[Address(RVA = "0xA5D8C0", Offset = "0xA5C6C0", VA = "0x180A5D8C0")]
	private GameConfig CreateConfig()
	{
		GameConfig gameConfig = new GameConfig();
		gameConfig.configVersion = (int)((ulong)21L);
		string text = JsonConvert.SerializeObject(gameConfig);
		PlayerPrefs.SetString("Config", text);
		return gameConfig;
	}

	// Token: 0x06001125 RID: 4389 RVA: 0x00027C64 File Offset: 0x00025E64
	[Token(Token = "0x6001125")]
	[Address(RVA = "0xA5DB40", Offset = "0xA5C940", VA = "0x180A5DB40", Slot = "19")]
	public void ShowNoSpaceDialogue(Action nextAction)
	{
		/*
An exception occurred when decompiling this method (06001125)

ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void EditorPlatform::ShowNoSpaceDialogue(System.Action)

 ---> System.Exception: Basic block has to end with unconditional control flow. 
{; 	Block_0:; 	stloc:Exception(var_0_0A, newobj:Exception(Exception::.ctor, ldstr:string("This is ps4 only feature, if see the log, check save file flow."))); }; 
   at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1810
   at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 344
   at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
   at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
   --- End of inner exception stack trace ---
   at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
   at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1618
*/;
	}

	// Token: 0x06001126 RID: 4390 RVA: 0x00027C7C File Offset: 0x00025E7C
	[Token(Token = "0x6001126")]
	[Address(RVA = "0xA5DAA0", Offset = "0xA5C8A0", VA = "0x180A5DAA0", Slot = "20")]
	public GameSkin[] GetPlatformSkins()
	{
		return EnumUtils.AllValues<GameSkin>();
	}

	// Token: 0x06001127 RID: 4391 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001127")]
	[Address(RVA = "0x290BB0", Offset = "0x28F9B0", VA = "0x180290BB0", Slot = "21")]
	public bool HasAchievementUnlocked(int index)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001128 RID: 4392 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001128")]
	[Address(RVA = "0x297F00", Offset = "0x296D00", VA = "0x180297F00", Slot = "22")]
	public void UnlockAchievement(int index)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001129 RID: 4393 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001129")]
	[Address(RVA = "0x297F00", Offset = "0x296D00", VA = "0x180297F00", Slot = "23")]
	public void ResetAllAchievements(Action nextAction)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x0600112A RID: 4394 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x600112A")]
	[Address(RVA = "0x297F00", Offset = "0x296D00", VA = "0x180297F00", Slot = "24")]
	public void UpdateStatsData(GameCollection collectionData)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x0600112B RID: 4395 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x600112B")]
	[Address(RVA = "0x297F00", Offset = "0x296D00", VA = "0x180297F00", Slot = "25")]
	public void Quit()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x0600112C RID: 4396 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x600112C")]
	[Address(RVA = "0x290BB0", Offset = "0x28F9B0", VA = "0x180290BB0")]
	private bool GetConsolePlatformFlag()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x0600112D RID: 4397 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x600112D")]
	[Address(RVA = "0x290BB0", Offset = "0x28F9B0", VA = "0x180290BB0")]
	private bool GetUseAsiaControllerFlag()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x0600112E RID: 4398 RVA: 0x00027C90 File Offset: 0x00025E90
	[Token(Token = "0x600112E")]
	[Address(RVA = "0x454840", Offset = "0x453640", VA = "0x180454840")]
	private bool GetShowQuitButtonFlag()
	{
		return true;
	}

	// Token: 0x0600112F RID: 4399 RVA: 0x00027CA0 File Offset: 0x00025EA0
	[Token(Token = "0x600112F")]
	[Address(RVA = "0x454840", Offset = "0x453640", VA = "0x180454840")]
	private bool GetShowDOFButtonFlag()
	{
		return true;
	}

	// Token: 0x06001130 RID: 4400 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001130")]
	[Address(RVA = "0x2B4CB0", Offset = "0x2B3AB0", VA = "0x1802B4CB0")]
	private ControllerDevice GetDefaultController()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x04001B47 RID: 6983
	[FieldOffset(Offset = "0x10")]
	[Token(Token = "0x4001B47")]
	private StandaloneFileSystem fileSystem;
}
