using System;
using System.Linq;
using Cpp2IlInjected;
using UnityEngine;

// Token: 0x0200021B RID: 539
[Token(Token = "0x200021B")]
[Serializable]
public class GameJsonContainer
{
	// Token: 0x060014F8 RID: 5368 RVA: 0x0002F630 File Offset: 0x0002D830
	[Token(Token = "0x60014F8")]
	[Address(RVA = "0x542B20", Offset = "0x541920", VA = "0x180542B20")]
	public void UpdateJsonAssets(TextAsset[] jsons)
	{
		/*
An exception occurred when decompiling this method (060014F8)

ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void GameJsonContainer::UpdateJsonAssets(UnityEngine.TextAsset[])

 ---> System.Exception: Basic block has to end with unconditional control flow. 
{; 	Block_0:; 	stloc:TextAsset(var_0_0C, call:TextAsset(GameJsonContainer::GetAsset, ldloc:GameJsonContainer(this), ldloc:class [UnityEngine.CoreModule]UnityEngine.TextAsset[](jsons), ldstr:string("UISystem"))); 	stfld:TextAsset(GameJsonContainer::systemText, ldloc:GameJsonContainer(this), ldloc:TextAsset(var_0_0C)); 	stloc:TextAsset(var_1_20, call:TextAsset(GameJsonContainer::GetAsset, ldloc:GameJsonContainer(this), ldloc:class [UnityEngine.CoreModule]UnityEngine.TextAsset[](jsons), ldstr:string("Valuables"))); 	stfld:TextAsset(GameJsonContainer::valuableText, ldloc:GameJsonContainer(this), ldloc:TextAsset(var_1_20)); 	stloc:TextAsset(var_2_34, call:TextAsset(GameJsonContainer::GetAsset, ldloc:GameJsonContainer(this), ldloc:class [UnityEngine.CoreModule]UnityEngine.TextAsset[](jsons), ldstr:string("GameTips"))); 	stfld:TextAsset(GameJsonContainer::gameTipText, ldloc:GameJsonContainer(this), ldloc:TextAsset(var_2_34)); 	stloc:TextAsset(var_3_48, call:TextAsset(GameJsonContainer::GetAsset, ldloc:GameJsonContainer(this), ldloc:class [UnityEngine.CoreModule]UnityEngine.TextAsset[](jsons), ldstr:string("Achievement"))); 	stfld:TextAsset(GameJsonContainer::achievementText, ldloc:GameJsonContainer(this), ldloc:TextAsset(var_3_48)); 	stloc:TextAsset(var_4_5C, call:TextAsset(GameJsonContainer::GetAsset, ldloc:GameJsonContainer(this), ldloc:class [UnityEngine.CoreModule]UnityEngine.TextAsset[](jsons), ldstr:string("Story"))); 	stfld:TextAsset(GameJsonContainer::storyText, ldloc:GameJsonContainer(this), ldloc:TextAsset(var_4_5C)); 	stloc:TextAsset(var_5_72, call:TextAsset(GameJsonContainer::GetAsset, ldloc:GameJsonContainer(this), ldloc:class [UnityEngine.CoreModule]UnityEngine.TextAsset[](jsons), ldstr:string("CombatDialogue"))); 	stfld:TextAsset(GameJsonContainer::combatDialogue, ldloc:GameJsonContainer(this), ldloc:TextAsset(var_5_72)); 	stloc:TextAsset(var_6_88, call:TextAsset(GameJsonContainer::GetAsset, ldloc:GameJsonContainer(this), ldloc:class [UnityEngine.CoreModule]UnityEngine.TextAsset[](jsons), ldstr:string("ItemVoice"))); 	stfld:TextAsset(GameJsonContainer::itemVoice, ldloc:GameJsonContainer(this), ldloc:TextAsset(var_6_88)); 	stloc:TextAsset(var_7_9E, call:TextAsset(GameJsonContainer::GetAsset, ldloc:GameJsonContainer(this), ldloc:class [UnityEngine.CoreModule]UnityEngine.TextAsset[](jsons), ldstr:string("VideoData"))); 	stfld:TextAsset(GameJsonContainer::videoText, ldloc:GameJsonContainer(this), ldloc:TextAsset(var_7_9E)); }; 
   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: 0x060014F9 RID: 5369 RVA: 0x0002F6E4 File Offset: 0x0002D8E4
	[Token(Token = "0x60014F9")]
	[Address(RVA = "0x542A40", Offset = "0x541840", VA = "0x180542A40")]
	private TextAsset GetAsset(TextAsset[] jsons, string name)
	{
		Func<TextAsset, bool> func = delegate(TextAsset asset)
		{
			string name2 = asset.name;
			string name3 = name;
			return string.Equals(name2, name3);
		};
		return Enumerable.FirstOrDefault<TextAsset>(jsons, func);
	}

	// Token: 0x060014FA RID: 5370 RVA: 0x0002F718 File Offset: 0x0002D918
	[Token(Token = "0x60014FA")]
	[Address(RVA = "0x3D8B20", Offset = "0x3D7920", VA = "0x1803D8B20")]
	public GameJsonContainer()
	{
	}

	// Token: 0x04002068 RID: 8296
	[FieldOffset(Offset = "0x10")]
	[Token(Token = "0x4002068")]
	public TextAsset systemText;

	// Token: 0x04002069 RID: 8297
	[FieldOffset(Offset = "0x18")]
	[Token(Token = "0x4002069")]
	public TextAsset valuableText;

	// Token: 0x0400206A RID: 8298
	[FieldOffset(Offset = "0x20")]
	[Token(Token = "0x400206A")]
	public TextAsset gameTipText;

	// Token: 0x0400206B RID: 8299
	[FieldOffset(Offset = "0x28")]
	[Token(Token = "0x400206B")]
	public TextAsset achievementText;

	// Token: 0x0400206C RID: 8300
	[FieldOffset(Offset = "0x30")]
	[Token(Token = "0x400206C")]
	public TextAsset storyText;

	// Token: 0x0400206D RID: 8301
	[FieldOffset(Offset = "0x38")]
	[Token(Token = "0x400206D")]
	public TextAsset combatDialogue;

	// Token: 0x0400206E RID: 8302
	[FieldOffset(Offset = "0x40")]
	[Token(Token = "0x400206E")]
	public TextAsset itemVoice;

	// Token: 0x0400206F RID: 8303
	[FieldOffset(Offset = "0x48")]
	[Token(Token = "0x400206F")]
	public TextAsset videoText;
}
