Trait naia_shared::ReplicaBuilder[][src]

pub trait ReplicaBuilder<P: ProtocolType>: Send + Sync {
    fn build(&self, reader: &mut PacketReader<'_>, packet_index: u16) -> P;
fn get_kind(&self) -> P::Kind; }
Expand description

Handles the creation of new Replica (Message/Component) instances

Required methods

Create a new Replica instance

Gets the ProtocolKind of the Replica the builder is able to build

Implementors