pub fn broadcast_chat(&self, kind: ChatKind, message: impl Into<Text>) {
        let message = message.into();
        for (_, mailbox) in self.ecs.query::<&mut ChatBox>().iter() {
            mailbox.send(ChatMessage::new(kind, message.clone()));
        }
    }
/// Broadcasts a chat message to all entities with
/// a `ChatBox` component (usually just players).
Broadcasts a chat message to all entities with
a `ChatBox` component (usually just players).
Broadcasts a chat message to all entities with a ` ChatBox ` component ( usually just players ) .
pub fn broadcast_chat(&self, kind: ChatKind, message: impl Into<Text>) {
        let message = message.into();
        for (_, mailbox) in self.ecs.query::<&mut ChatBox>().iter() {
            mailbox.send(ChatMessage::new(kind, message.clone()));
        }
    }
pub fn broadcast_chat ( & self , kind : ChatKind , message : impl Into < Text > ) { let message = message . into ( ) ; for ( _ , mailbox ) in self . ecs . query :: < & mut ChatBox > ( ) . iter ( ) { mailbox . send ( ChatMessage :: new ( kind , message . clone ( ) ) ) ; } }
Broadcasts a chat message to all entities with
a `ChatBox` component (usually just players).
Broadcasts a chat message to all entities with a ` ChatBox ` component ( usually just players ) .
&self
kind
ChatKind
message
impl Into<Text>
&self
kind
ChatKind
message
impl Into<Text>