/// Lazily broadcasts a packet to all players
/// able to see a given entity.
Lazily broadcasts a packet to all players
able to see a given entity.
Lazily broadcasts a packet to all players able to see a given entity .
pub fn broadcast_entity_update<P>(&self, entity: Entity, packet: P, neq: Option<Entity>)
    where
        P: Packet + 'static,
    {
        self.queue.push(BroadcastRequest {
            condition: BroadcastCondition::Entity(entity),
            packet: Box::new(packet),
            neq,
        });
    }
pub fn broadcast_entity_update < P > ( & self , entity : Entity , packet : P , neq : Option < Entity > ) where P : Packet + ' static , { self . queue . push ( BroadcastRequest { condition : BroadcastCondition :: Entity ( entity ) , packet : Box :: new ( packet ) , neq , } ) ; }
Lazily broadcasts a packet to all players
able to see a given entity.
Lazily broadcasts a packet to all players able to see a given entity .
&self
entity
Entity
packet
P
neq
Option<Entity>