pub trait NetworkInputCollector<'a, Dense, ControlMapping, ControlSource, Control>: InputCollector<'a, ControlMapping, ControlSource, Control>{
// 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§
sourcefn get_dense_control(
&self,
player_idx: usize,
control_soure: ControlSource,
) -> Dense
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 Twhere
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.