pub async fn send_inputs<T, K, I>(
        &mut self,
        inputs: I,
        scope: &Scope<'_>,
    ) -> Result<(), C::Error>
    where
        T: Schema,
        K: Pack<T>,
        I: IntoIterator,
        I::IntoIter: ExactSizeIterator<Item = (PlayerId, K)>,
    {
        self.channel
            .send_reliable::<ClientMessage<(), T>, _>(
                ClientMessageInputsPack {
                    step: self.current_step,
                    next_update_step: self.next_update_step,
                    inputs: inputs.into_iter(),
                },
                scope,
            )
            .await?;

        Ok(())
    }
/// Sends input from players to the server.
Sends input from players to the server.
Sends input from players to the server .
pub async fn send_inputs<T, K, I>(
        &mut self,
        inputs: I,
        scope: &Scope<'_>,
    ) -> Result<(), C::Error>
    where
        T: Schema,
        K: Pack<T>,
        I: IntoIterator,
        I::IntoIter: ExactSizeIterator<Item = (PlayerId, K)>,
    {
        self.channel
            .send_reliable::<ClientMessage<(), T>, _>(
                ClientMessageInputsPack {
                    step: self.current_step,
                    next_update_step: self.next_update_step,
                    inputs: inputs.into_iter(),
                },
                scope,
            )
            .await?;
        Ok(())
    }
pub async fn send_inputs < T , K , I > ( & mut self , inputs : I , scope : & Scope < ' _ > , ) -> Result < ( ) , C :: Error > where T : Schema , K : Pack < T > , I : IntoIterator , I :: IntoIter : ExactSizeIterator < Item = ( PlayerId , K ) > , { self . channel . send_reliable :: < ClientMessage < ( ) , T > , _ > ( ClientMessageInputsPack { step : self . current_step , next_update_step : self . next_update_step , inputs : inputs . into_iter ( ) , } , scope , ) . await ? ; Ok ( ( ) ) }
Sends input from players to the server.
Sends input from players to the server .
&mut self
inputs
I
scope
&Scope<'_>