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
ControlsKeyboardTagHandler.cs
Go to the documentation of this file.
1using System;
2using System.Text;
3using Controller;
10
11[global::Cpp2ILInjected.Token(Token = "0x20000FB")]
13{
14 [global::Cpp2ILInjected.Token(Token = "0x600068C")]
15 [global::Cpp2ILInjected.Address(RVA = "0xD1A094", Offset = "0xD1A094", Length = "0x8C")]
16 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(ControlsKeyboardTagHandler), Member = "PrintInlineMapping", MemberParameters = new object[]
17 {
22 typeof(float),
24 typeof(int),
25 typeof(ref int),
27 }, ReturnType = typeof(bool))]
28 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
29 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "IsNullOrEmpty", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(bool))]
30 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ControlsKeyboardTagHandler.ControlsKeyboardSnippet), Member = "Draw", MemberParameters = new object[]
31 {
32 typeof(string),
33 typeof(bool),
39 typeof(float)
40 }, ReturnType = typeof(bool))]
41 private static void DrawKeyboardBinding(SpriteBatch spriteBatch, SpriteFont spriteFont, Vector2 position, Color color, float scale, string bindingText, bool measure = false)
42 {
43 throw null;
44 }
45
46 [global::Cpp2ILInjected.Token(Token = "0x600068D")]
47 [global::Cpp2ILInjected.Address(RVA = "0xD1A2C4", Offset = "0xD1A2C4", Length = "0x5E4")]
48 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
49 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(SpriteBatch), Member = "DrawString", MemberParameters = new object[]
50 {
52 typeof(string),
55 }, ReturnType = typeof(void))]
56 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(SpriteBatch), Member = "DrawString", MemberParameters = new object[]
57 {
62 }, ReturnType = typeof(void))]
63 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(SpriteBatch), Member = "DrawString", MemberParameters = new object[]
64 {
66 typeof(string),
69 typeof(float),
73 typeof(float)
74 }, ReturnType = typeof(void))]
75 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(SpriteBatch), Member = "DrawStringMultiLineRight", MemberParameters = new object[]
76 {
78 typeof(string),
81 typeof(float),
85 typeof(float)
86 }, ReturnType = typeof(void))]
87 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(SpriteBatch), Member = "DrawStringMultiLineCentre", MemberParameters = new object[]
88 {
90 typeof(string),
93 typeof(float),
97 typeof(float)
98 }, ReturnType = typeof(void))]
99 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(SpriteBatch), Member = "DrawString", MemberParameters = new object[]
100 {
104 typeof(Color),
105 typeof(float),
109 typeof(float)
110 }, ReturnType = typeof(void))]
111 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(SpriteBatch), Member = "DrawString", MemberParameters = new object[]
112 {
114 typeof(string),
115 typeof(int),
116 typeof(int),
118 typeof(Color),
119 typeof(float),
122 typeof(Vector2[])
123 }, ReturnType = typeof(void))]
124 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(SpriteBatch), Member = "DrawString", MemberParameters = new object[]
125 {
128 typeof(int),
129 typeof(int),
131 typeof(Color),
132 typeof(float),
135 typeof(Vector2[])
136 }, ReturnType = typeof(void))]
137 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(SpriteBatch), Member = "DrawString", MemberParameters = new object[]
138 {
140 typeof(string),
141 typeof(int),
142 typeof(int),
144 typeof(Color),
145 typeof(float),
149 typeof(float)
150 }, ReturnType = typeof(void))]
151 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(SpriteBatch), Member = "DrawString", MemberParameters = new object[]
152 {
155 typeof(int),
156 typeof(int),
158 typeof(Color),
159 typeof(float),
163 typeof(float)
164 }, ReturnType = typeof(void))]
165 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 10)]
166 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(SpriteFont.CharacterSource), Member = "get_Item", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(char))]
167 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ControllerActionAxis), Member = "get_FirstEntry", ReturnType = typeof(ControllerActionAxis.Entry))]
168 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ControllerActionButton), Member = "get_FirstEntry", ReturnType = typeof(ControllerActionButton.Entry))]
169 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Enum), Member = "ToString", ReturnType = typeof(string))]
170 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Concat", MemberParameters = new object[]
171 {
172 typeof(string),
173 typeof(string)
174 }, ReturnType = typeof(string))]
175 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Language), Member = "GetTextValue", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(string))]
176 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ControlsKeyboardTagHandler), Member = "DrawKeyboardBinding", MemberParameters = new object[]
177 {
181 typeof(Color),
182 typeof(float),
183 typeof(string),
184 typeof(bool)
185 }, ReturnType = typeof(void))]
186 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(SpriteFont), Member = "MeasureString", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(Vector2))]
187 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 10)]
188 public static bool PrintInlineMapping(SpriteBatch spriteBatch, SpriteFont spriteFont, Vector2 position, Color color, float scale, ref SpriteFont.CharacterSource text, int offset, ref int endOffset, ref Vector2 size)
189 {
190 throw null;
191 }
192
193 [global::Cpp2ILInjected.Token(Token = "0x600068E")]
194 [global::Cpp2ILInjected.Address(RVA = "0xD1A8A8", Offset = "0xD1A8A8", Length = "0x508")]
195 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
196 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(GUIString), Member = "ApplyMultiLineAlignment", MemberParameters = new object[]
197 {
199 typeof(string),
200 typeof(ref int)
201 }, ReturnType = typeof(string))]
202 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(GUINPCDialogue), Member = "UpdateText", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
203 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(SpriteFont), Member = "MeasureMaxString", MemberParameters = new object[]
204 {
206 typeof(ref int),
207 typeof(float),
208 typeof(float)
209 }, ReturnType = typeof(void))]
210 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(SpriteFont), Member = "MeasureString", MemberParameters = new object[]
211 {
214 }, ReturnType = typeof(void))]
215 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 4)]
216 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(SpriteFont.CharacterSource), Member = "get_Item", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(char))]
217 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ControllerActionAxis), Member = "get_FirstEntry", ReturnType = typeof(ControllerActionAxis.Entry))]
218 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ControllerActionButton), Member = "get_HasMapping", ReturnType = typeof(bool))]
219 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ControllerActionButton), Member = "get_FirstEntry", ReturnType = typeof(ControllerActionButton.Entry))]
220 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Enum), Member = "ToString", ReturnType = typeof(string))]
221 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Concat", MemberParameters = new object[]
222 {
223 typeof(string),
224 typeof(string)
225 }, ReturnType = typeof(string))]
226 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Language), Member = "GetTextValue", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(string))]
227 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(SpriteFont), Member = "MeasureString", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(Vector2))]
228 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 9)]
230 {
231 throw null;
232 }
233
234 [global::Cpp2ILInjected.Token(Token = "0x600068F")]
235 [global::Cpp2ILInjected.Address(RVA = "0xD1ADB0", Offset = "0xD1ADB0", Length = "0x10C")]
236 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
237 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
238 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(int), Member = "TryParse", MemberParameters = new object[]
239 {
240 typeof(string),
241 typeof(ref int)
242 }, ReturnType = typeof(bool))]
243 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ControlsKeyboardTagHandler.ControlsKeyboardSnippet), Member = ".ctor", MemberParameters = new object[] { typeof(GUIControllerInputButton.LinkedControlType) }, ReturnType = typeof(void))]
244 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(int), Member = "ToString", ReturnType = typeof(string))]
245 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Concat", MemberParameters = new object[]
246 {
247 typeof(string),
248 typeof(string),
249 typeof(string)
250 }, ReturnType = typeof(string))]
251 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TextSnippet), Member = ".ctor", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
252 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 6)]
253 public TextSnippet Parse(string text, Color baseColor = default(Color), string options = null)
254 {
255 throw null;
256 }
257
258 [global::Cpp2ILInjected.Token(Token = "0x6000690")]
259 [global::Cpp2ILInjected.Address(RVA = "0xD1AF48", Offset = "0xD1AF48", Length = "0x8")]
260 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
261 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
263 {
264 throw null;
265 }
266
267 [global::Cpp2ILInjected.Token(Token = "0x20000FC")]
269 {
270 [global::Cpp2ILInjected.Token(Token = "0x6000691")]
271 [global::Cpp2ILInjected.Address(RVA = "0xD1AEBC", Offset = "0xD1AEBC", Length = "0x8C")]
272 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(ControlsKeyboardTagHandler), Member = "Parse", MemberParameters = new object[]
273 {
274 typeof(string),
275 typeof(Color),
276 typeof(string)
277 }, ReturnType = typeof(TextSnippet))]
278 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
279 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TextSnippet), Member = ".ctor", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
280 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
282 {
283 throw null;
284 }
285
286 [global::Cpp2ILInjected.Token(Token = "0x6000692")]
287 [global::Cpp2ILInjected.Address(RVA = "0xD1A120", Offset = "0xD1A120", Length = "0x1A4")]
288 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
289 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(ControlsKeyboardTagHandler), Member = "DrawKeyboardBinding", MemberParameters = new object[]
290 {
294 typeof(Color),
295 typeof(float),
296 typeof(string),
297 typeof(bool)
298 }, ReturnType = typeof(void))]
299 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
300 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Color), Member = "op_Multiply", MemberParameters = new object[]
301 {
302 typeof(Color),
303 typeof(float)
304 }, ReturnType = typeof(Color))]
305 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(SpriteBatch), Member = "DrawString", MemberParameters = new object[]
306 {
308 typeof(string),
310 typeof(Color),
311 typeof(float),
313 typeof(float),
315 typeof(float)
316 }, ReturnType = typeof(void))]
317 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(SpriteFont), Member = "MeasureString", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(Vector2))]
318 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 7)]
319 public static bool Draw(string binding, bool justCheckingString, out Vector2 size, SpriteBatch spriteBatch, SpriteFont spriteFont, Vector2 position = default(Vector2), Color color = default(Color), float scale = 1f)
320 {
321 throw null;
322 }
323
324 [global::Cpp2ILInjected.Token(Token = "0x6000693")]
325 [global::Cpp2ILInjected.Address(RVA = "0xD1AF50", Offset = "0xD1AF50", Length = "0x30")]
326 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
327 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(SpriteFont), Member = "MeasureString", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(Vector2))]
328 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = "Length", ReturnType = typeof(float))]
329 public override float GetStringLength(SpriteFont font)
330 {
331 throw null;
332 }
333
334 [global::Cpp2ILInjected.Token(Token = "0x4000509")]
335 [global::Cpp2ILInjected.FieldOffset(Offset = "0x2C")]
337
338 [global::Cpp2ILInjected.Token(Token = "0x400050A")]
339 [global::Cpp2ILInjected.FieldOffset(Offset = "0x30")]
340 private readonly string _binding;
341 }
342
343 [global::Cpp2ILInjected.Token(Token = "0x20000FD")]
344 public enum MappingType
345 {
346 [global::Cpp2ILInjected.Token(Token = "0x400050C")]
347 MoveUp,
348 [global::Cpp2ILInjected.Token(Token = "0x400050D")]
349 MoveDown,
350 [global::Cpp2ILInjected.Token(Token = "0x400050E")]
351 MoveLeft,
352 [global::Cpp2ILInjected.Token(Token = "0x400050F")]
353 MoveRight,
354 [global::Cpp2ILInjected.Token(Token = "0x4000510")]
355 Aim,
356 [global::Cpp2ILInjected.Token(Token = "0x4000511")]
357 Fire,
358 [global::Cpp2ILInjected.Token(Token = "0x4000512")]
359 Jump,
360 [global::Cpp2ILInjected.Token(Token = "0x4000513")]
361 Interact,
362 [global::Cpp2ILInjected.Token(Token = "0x4000514")]
364 [global::Cpp2ILInjected.Token(Token = "0x4000515")]
366 [global::Cpp2ILInjected.Token(Token = "0x4000516")]
368 [global::Cpp2ILInjected.Token(Token = "0x4000517")]
370 [global::Cpp2ILInjected.Token(Token = "0x4000518")]
372 [global::Cpp2ILInjected.Token(Token = "0x4000519")]
374 [global::Cpp2ILInjected.Token(Token = "0x400051A")]
375 CraftItem,
376 [global::Cpp2ILInjected.Token(Token = "0x400051B")]
378 [global::Cpp2ILInjected.Token(Token = "0x400051C")]
379 EquipItem,
380 [global::Cpp2ILInjected.Token(Token = "0x400051D")]
381 Settings,
382 [global::Cpp2ILInjected.Token(Token = "0x400051E")]
384 [global::Cpp2ILInjected.Token(Token = "0x400051F")]
385 Teleport,
386 [global::Cpp2ILInjected.Token(Token = "0x4000520")]
387 ZoomIn,
388 [global::Cpp2ILInjected.Token(Token = "0x4000521")]
389 ZoomOut,
390 [global::Cpp2ILInjected.Token(Token = "0x4000522")]
392 [global::Cpp2ILInjected.Token(Token = "0x4000523")]
393 Count
394 }
395}
class f__AnonymousType0<< Count > j__TPar
ControlsKeyboardSnippet(GUIControllerInputButton.LinkedControlType control)
static bool Draw(string binding, bool justCheckingString, out Vector2 size, SpriteBatch spriteBatch, SpriteFont spriteFont, Vector2 position=default(Vector2), Color color=default(Color), float scale=1f)
readonly GUIControllerInputButton.LinkedControlType _control
static void DrawKeyboardBinding(SpriteBatch spriteBatch, SpriteFont spriteFont, Vector2 position, Color color, float scale, string bindingText, bool measure=false)
TextSnippet Parse(string text, Color baseColor=default(Color), string options=null)
static bool MeasureInlineMapping(SpriteFont spriteFont, ref SpriteFont.CharacterSource text, int offset, ref int endOffset, ref Vector2 tagSize)
static bool PrintInlineMapping(SpriteBatch spriteBatch, SpriteFont spriteFont, Vector2 position, Color color, float scale, ref SpriteFont.CharacterSource text, int offset, ref int endOffset, ref Vector2 size)