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; }
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)); }
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)); }