Changeset 325 for binary-improvements/AllocsCommands/Chat.cs
- Timestamp:
- Sep 4, 2018, 1:00:48 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/AllocsCommands/Chat.cs
r267 r325 1 using System; 2 3 namespace AllocsFixes.CustomCommands 4 { 1 namespace AllocsFixes.CustomCommands { 5 2 public class Chat { 6 7 3 public static void SendMessage (ClientInfo _receiver, ClientInfo _sender, string _message) { 8 4 string senderName; … … 13 9 senderName = "Server"; 14 10 } 15 _receiver.SendPackage (new NetPackageGameMessage (EnumGameMessages.Chat, _message, senderName + " (PM)", false, "", false)); 11 12 _receiver.SendPackage (new NetPackageGameMessage (EnumGameMessages.Chat, _message, senderName + " (PM)", 13 false, "", false)); 16 14 string receiverName = _receiver.playerName; 17 SdtdConsole.Instance.Output ("Message to player " + (receiverName != null ? "\"" + receiverName + "\"" : "unknownName") + " sent with sender \"" + senderName + "\""); 15 SdtdConsole.Instance.Output ("Message to player " + 16 (receiverName != null ? "\"" + receiverName + "\"" : "unknownName") + 17 " sent with sender \"" + senderName + "\""); 18 18 } 19 20 21 19 } 22 20 } 23
Note:
See TracChangeset
for help on using the changeset viewer.