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
HelpCommand.cs
Go to the documentation of this file.
1using System;
5
7{
8 // Token: 0x020007A5 RID: 1957
9 [ChatCommand("Help")]
11 {
12 // Token: 0x06003FD2 RID: 16338 RVA: 0x00241414 File Offset: 0x0023F614
13 public void ProcessIncomingMessage(string text, byte clientId)
14 {
15 if (!true)
16 {
17 }
19 }
20
21 // Token: 0x06003FD3 RID: 16339 RVA: 0x00241430 File Offset: 0x0023F630
23 {
24 /*
25An exception occurred when decompiling this method (06003FD3)
26
27ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.Generic.Dictionary`2<System.String,System.Collections.Generic.List`1<Terraria.Localization.LocalizedText>> Terraria.Chat.Commands.HelpCommand::GetCommandAliasesByID()
28
29 ---> System.Exception: Basic block has to end with unconditional control flow.
30{
31 IL_0003:
32 stloc:string(var_2_1A, ldfld:string(LocalizedText::<Value>k__BackingField, call:class Terraria.Localization.LocalizedText[][exp:LocalizedText](Language::FindAll, call:LanguageSearchFilter(Lang::CreateDialogFilter, ldstr:string("ChatCommandDescription."), ldloc:object(var_1)))))
33 stloc:int32(var_5_1F, ldc.i4:int32(95))
34 stloc:int32(var_6_2A, call:int32(string::IndexOf, ldloc:string(var_4), ldloc:int32[exp:char](var_5_1F)))
35 stloc:int64(var_7_2D, ldc.i4:int64(0))
36 stloc:string(var_8_3A, call:string(string::Substring, ldloc:string(var_4), ldloc:int64[exp:int32](var_7_2D), ldloc:int32(var_6_2A)))
37}
38
39 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
40 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
41 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
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 88
43 --- End of inner exception stack trace ---
44 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
45 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
46*/;
47 }
48
49 // Token: 0x06003FD4 RID: 16340 RVA: 0x00241478 File Offset: 0x0023F678
51 {
52 string text2;
53 string text = "" + "{" + text2 + "}\n";
54 string text3;
56 }
57
58 // Token: 0x06003FD5 RID: 16341 RVA: 0x002414C4 File Offset: 0x0023F6C4
60 {
61 }
62
63 // Token: 0x06003FD6 RID: 16342 RVA: 0x002414D4 File Offset: 0x0023F6D4
64 public HelpCommand()
65 {
66 }
67
68 // Token: 0x06003FD7 RID: 16343 RVA: 0x002414E8 File Offset: 0x0023F6E8
69 // Note: this type is marked as 'beforefieldinit'.
70 static HelpCommand()
71 {
72 }
73
74 // Token: 0x04007DD3 RID: 32211
76 }
77}
class f__AnonymousType0<< Count > j__TPar
static NetworkText ComposeMessage(Dictionary< string, List< LocalizedText > > aliases)
static Dictionary< string, List< LocalizedText > > GetCommandAliasesByID()
static readonly Color RESPONSE_COLOR
void ProcessOutgoingMessage(ChatMessage message)
void ProcessIncomingMessage(string text, byte clientId)
static LocalizedText GetText(string key)
Definition Language.cs:44