Exemplo n.º 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;
 }
Exemplo n.º 2
0
 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));
 }
Exemplo n.º 3
0
 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));
 }