[][src]Trait naia_shared::ActorBuilder

pub trait ActorBuilder<T: ActorType> {
    pub fn build(&self, reader: &mut PacketReader<'_>) -> T;
pub fn get_type_id(&self) -> TypeId; }

Handles the creation of new Actor instances

Required methods

pub fn build(&self, reader: &mut PacketReader<'_>) -> T[src]

Create a new Actor instance

pub fn get_type_id(&self) -> TypeId[src]

Gets the TypeId of the Actor the builder is able to build

Loading content...

Implementors

Loading content...