using System; using System.Linq; using Cpp2IlInjected; using UnityEngine; // Token: 0x02000223 RID: 547 [Token(Token = "0x2000223")] [Serializable] public class GameJsonContainer { // Token: 0x06001517 RID: 5399 RVA: 0x0002FDA8 File Offset: 0x0002DFA8 [Token(Token = "0x6001517")] [Address(RVA = "0x506160", Offset = "0x504960", VA = "0x180506160")] public void UpdateJsonAssets(TextAsset[] jsons) { /* An exception occurred when decompiling this method (06001517) 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: 0x06001518 RID: 5400 RVA: 0x0002FE5C File Offset: 0x0002E05C [Token(Token = "0x6001518")] [Address(RVA = "0x506080", Offset = "0x504880", VA = "0x180506080")] private TextAsset GetAsset(TextAsset[] jsons, string name) { Func func = delegate(TextAsset asset) { string name2 = asset.name; string name3 = name; return string.Equals(name2, name3); }; return Enumerable.FirstOrDefault(jsons, func); } // Token: 0x06001519 RID: 5401 RVA: 0x0002FE90 File Offset: 0x0002E090 [Token(Token = "0x6001519")] [Address(RVA = "0x43A830", Offset = "0x439030", VA = "0x18043A830")] public GameJsonContainer() { } // Token: 0x0400209D RID: 8349 [FieldOffset(Offset = "0x10")] [Token(Token = "0x400209D")] public TextAsset systemText; // Token: 0x0400209E RID: 8350 [FieldOffset(Offset = "0x18")] [Token(Token = "0x400209E")] public TextAsset valuableText; // Token: 0x0400209F RID: 8351 [FieldOffset(Offset = "0x20")] [Token(Token = "0x400209F")] public TextAsset gameTipText; // Token: 0x040020A0 RID: 8352 [FieldOffset(Offset = "0x28")] [Token(Token = "0x40020A0")] public TextAsset achievementText; // Token: 0x040020A1 RID: 8353 [FieldOffset(Offset = "0x30")] [Token(Token = "0x40020A1")] public TextAsset storyText; // Token: 0x040020A2 RID: 8354 [FieldOffset(Offset = "0x38")] [Token(Token = "0x40020A2")] public TextAsset combatDialogue; // Token: 0x040020A3 RID: 8355 [FieldOffset(Offset = "0x40")] [Token(Token = "0x40020A3")] public TextAsset itemVoice; // Token: 0x040020A4 RID: 8356 [FieldOffset(Offset = "0x48")] [Token(Token = "0x40020A4")] public TextAsset videoText; }