async fn to_game(&self, id: PlayerId, event: ClientEvent) -> Result<()> {
        self.tx_game.send_async(Event::Client(id, event)).await?;

        Ok(())
    }
/// Passes a client event to the game thread with their ID.
Passes a client event to the game thread with their ID.
Passes a client event to the game thread with their ID .
async fn to_game(&self, id: PlayerId, event: ClientEvent) -> Result<()> {
        self.tx_game.send_async(Event::Client(id, event)).await?;
        Ok(())
    }
async fn to_game ( & self , id : PlayerId , event : ClientEvent ) -> Result < ( ) > { self . tx_game . send_async ( Event :: Client ( id , event ) ) . await ? ; Ok ( ( ) ) }
Passes a client event to the game thread with their ID.
Passes a client event to the game thread with their ID .
&self
id
PlayerId
event
ClientEvent
&self
id
PlayerId
event
ClientEvent