pub trait NetworkPlayerControls<'a, Dense: DenseInput, Control>: PlayerControls<'a, Control> {
    // Required methods
    fn network_update(
        &mut self,
        player_idx: usize,
        dense_input: &Dense,
        status: NetworkInputStatus,
    );
    fn get_dense_control(&self, player_idx: usize) -> Dense;
}
Expand description

Required for use of PlayerControls in networking.

Required Methods§

source

fn network_update( &mut self, player_idx: usize, dense_input: &Dense, status: NetworkInputStatus, )

Update control of player from dense input.

NetworkInputStatus communicates if input is confirmed, predicted, or from disconnected player.

source

fn get_dense_control(&self, player_idx: usize) -> Dense

Get dense control for player.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<'a, T, Dense, Control> NetworkPlayerControls<'a, Dense, Control> for T
where Dense: DenseInput, Control: NetworkPlayerControl<Dense>, T: PlayerControls<'a, Control>,