pub struct EntityBehaviourManagerImpl { /* private fields */ }
Trait Implementations§
Source§impl Component for EntityBehaviourManagerImpl
impl Component for EntityBehaviourManagerImpl
Source§impl ComponentDowncast<EntityBehaviourManagerImpl> for EntityBehaviourManagerImpl
impl ComponentDowncast<EntityBehaviourManagerImpl> for EntityBehaviourManagerImpl
Source§impl ComponentDowncast<EntityBehaviourManagerImpl> for dyn EntityBehaviourManager + Sync + Send
impl ComponentDowncast<EntityBehaviourManagerImpl> for dyn EntityBehaviourManager + Sync + Send
Source§impl EntityBehaviourManager for EntityBehaviourManagerImpl
impl EntityBehaviourManager for EntityBehaviourManagerImpl
Source§fn add_behaviours(&self, entity_instance: ReactiveEntity)
fn add_behaviours(&self, entity_instance: ReactiveEntity)
Adds all behaviours to the given reactive entity instance.
Source§fn add_behaviour(
&self,
entity_instance: ReactiveEntity,
behaviour_ty: &BehaviourTypeId,
)
fn add_behaviour( &self, entity_instance: ReactiveEntity, behaviour_ty: &BehaviourTypeId, )
Creates and adds the given behaviour to the given reactive entity instance.
Source§fn remove_behaviour(
&self,
entity_instance: ReactiveEntity,
behaviour_ty: &BehaviourTypeId,
)
fn remove_behaviour( &self, entity_instance: ReactiveEntity, behaviour_ty: &BehaviourTypeId, )
Removes the given behaviour from the given reactive entity instance.
Source§fn remove_behaviours(&self, entity_instance: ReactiveEntity)
fn remove_behaviours(&self, entity_instance: ReactiveEntity)
Removes all behaviours from the given reactive entity instance.
Source§fn remove_behaviours_by_id(&self, id: &Uuid)
fn remove_behaviours_by_id(&self, id: &Uuid)
Removes all behaviours from the reactive entity instance with the given id.
Source§fn remove_behaviours_by_behaviour(&self, behaviour_ty: &BehaviourTypeId)
fn remove_behaviours_by_behaviour(&self, behaviour_ty: &BehaviourTypeId)
Removes all behaviours of the given behaviour type.
Source§fn has(
&self,
entity_instance: ReactiveEntity,
behaviour_ty: &BehaviourTypeId,
) -> bool
fn has( &self, entity_instance: ReactiveEntity, behaviour_ty: &BehaviourTypeId, ) -> bool
Returns true, if the entity instance has the given behaviour.
Source§fn get_all(&self, entity_instance: ReactiveEntity) -> Vec<BehaviourTypeId>
fn get_all(&self, entity_instance: ReactiveEntity) -> Vec<BehaviourTypeId>
Returns the behaviours of the given entity instance.
Source§fn get_instances_by_behaviour(
&self,
ty: &BehaviourTypeId,
) -> Vec<ReactiveEntity>
fn get_instances_by_behaviour( &self, ty: &BehaviourTypeId, ) -> Vec<ReactiveEntity>
Returns the entity instances with the given behaviour.
Source§fn connect(
&self,
entity_instance: ReactiveEntity,
behaviour_ty: &BehaviourTypeId,
) -> Result<(), BehaviourTransitionError>
fn connect( &self, entity_instance: ReactiveEntity, behaviour_ty: &BehaviourTypeId, ) -> Result<(), BehaviourTransitionError>
Connect
Source§fn disconnect(
&self,
entity_instance: ReactiveEntity,
behaviour_ty: &BehaviourTypeId,
) -> Result<(), BehaviourTransitionError>
fn disconnect( &self, entity_instance: ReactiveEntity, behaviour_ty: &BehaviourTypeId, ) -> Result<(), BehaviourTransitionError>
Disconnect
Source§impl Lifecycle for EntityBehaviourManagerImpl
impl Lifecycle for EntityBehaviourManagerImpl
§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 EntityBehaviourManagerImpl
Auto Trait Implementations§
impl Freeze for EntityBehaviourManagerImpl
impl !RefUnwindSafe for EntityBehaviourManagerImpl
impl Send for EntityBehaviourManagerImpl
impl Sync for EntityBehaviourManagerImpl
impl Unpin for EntityBehaviourManagerImpl
impl !UnwindSafe for EntityBehaviourManagerImpl
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