terraria-cpp2il v1.4.4.9
Terraria mobile dump, with CallAnalysis (see source code). Dump with reconstucted method: https://infinitynichto.github.io/terraria-cpp2il-methodrecon
Loading...
Searching...
No Matches
ChatCommandProcessor.cs
Go to the documentation of this file.
1using System;
3using System.IO;
4using System.Linq;
13using UnityEngine;
14
15namespace Terraria.Chat
16{
17 [global::Cpp2ILInjected.Token(Token = "0x2000798")]
19 {
20 [global::Cpp2ILInjected.Token(Token = "0x6003F96")]
21 [global::Cpp2ILInjected.Address(RVA = "0x1576780", Offset = "0x1576780", Length = "0x2E4")]
22 [global::Cpp2ILInjected.CallAnalysis.DeduplicatedMethod]
23 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
24 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(ChatInitializer), Member = "Load", ReturnType = typeof(void))]
25 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 11)]
26 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Concat", MemberParameters = new object[]
27 {
28 typeof(string),
29 typeof(string)
30 }, ReturnType = typeof(string))]
31 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<ChatCommandId, object>), Member = "set_Item", MemberParameters = new object[]
32 {
34 typeof(object)
35 }, ReturnType = typeof(void))]
36 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Language), Member = "Exists", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(bool))]
37 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Language), Member = "GetText", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(LocalizedText))]
38 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "op_Equality", MemberParameters = new object[]
39 {
40 typeof(string),
41 typeof(string)
42 }, ReturnType = typeof(bool))]
43 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<object, ChatCommandId>), Member = "Add", MemberParameters = new object[]
44 {
45 typeof(object),
47 }, ReturnType = typeof(void))]
48 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Debug), Member = "LogError", MemberParameters = new object[] { typeof(object) }, ReturnType = typeof(void))]
49 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 15)]
51 {
52 throw null;
53 }
54
55 [global::Cpp2ILInjected.Token(Token = "0x6003F97")]
56 [global::Cpp2ILInjected.Address(RVA = "0x748C88", Offset = "0x748C88", Length = "0x60")]
57 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(ChatInitializer), Member = "PrepareAliases", ReturnType = typeof(void))]
58 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
59 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<object, object>), Member = "set_Item", MemberParameters = new object[]
60 {
61 typeof(object),
62 typeof(object)
63 }, ReturnType = typeof(void))]
64 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
66 {
67 throw null;
68 }
69
70 [global::Cpp2ILInjected.Token(Token = "0x6003F98")]
71 [global::Cpp2ILInjected.Address(RVA = "0x748CE8", Offset = "0x748CE8", Length = "0x48")]
72 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(ChatInitializer), Member = "PrepareAliases", ReturnType = typeof(void))]
73 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
74 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<object, object>), Member = "Clear", ReturnType = typeof(void))]
75 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
76 public void ClearAliases()
77 {
78 throw null;
79 }
80
81 [global::Cpp2ILInjected.Token(Token = "0x6003F99")]
82 [global::Cpp2ILInjected.Address(RVA = "0x1576A64", Offset = "0x1576A64", Length = "0x8C")]
83 [global::Cpp2ILInjected.CallAnalysis.DeduplicatedMethod]
84 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
85 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(ChatInitializer), Member = "Load", ReturnType = typeof(void))]
86 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
87 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<ChatCommandId, object>), Member = "get_Item", MemberParameters = new object[] { typeof(ChatCommandId) }, ReturnType = "TValue")]
88 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
90 {
91 throw null;
92 }
93
94 [global::Cpp2ILInjected.Token(Token = "0x6003F9A")]
95 [global::Cpp2ILInjected.Address(RVA = "0x748D30", Offset = "0x748D30", Length = "0x74")]
96 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
97 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(ChatCommandProcessor.<>c__DisplayClass10_0), Member = "<CreateOutgoingMessage>b__0", MemberParameters = new object[] { typeof(KeyValuePair<LocalizedText, ChatCommandId>) }, ReturnType = typeof(bool))]
98 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(ChatCommandProcessor.<>c__DisplayClass10_0), Member = "<CreateOutgoingMessage>b__1", MemberParameters = new object[] { typeof(KeyValuePair<LocalizedText, NetworkText>) }, ReturnType = typeof(bool))]
99 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(ChatCommandProcessor.<>c__DisplayClass10_0), Member = "<CreateOutgoingMessage>b__2", MemberParameters = new object[] { typeof(KeyValuePair<LocalizedText, NetworkText>) }, ReturnType = typeof(bool))]
100 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 3)]
101 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "ToLower", ReturnType = typeof(string))]
102 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "StartsWith", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(bool))]
103 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "get_Chars", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(char))]
104 private static bool HasLocalizedCommand(ChatMessage message, LocalizedText command)
105 {
106 throw null;
107 }
108
109 [global::Cpp2ILInjected.Token(Token = "0x6003F9B")]
110 [global::Cpp2ILInjected.Address(RVA = "0x748DA4", Offset = "0x748DA4", Length = "0xA4")]
111 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
112 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(ChatCommandProcessor), Member = "CreateOutgoingMessage", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(ChatMessage))]
113 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
114 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "StartsWith", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(bool))]
115 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "get_Chars", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(char))]
116 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Substring", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(string))]
117 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
118 private static string RemoveCommandPrefix(string messageText, LocalizedText command)
119 {
120 throw null;
121 }
122
123 [global::Cpp2ILInjected.Token(Token = "0x6003F9C")]
124 [global::Cpp2ILInjected.Address(RVA = "0x748E48", Offset = "0x748E48", Length = "0x2F8")]
125 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
126 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(GUIMultiplayerChat), Member = "Draw", ReturnType = typeof(void))]
127 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
128 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
129 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ChatMessage), Member = ".ctor", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
130 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Func<KeyValuePair<object, ChatCommandId>, bool>), Member = ".ctor", MemberParameters = new object[]
131 {
132 typeof(object),
134 }, ReturnType = typeof(void))]
135 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Enumerable), Member = "FirstOrDefault", MemberTypeParameters = new object[] { "TSource" }, MemberParameters = new object[] { "System.Collections.Generic.IEnumerable`1<TSource>", "System.Func`2<TSource, Boolean>" }, ReturnType = "TSource")]
136 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Func<KeyValuePair<object, object>, bool>), Member = ".ctor", MemberParameters = new object[]
137 {
138 typeof(object),
140 }, ReturnType = typeof(void))]
141 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Enumerable[]), Member = "FirstOrDefault", MemberTypeParameters = new object[] { typeof(KeyValuePair<object, object>) }, MemberParameters = new object[]
142 {
145 }, ReturnType = "TSource")]
146 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ChatMessage), Member = "SetCommand", MemberParameters = new object[] { typeof(ChatCommandId) }, ReturnType = typeof(void))]
147 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ChatCommandProcessor), Member = "RemoveCommandPrefix", MemberParameters = new object[]
148 {
149 typeof(string),
151 }, ReturnType = typeof(string))]
152 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<ChatCommandId, object>), Member = "get_Item", MemberParameters = new object[] { typeof(ChatCommandId) }, ReturnType = "TValue")]
153 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 22)]
155 {
156 throw null;
157 }
158
159 [global::Cpp2ILInjected.Token(Token = "0x6003F9D")]
160 [global::Cpp2ILInjected.Address(RVA = "0x749210", Offset = "0x749210", Length = "0x138")]
161 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
162 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(GUIMultiplayerChat), Member = "Draw", ReturnType = typeof(void))]
163 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(NetTextModule), Member = "DeserializeAsServer", MemberParameters = new object[]
164 {
166 typeof(int)
167 }, ReturnType = typeof(bool))]
168 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
169 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<ChatCommandId, object>), Member = "TryGetValue", MemberParameters = new object[]
170 {
172 typeof(ref object)
173 }, ReturnType = typeof(bool))]
174 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 3)]
176 {
177 throw null;
178 }
179
180 [global::Cpp2ILInjected.Token(Token = "0x6003F9E")]
181 [global::Cpp2ILInjected.Address(RVA = "0x749354", Offset = "0x749354", Length = "0x10C")]
182 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(ChatManager), Member = ".cctor", ReturnType = typeof(void))]
183 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
184 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<object, ChatCommandId>), Member = ".ctor", ReturnType = typeof(void))]
185 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<ChatCommandId, object>), Member = ".ctor", ReturnType = typeof(void))]
186 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<object, object>), Member = ".ctor", ReturnType = typeof(void))]
187 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
188 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 9)]
190 {
191 throw null;
192 }
193
194 [global::Cpp2ILInjected.Token(Token = "0x4007DC2")]
195 [global::Cpp2ILInjected.FieldOffset(Offset = "0x10")]
197
198 [global::Cpp2ILInjected.Token(Token = "0x4007DC3")]
199 [global::Cpp2ILInjected.FieldOffset(Offset = "0x18")]
201
202 [global::Cpp2ILInjected.Token(Token = "0x4007DC4")]
203 [global::Cpp2ILInjected.FieldOffset(Offset = "0x20")]
205
206 [global::Cpp2ILInjected.Token(Token = "0x4007DC5")]
207 [global::Cpp2ILInjected.FieldOffset(Offset = "0x28")]
209
211 [global::Cpp2ILInjected.Token(Token = "0x2000799")]
212 private sealed class <>c__DisplayClass10_0
213 {
214 [global::Cpp2ILInjected.Token(Token = "0x6003F9F")]
215 [global::Cpp2ILInjected.Address(RVA = "0x749140", Offset = "0x749140", Length = "0x8")]
216 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
217 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
219 {
220 throw null;
221 }
222
223 [global::Cpp2ILInjected.Token(Token = "0x6003FA0")]
224 [global::Cpp2ILInjected.Address(RVA = "0x749460", Offset = "0x749460", Length = "0x44")]
225 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
226 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ChatCommandProcessor), Member = "HasLocalizedCommand", MemberParameters = new object[]
227 {
230 }, ReturnType = typeof(bool))]
231 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
233 {
234 throw null;
235 }
236
237 [global::Cpp2ILInjected.Token(Token = "0x6003FA1")]
238 [global::Cpp2ILInjected.Address(RVA = "0x7494A4", Offset = "0x7494A4", Length = "0x44")]
239 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
240 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ChatCommandProcessor), Member = "HasLocalizedCommand", MemberParameters = new object[]
241 {
244 }, ReturnType = typeof(bool))]
245 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
247 {
248 throw null;
249 }
250
251 [global::Cpp2ILInjected.Token(Token = "0x6003FA2")]
252 [global::Cpp2ILInjected.Address(RVA = "0x7494E8", Offset = "0x7494E8", Length = "0x44")]
253 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
254 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ChatCommandProcessor), Member = "HasLocalizedCommand", MemberParameters = new object[]
255 {
258 }, ReturnType = typeof(bool))]
259 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
261 {
262 throw null;
263 }
264
265 [global::Cpp2ILInjected.Token(Token = "0x4007DC6")]
266 [global::Cpp2ILInjected.FieldOffset(Offset = "0x10")]
267 public ChatMessage message;
268
269 [global::Cpp2ILInjected.Token(Token = "0x4007DC7")]
270 [global::Cpp2ILInjected.FieldOffset(Offset = "0x18")]
272 }
273 }
274}
class f__AnonymousType0<< Count > j__TPar
readonly Dictionary< ChatCommandId, IChatCommand > _commands
ChatCommandProcessor AddDefaultCommand< T >()
static string RemoveCommandPrefix(string messageText, LocalizedText command)
void AddAlias(LocalizedText text, NetworkText result)
ChatMessage CreateOutgoingMessage(string text)
readonly Dictionary< LocalizedText, ChatCommandId > _localizedCommands
readonly Dictionary< LocalizedText, NetworkText > _aliases
static bool HasLocalizedCommand(ChatMessage message, LocalizedText command)
void ProcessIncomingMessage(ChatMessage message, int clientId)