Struct veloren_common_systems::buff::event_emitters::EventEmitters
source · pub struct EventEmitters<'a> {
buff: Option<Emitter<'a, BuffEvent>>,
change_body: Option<Emitter<'a, ChangeBodyEvent>>,
remove_light: Option<Emitter<'a, RemoveLightEmitterEvent>>,
health_change: Option<Emitter<'a, HealthChangeEvent>>,
energy_change: Option<Emitter<'a, EnergyChangeEvent>>,
sound: Option<Emitter<'a, SoundEvent>>,
create_sprite: Option<Emitter<'a, CreateSpriteEvent>>,
outcome: Option<Emitter<'a, Outcome>>,
}
Fields§
§buff: Option<Emitter<'a, BuffEvent>>
§change_body: Option<Emitter<'a, ChangeBodyEvent>>
§remove_light: Option<Emitter<'a, RemoveLightEmitterEvent>>
§health_change: Option<Emitter<'a, HealthChangeEvent>>
§energy_change: Option<Emitter<'a, EnergyChangeEvent>>
§sound: Option<Emitter<'a, SoundEvent>>
§create_sprite: Option<Emitter<'a, CreateSpriteEvent>>
§outcome: Option<Emitter<'a, Outcome>>
Implementations§
source§impl<'a> EventEmitters<'a>
impl<'a> EventEmitters<'a>
Trait Implementations§
source§impl<'a> EmitExt<BuffEvent> for EventEmitters<'a>
impl<'a> EmitExt<BuffEvent> for EventEmitters<'a>
source§impl<'a> EmitExt<ChangeBodyEvent> for EventEmitters<'a>
impl<'a> EmitExt<ChangeBodyEvent> for EventEmitters<'a>
source§impl<'a> EmitExt<CreateSpriteEvent> for EventEmitters<'a>
impl<'a> EmitExt<CreateSpriteEvent> for EventEmitters<'a>
source§impl<'a> EmitExt<EnergyChangeEvent> for EventEmitters<'a>
impl<'a> EmitExt<EnergyChangeEvent> for EventEmitters<'a>
source§impl<'a> EmitExt<HealthChangeEvent> for EventEmitters<'a>
impl<'a> EmitExt<HealthChangeEvent> for EventEmitters<'a>
source§impl<'a> EmitExt<Outcome> for EventEmitters<'a>
impl<'a> EmitExt<Outcome> for EventEmitters<'a>
source§impl<'a> EmitExt<RemoveLightEmitterEvent> for EventEmitters<'a>
impl<'a> EmitExt<RemoveLightEmitterEvent> for EventEmitters<'a>
source§impl<'a> EmitExt<SoundEvent> for EventEmitters<'a>
impl<'a> EmitExt<SoundEvent> for EventEmitters<'a>
Auto Trait Implementations§
impl<'a> Freeze for EventEmitters<'a>
impl<'a> RefUnwindSafe for EventEmitters<'a>
impl<'a> Send for EventEmitters<'a>
impl<'a> Sync for EventEmitters<'a>
impl<'a> Unpin for EventEmitters<'a>
impl<'a> UnwindSafe for EventEmitters<'a>
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