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
ChatMessageContainer.cs
Go to the documentation of this file.
1using System;
5
6namespace Terraria.UI.Chat
7{
8 // Token: 0x0200072C RID: 1836
10 {
11 // Token: 0x06003CBE RID: 15550 RVA: 0x00237348 File Offset: 0x00235548
12 public void SetContents(string text, Color color, int widthLimitInPixels)
13 {
15 this._color = color;
17 this._timeLeft = 600;
18 this.Refresh();
19 }
20
21 // Token: 0x06003CBF RID: 15551 RVA: 0x0023737C File Offset: 0x0023557C
22 public void MarkToNeedRefresh()
23 {
24 }
25
26 // Token: 0x06003CC0 RID: 15552 RVA: 0x0023738C File Offset: 0x0023558C
27 public void Update()
28 {
29 int timeLeft = this._timeLeft;
30 this._timeLeft = timeLeft;
31 this.Refresh();
32 }
33
34 // Token: 0x06003CC1 RID: 15553 RVA: 0x002373B0 File Offset: 0x002355B0
36 {
37 /*
38An exception occurred when decompiling this method (06003CC1)
39
40ICSharpCode.Decompiler.DecompilerException: Error decompiling Terraria.UI.Chat.TextSnippet[] Terraria.UI.Chat.ChatMessageContainer::GetSnippetWithInversedIndex(System.Int32)
41
42 ---> System.Exception: Basic block has to end with unconditional control flow.
43{
44 Block_0:
45 stloc:int32(var_0_0B, ldfld:int32(List`1::_size, ldfld:class [mscorlib]System.Collections.Generic.List`1<class Terraria.UI.Chat.TextSnippet[]>[exp:List`1](ChatMessageContainer::_parsedText, ldloc:ChatMessageContainer(this))))
46}
47
48 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
49 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
50 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
51 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
52 --- End of inner exception stack trace ---
53 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
54 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
55*/;
56 }
57
58 // Token: 0x17000769 RID: 1897
59 // (get) Token: 0x06003CC2 RID: 15554 RVA: 0x002373C8 File Offset: 0x002355C8
60 public int LineCount
61 {
62 get
63 {
64 return this._parsedText._size;
65 }
66 }
67
68 // Token: 0x1700076A RID: 1898
69 // (get) Token: 0x06003CC3 RID: 15555 RVA: 0x002373E0 File Offset: 0x002355E0
71 {
72 get
73 {
74 /*
75An exception occurred when decompiling this method (06003CC3)
76
77ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.UI.Chat.ChatMessageContainer::get_CanBeShownWhenChatIsClosed()
78
79 ---> System.Exception: Basic block has to end with unconditional control flow.
80{
81 Block_0:
82 stloc:int32(var_0_06, ldfld:int32(ChatMessageContainer::_timeLeft, ldloc:ChatMessageContainer(this)))
83}
84
85 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
86 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
87 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
88 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
89 --- End of inner exception stack trace ---
90 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
91 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
92*/;
93 }
94 }
95
96 // Token: 0x1700076B RID: 1899
97 // (get) Token: 0x06003CC4 RID: 15556 RVA: 0x002373F4 File Offset: 0x002355F4
98 public bool Prepared
99 {
100 get
101 {
102 return this._prepared;
103 }
104 }
105
106 // Token: 0x06003CC5 RID: 15557 RVA: 0x000021DB File Offset: 0x000003DB
107 public void Refresh()
108 {
109 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
110 }
111
112 // Token: 0x06003CC6 RID: 15558 RVA: 0x00237408 File Offset: 0x00235608
114 {
115 }
116
117 // Token: 0x04007BE0 RID: 31712
118 public string OriginalText;
119
120 // Token: 0x04007BE1 RID: 31713
121 private bool _prepared;
122
123 // Token: 0x04007BE2 RID: 31714
125
126 // Token: 0x04007BE3 RID: 31715
127 private Color _color;
128
129 // Token: 0x04007BE4 RID: 31716
131
132 // Token: 0x04007BE5 RID: 31717
133 private int _timeLeft;
134 }
135}
class f__AnonymousType0<< Count > j__TPar
TextSnippet[] GetSnippetWithInversedIndex(int snippetIndex)
void SetContents(string text, Color color, int widthLimitInPixels)