pub struct EntityComponentBehaviourRegistryImpl { /* private fields */ }
Trait Implementations§
Source§impl Component for EntityComponentBehaviourRegistryImpl
impl Component for EntityComponentBehaviourRegistryImpl
Source§impl ComponentDowncast<EntityComponentBehaviourRegistryImpl> for EntityComponentBehaviourRegistryImpl
impl ComponentDowncast<EntityComponentBehaviourRegistryImpl> for EntityComponentBehaviourRegistryImpl
Source§impl ComponentDowncast<EntityComponentBehaviourRegistryImpl> for dyn EntityComponentBehaviourRegistry + Sync + Send
impl ComponentDowncast<EntityComponentBehaviourRegistryImpl> for dyn EntityComponentBehaviourRegistry + Sync + Send
Source§impl EntityComponentBehaviourRegistry for EntityComponentBehaviourRegistryImpl
impl EntityComponentBehaviourRegistry for EntityComponentBehaviourRegistryImpl
Source§fn register(
&self,
component_behaviour_ty: ComponentBehaviourTypeId,
factory: Arc<dyn BehaviourFactory<Uuid, ReactiveEntity> + Send + Sync>,
)
fn register( &self, component_behaviour_ty: ComponentBehaviourTypeId, factory: Arc<dyn BehaviourFactory<Uuid, ReactiveEntity> + Send + Sync>, )
Registers a factory for creating entity component behaviours.
Source§fn unregister(&self, component_behaviour_ty: &ComponentBehaviourTypeId)
fn unregister(&self, component_behaviour_ty: &ComponentBehaviourTypeId)
Unregisters a factory for creating entity component behaviours.
Source§fn get(
&self,
component_ty: &ComponentTypeId,
) -> Vec<Arc<dyn BehaviourFactory<Uuid, ReactiveEntity> + Send + Sync>>
fn get( &self, component_ty: &ComponentTypeId, ) -> Vec<Arc<dyn BehaviourFactory<Uuid, ReactiveEntity> + Send + Sync>>
Returns the entity behaviour factories for the given component type.
Source§fn get_behaviour_types(
&self,
component_ty: &ComponentTypeId,
) -> Vec<ComponentBehaviourTypeId>
fn get_behaviour_types( &self, component_ty: &ComponentTypeId, ) -> Vec<ComponentBehaviourTypeId>
Returns the component behaviours for the given component type.
Source§fn get_by_behaviour_type(
&self,
behaviour_ty: &BehaviourTypeId,
) -> Option<ComponentBehaviourTypeId>
fn get_by_behaviour_type( &self, behaviour_ty: &BehaviourTypeId, ) -> Option<ComponentBehaviourTypeId>
Returns the entity behaviour for the given behaviour type if the entity component behaviour exists.
Source§impl Lifecycle for EntityComponentBehaviourRegistryImpl
impl Lifecycle for EntityComponentBehaviourRegistryImpl
§fn init<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn init<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Called at initialization
§fn post_init<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn post_init<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Called after initialization
impl Injectable for EntityComponentBehaviourRegistryImpl
Auto Trait Implementations§
impl Freeze for EntityComponentBehaviourRegistryImpl
impl !RefUnwindSafe for EntityComponentBehaviourRegistryImpl
impl Send for EntityComponentBehaviourRegistryImpl
impl Sync for EntityComponentBehaviourRegistryImpl
impl Unpin for EntityComponentBehaviourRegistryImpl
impl !UnwindSafe for EntityComponentBehaviourRegistryImpl
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more