[][src]Trait naia_shared::EventBuilder

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

Handles the creation of new Events

Required methods

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

Gets the TypeId of the Event it is able to build

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

Creates a new Event

Loading content...

Implementors

Loading content...