using System; using System.Linq; using Cpp2IlInjected; using UnityEngine; // Token: 0x0200025C RID: 604 [Token(Token = "0x200025C")] [Serializable] public class GameJsonContainer { // Token: 0x060016C3 RID: 5827 RVA: 0x00033358 File Offset: 0x00031558 [Token(Token = "0x60016C3")] [Address(RVA = "0x3764D0", Offset = "0x3754D0", VA = "0x1803764D0")] public void UpdateJsonAssets(TextAsset[] jsons) { /* An exception occurred when decompiling this method (060016C3) 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: 0x060016C4 RID: 5828 RVA: 0x0003340C File Offset: 0x0003160C [Token(Token = "0x60016C4")] [Address(RVA = "0x3763F0", Offset = "0x3753F0", VA = "0x1803763F0")] 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: 0x060016C5 RID: 5829 RVA: 0x00033440 File Offset: 0x00031640 [Token(Token = "0x60016C5")] [Address(RVA = "0x36ABD0", Offset = "0x369BD0", VA = "0x18036ABD0")] public GameJsonContainer() { } // Token: 0x04002272 RID: 8818 [FieldOffset(Offset = "0x10")] [Token(Token = "0x4002272")] public TextAsset systemText; // Token: 0x04002273 RID: 8819 [FieldOffset(Offset = "0x18")] [Token(Token = "0x4002273")] public TextAsset valuableText; // Token: 0x04002274 RID: 8820 [FieldOffset(Offset = "0x20")] [Token(Token = "0x4002274")] public TextAsset gameTipText; // Token: 0x04002275 RID: 8821 [FieldOffset(Offset = "0x28")] [Token(Token = "0x4002275")] public TextAsset achievementText; // Token: 0x04002276 RID: 8822 [FieldOffset(Offset = "0x30")] [Token(Token = "0x4002276")] public TextAsset storyText; // Token: 0x04002277 RID: 8823 [FieldOffset(Offset = "0x38")] [Token(Token = "0x4002277")] public TextAsset combatDialogue; // Token: 0x04002278 RID: 8824 [FieldOffset(Offset = "0x40")] [Token(Token = "0x4002278")] public TextAsset itemVoice; // Token: 0x04002279 RID: 8825 [FieldOffset(Offset = "0x48")] [Token(Token = "0x4002279")] public TextAsset videoText; }