terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
NamePlateInfoElement.cs
Go to the documentation of this file.
1using System;
3using Terraria.UI;
4
6{
7 // Token: 0x02000966 RID: 2406
9 {
10 // Token: 0x06004817 RID: 18455 RVA: 0x0025FCEC File Offset: 0x0025DEEC
16
17 // Token: 0x06004818 RID: 18456 RVA: 0x0025FD10 File Offset: 0x0025DF10
18 public string GetName()
19 {
20 return Language.GetTextValue(this._key);
21 }
22
23 // Token: 0x06004819 RID: 18457 RVA: 0x0025FD28 File Offset: 0x0025DF28
25 {
26 /*
27An exception occurred when decompiling this method (06004819)
28
29ICSharpCode.Decompiler.DecompilerException: Error decompiling Terraria.UI.UIElement Terraria.GameContent.Bestiary.NamePlateInfoElement::ProvideUIElement(Terraria.GameContent.Bestiary.BestiaryUICollectionInfo)
30
31 ---> System.Exception: Basic block has to end with unconditional control flow.
32{
33 Block_0:
34 stloc:LocalizedText(var_0_0B, call:LocalizedText(Language::GetText, ldfld:string(NamePlateInfoElement::_key, ldloc:NamePlateInfoElement(this))))
35}
36
37 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
38 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 355
39 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
40 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
41 --- End of inner exception stack trace ---
42 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
43 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 1683
44*/;
45 }
46
47 // Token: 0x0600481A RID: 18458 RVA: 0x0025FD40 File Offset: 0x0025DF40
49 {
50 if (info.UnlockState != BestiaryEntryUnlockState.NotKnownAtAll_0)
51 {
52 return Language.GetText(this._key).<Value>k__BackingField;
53 }
54 }
55
56 // Token: 0x040083AA RID: 33706
57 private string _key;
58
59 // Token: 0x040083AB RID: 33707
60 private int _npcNetId;
61 }
62}
class f__AnonymousType0<< Count > j__TPar
string GetSearchString(BestiaryUICollectionInfo info)
UIElement ProvideUIElement(BestiaryUICollectionInfo info)
NamePlateInfoElement(string languageKey, int npcNetId)
static LocalizedText GetText(string key)
Definition Language.cs:44
static string GetTextValue(string key)
Definition Language.cs:54