Пример #1
0
 public static void receiveChatMessage(string message, long whichPlayer)
 {
     foreach (IClickableMenu current in Game1.onScreenMenus)
     {
         if (current is ChatBox)
         {
             ((ChatBox)current).receiveChatMessage(message, whichPlayer);
             break;
         }
     }
     if (Game1.IsServer)
     {
         MultiplayerUtility.sendChatMessage(message, whichPlayer);
     }
 }
Пример #2
0
 public static void receiveChatMessage(string message, long whichPlayer)
 {
     foreach (IClickableMenu onScreenMenu in Game1.onScreenMenus)
     {
         if (onScreenMenu is ChatBox)
         {
             ((ChatBox)onScreenMenu).receiveChatMessage(message, whichPlayer);
             break;
         }
     }
     if (!Game1.IsServer)
     {
         return;
     }
     MultiplayerUtility.sendChatMessage(message, whichPlayer);
 }