DenseInputConfig

Trait DenseInputConfig 

Source
pub trait DenseInputConfig<'a> {
    type Dense: DenseInput + Debug + Default;
    type InputCollector: InputCollector<'a, Self::Dense> + Default;
    type Control: DenseControl<Self::Dense>;
    type Controls: Controls<'a, Self::Control> + HasSchema + Default;
}
Expand description

Defines input types for use in networking.

Required Associated Types§

Source

type Dense: DenseInput + Debug + Default

Current input state for a client. This is what is sent across the network. All input history and other data derived from the state should be stored by the Control.

Source

type InputCollector: InputCollector<'a, Self::Dense> + Default

Local configuration for getting Dense from the World to be sent across the network.

Source

type Control: DenseControl<Self::Dense>

The complete input data of a client. Updated with Dense when recieved from the network. The Controls resource in the World will contain every client’s control after update.

Source

type Controls: Controls<'a, Self::Control> + HasSchema + Default

The resource that will contain a Control for every client in a network session.

Implementors§