Struct bevy_kot::prelude::EntityRemoval
source · pub struct EntityRemoval<C>(/* private fields */)
where
C: ReactComponent;
Expand description
Reaction trigger for ReactComponent
removals from a specific entity.
- Registration does nothing if the entity does not exist.
- If a component is removed from the entity then despawned (or removed due to a despawn) before
react_to_removals()
is executed, then the reactor will not be scheduled.
Trait Implementations§
source§impl<C> ReactionTrigger<()> for EntityRemoval<C>where
C: ReactComponent,
impl<C> ReactionTrigger<()> for EntityRemoval<C>where
C: ReactComponent,
source§fn register(
self,
rcommands: &mut ReactCommands<'_, '_>,
sys_handle: &AutoDespawnSignal
) -> ReactorType
fn register( self, rcommands: &mut ReactCommands<'_, '_>, sys_handle: &AutoDespawnSignal ) -> ReactorType
Register a trigger with
ReactCommands
.Auto Trait Implementations§
impl<C> RefUnwindSafe for EntityRemoval<C>where
C: RefUnwindSafe,
impl<C> Send for EntityRemoval<C>
impl<C> Sync for EntityRemoval<C>
impl<C> Unpin for EntityRemoval<C>where
C: Unpin,
impl<C> UnwindSafe for EntityRemoval<C>where
C: UnwindSafe,
Blanket Implementations§
§impl<T, U> AsBindGroupShaderType<U> for T
impl<T, U> AsBindGroupShaderType<U> for T
§fn as_bind_group_shader_type(&self, _images: &RenderAssets<Image>) -> U
fn as_bind_group_shader_type(&self, _images: &RenderAssets<Image>) -> U
Return the
T
[ShaderType
] for self
. When used in [AsBindGroup
]
derives, it is safe to assume that all images in self
exist.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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§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>
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<I, R> ReactionTriggerBundle<I> for Rwhere
R: ReactionTrigger<I>,
impl<I, R> ReactionTriggerBundle<I> for Rwhere
R: ReactionTrigger<I>,
source§fn get_reactor_types(
self,
rcommands: &mut ReactCommands<'_, '_>,
sys_handle: &AutoDespawnSignal,
func: &mut impl FnMut(ReactorType)
)
fn get_reactor_types( self, rcommands: &mut ReactCommands<'_, '_>, sys_handle: &AutoDespawnSignal, func: &mut impl FnMut(ReactorType) )
Register reactors and pass the reactor types to the injected function.