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

◆ ProcessOutgoingMessage()

void Terraria.Chat.Commands.RockPaperScissorsCommand.ProcessOutgoingMessage ( ChatMessage message)
inline

Implements Terraria.Chat.Commands.IChatCommand.

Definition at line 12 of file RockPaperScissorsCommand.cs.

13 {
14 int num = Main.rand.NextFromList<int>(37, 38, 36);
15 if (Main.netMode == 0)
16 {
17 EmoteBubble.NewBubble(num, new WorldUIAnchor(Main.LocalPlayer), 360);
18 EmoteBubble.CheckForNPCsToReactToEmoteBubble(num, Main.LocalPlayer);
19 }
20 else
21 {
22 NetMessage.SendData(120, -1, -1, null, Main.myPlayer, num);
23 }
24 message.Consume();
25 }
static void CheckForNPCsToReactToEmoteBubble(int emoteID, Player player)
static int NewBubble(int emoticon, WorldUIAnchor bubbleAnchor, int time)

References Terraria.GameContent.UI.EmoteBubble.CheckForNPCsToReactToEmoteBubble(), Terraria.Chat.ChatMessage.Consume(), Terraria.Main.LocalPlayer, Terraria.Main.myPlayer, Terraria.Main.netMode, Terraria.GameContent.UI.EmoteBubble.NewBubble(), Terraria.Main.rand, and Terraria.NetMessage.SendData().