pub fn send_packet_boxed_to_player(comp: &NetworkComponent, packet: Box<dyn Packet>) {
    let _ = comp
        .sender
        .unbounded_send(ServerToWorkerMessage::SendPacket(packet));
}
/// Sends a packet to the given player.
Sends a packet to the given player.
Sends a packet to the given player .
pub fn send_packet_boxed_to_player(comp: &NetworkComponent, packet: Box<dyn Packet>) {
    let _ = comp
        .sender
        .unbounded_send(ServerToWorkerMessage::SendPacket(packet));
}
pub fn send_packet_boxed_to_player ( comp : & NetworkComponent , packet : Box < dyn Packet > ) { let _ = comp . sender . unbounded_send ( ServerToWorkerMessage :: SendPacket ( packet ) ) ; }
Sends a packet to the given player.
Sends a packet to the given player .
comp
&NetworkComponent
packet
Box<dyn Packet>
comp
&NetworkComponent
packet
Box<dyn Packet>