[][src]Trait naia_shared::ActorBuilder

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

Handles the creation of new Actor instances

Required methods

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

Create a new Actor instance

fn get_type_id(&self) -> TypeId

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

Loading content...

Implementors

Loading content...