Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ProcessIncomingMessage()

void Terraria.Chat.Commands.EmoteCommand.ProcessIncomingMessage ( string text,
byte clientId )
inline

Implements Terraria.Chat.Commands.IChatCommand.

Definition at line 11 of file EmoteCommand.cs.

12 {
13 if (text != "")
14 {
15 text = $"*{Main.player[clientId].name} {text}";
16 ChatHelper.BroadcastChatMessage(NetworkText.FromLiteral(text), RESPONSE_COLOR);
17 }
18 }
static readonly Color RESPONSE_COLOR
static NetworkText FromLiteral(string text)

References Terraria.Chat.ChatHelper.BroadcastChatMessage(), Terraria.Localization.NetworkText.FromLiteral(), and Terraria.Chat.Commands.EmoteCommand.RESPONSE_COLOR.