pub struct DefaultEntropyHookECS;Expand description
Default implementation (no-op)
Trait Implementations§
Source§impl EntropyHookECS for DefaultEntropyHookECS
impl EntropyHookECS for DefaultEntropyHookECS
Source§fn on_durability_status_changed<'life0, 'async_trait>(
&'life0 self,
entity: Entity,
new_durability: f32,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn on_durability_status_changed<'life0, 'async_trait>(
&'life0 self,
entity: Entity,
new_durability: f32,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Called when entity durability status changes Read more
Source§fn on_entity_destroyed<'life0, 'life1, 'async_trait>(
&'life0 self,
entity: Entity,
state: &'life1 EntropyStateECS,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn on_entity_destroyed<'life0, 'life1, 'async_trait>(
&'life0 self,
entity: Entity,
state: &'life1 EntropyStateECS,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Called when entity is destroyed (durability reaches 0) Read more
Auto Trait Implementations§
impl Freeze for DefaultEntropyHookECS
impl RefUnwindSafe for DefaultEntropyHookECS
impl Send for DefaultEntropyHookECS
impl Sync for DefaultEntropyHookECS
impl Unpin for DefaultEntropyHookECS
impl UnsafeUnpin for DefaultEntropyHookECS
impl UnwindSafe for DefaultEntropyHookECS
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> Component for T
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