コード例 #1
0
 public ChatEchoPacket(uint sourceId, string message, Color color, ChatEchoType messageType, bool isColorCoded = false)
 {
     this.SourceId     = sourceId;
     this.Message      = message;
     this.Color        = color;
     this.MessageType  = (byte)messageType;
     this.IsColorCoded = isColorCoded;
 }
コード例 #2
0
ファイル: ChatBox.cs プロジェクト: mta-slipe/Slipe-Server
 public void OutputTo(Player player, string message, Color?color = null, bool isColorCoded = false, ChatEchoType type = ChatEchoType.Player, Element?source = null)
 {
     player.Client.SendPacket(new ChatEchoPacket(source?.Id ?? this.root.Id, message, color ?? Color.White, type, isColorCoded));
 }
コード例 #3
0
ファイル: ChatBox.cs プロジェクト: mta-slipe/Slipe-Server
 public void Output(string message, Color?color = null, bool isColorCoded = false, ChatEchoType type = ChatEchoType.Player, Element?source = null)
 {
     this.server.BroadcastPacket(new ChatEchoPacket(source?.Id ?? this.root.Id, message, color ?? Color.White, type, isColorCoded));
 }