Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
RockPaperScissorsCommand.cs
Go to the documentation of this file.
2
4
5[ChatCommand("RPS")]
7{
8 public void ProcessIncomingMessage(string text, byte clientId)
9 {
10 }
11
13 {
14 int num = Main.rand.NextFromList<int>(37, 38, 36);
15 if (Main.netMode == 0)
16 {
19 }
20 else
21 {
22 NetMessage.SendData(120, -1, -1, null, Main.myPlayer, num);
23 }
24 message.Consume();
25 }
26}
void ProcessIncomingMessage(string text, byte clientId)
static void CheckForNPCsToReactToEmoteBubble(int emoteID, Player player)
static int NewBubble(int emoticon, WorldUIAnchor bubbleAnchor, int time)
static int myPlayer
Definition Main.cs:1801
static int netMode
Definition Main.cs:2095
static UnifiedRandom rand
Definition Main.cs:1387
static Player LocalPlayer
Definition Main.cs:2829
static void SendData(int msgType, int remoteClient=-1, int ignoreClient=-1, NetworkText text=null, int number=0, float number2=0f, float number3=0f, float number4=0f, int number5=0, int number6=0, int number7=0)
Definition NetMessage.cs:88