Trait jumpy::prelude::input::NetworkInputCollector

pub trait NetworkInputCollector<'a, Dense, ControlMapping, ControlSource, Control>: InputCollector<'a, ControlMapping, ControlSource, Control>
where Dense: DenseInput, ControlMapping: HasSchema, Control: NetworkPlayerControl<Dense>,
{ // Required method fn get_dense_control( &self, player_idx: usize, control_soure: ControlSource, ) -> Dense; }
Expand description

Extension of InputCollector exposing dense control for networking.

This trait is automatically implemented for InputCollector’s such that Control implements NetworkPlayerControl (i.e. implements dense input)

Required Methods§

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

Get dense control

Implementors§

§

impl<'a, T, Dense, ControlMapping, ControlSource, Control> NetworkInputCollector<'a, Dense, ControlMapping, ControlSource, Control> for T
where Dense: DenseInput, Control: NetworkPlayerControl<Dense>, ControlMapping: HasSchema, T: InputCollector<'a, ControlMapping, ControlSource, Control>,

Provide automatic NetworkInputCollector for InputCollector when type parameters meet required bounds for networking.