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
ChatInitializer.cs
Go to the documentation of this file.
1
using
System
;
2
using
Terraria.Chat
;
3
using
Terraria.Localization
;
4
5
namespace
Terraria.Initializers
6
{
7
// Token: 0x02000589 RID: 1417
8
public
static
class
ChatInitializer
9
{
10
// Token: 0x06003493 RID: 13459 RVA: 0x00209A78 File Offset: 0x00207C78
11
public
static
void
Load
()
12
{
13
if
((
"c"
==
null
||
"c"
!=
null
) && (
"color"
==
null
||
"color"
!=
null
) && (
"i"
==
null
||
"i"
!=
null
) && (
"item"
==
null
||
"item"
!=
null
) && (
"n"
==
null
||
"n"
!=
null
) && (
"name"
==
null
||
"name"
!=
null
) && (
"a"
==
null
||
"a"
!=
null
) && (
"achievement"
==
null
||
"achievement"
!=
null
) && (
"g"
==
null
||
"g"
!=
null
) && (
"glyph"
==
null
||
"glyph"
!=
null
) && (
"ca"
==
null
||
"ca"
!=
null
) && (
"controls axis"
==
null
||
"controls axis"
!=
null
) && (
"cb"
==
null
||
"cb"
!=
null
) && (
"controls button"
==
null
||
"controls button"
!=
null
) && (
"ct"
==
null
||
"ct"
!=
null
) && (
"controls touch"
==
null
||
"controls touch"
!=
null
))
14
{
15
ChatCommandProcessor
chatCommandProcessor2
;
16
ChatCommandProcessor
chatCommandProcessor
=
chatCommandProcessor2
.AddCommand().AddCommand().AddCommand()
17
.AddCommand()
18
.AddCommand()
19
.AddCommand()
20
.AddCommand()
21
.AddCommand()
22
.AddCommand()
23
.AddCommand()
24
.AddDefaultCommand();
25
ChatInitializer
.
PrepareAliases
();
26
return
;
27
}
28
throw
new
ArrayTypeMismatchException
();
29
}
30
31
// Token: 0x06003494 RID: 13460 RVA: 0x00209BD0 File Offset: 0x00207DD0
32
public
static
void
PrepareAliases
()
33
{
34
int
num = 1;
35
if
(num == 0)
36
{
37
}
38
if
(num == 0)
39
{
40
}
41
string
text2;
42
LocalizedText
text
=
Language
.
GetText
(
"EmojiCommand."
+ text2);
43
LocalizedText
text3
=
Language
.
GetText
(
"ChatCommand.Emoji_1"
);
44
if
(
text3
==
null
||
text3
!=
null
)
45
{
46
LocalizedText
text4
=
Language
.
GetText
(
"EmojiName."
+ text2);
47
if
(
text4
==
null
||
text4
!=
null
)
48
{
49
return
;
50
}
51
}
52
throw
new
ArrayTypeMismatchException
();
53
}
54
}
55
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
System.ArrayTypeMismatchException
Definition
ArrayTypeMismatchException.cs:9
Terraria.Chat.ChatCommandProcessor
Definition
ChatCommandProcessor.cs:11
Terraria.Initializers.ChatInitializer.Load
static void Load()
Definition
ChatInitializer.cs:11
Terraria.Initializers.ChatInitializer.PrepareAliases
static void PrepareAliases()
Definition
ChatInitializer.cs:32
Terraria.Initializers.ChatInitializer
Definition
ChatInitializer.cs:9
Terraria.Localization.Language.GetText
static LocalizedText GetText(string key)
Definition
Language.cs:44
Terraria.Localization.Language
Definition
Language.cs:11
Terraria.Localization.LocalizedText
Definition
LocalizedText.cs:13
System.ExceptionArgument.text
@ text
System
Definition
__ComObject.cs:4
Terraria.Chat
Definition
ChatCommandId.cs:7
Terraria.Initializers
Definition
AchievementInitializer.cs:8
Terraria.Localization
Definition
GameCulture.cs:7
source
Terraria
Initializers
ChatInitializer.cs
Generated by
1.10.0