Enum veloren_common::outcome::Outcome
source · pub enum Outcome {
Show 44 variants
Explosion {
pos: Vec3<f32>,
power: f32,
radius: f32,
is_attack: bool,
reagent: Option<Reagent>,
},
Lightning {
pos: Vec3<f32>,
},
ProjectileShot {
pos: Vec3<f32>,
body: Body,
vel: Vec3<f32>,
},
ProjectileHit {
pos: Vec3<f32>,
body: Body,
vel: Vec3<f32>,
source: Option<Uid>,
target: Option<Uid>,
},
Beam {
pos: Vec3<f32>,
specifier: FrontendSpecifier,
},
ExpChange {
uid: Uid,
exp: u32,
xp_pools: HashSet<SkillGroupKind>,
},
SkillPointGain {
uid: Uid,
skill_tree: SkillGroupKind,
total_points: u16,
},
ComboChange {
uid: Uid,
combo: u32,
},
BreakBlock {
pos: Vec3<i32>,
tool: Option<ToolKind>,
color: Option<Rgb<u8>>,
},
DamagedBlock {
pos: Vec3<i32>,
tool: Option<ToolKind>,
stage_changed: bool,
},
SummonedCreature {
pos: Vec3<f32>,
body: Body,
},
HealthChange {
pos: Vec3<f32>,
info: HealthChangeInfo,
},
Death {
pos: Vec3<f32>,
},
Block {
pos: Vec3<f32>,
parry: bool,
uid: Uid,
},
PoiseChange {
pos: Vec3<f32>,
state: PoiseState,
},
GroundSlam {
pos: Vec3<f32>,
},
IceSpikes {
pos: Vec3<f32>,
},
IceCrack {
pos: Vec3<f32>,
},
FlashFreeze {
pos: Vec3<f32>,
},
Steam {
pos: Vec3<f32>,
},
LaserBeam {
pos: Vec3<f32>,
},
CyclopsCharge {
pos: Vec3<f32>,
},
FlamethrowerCharge {
pos: Vec3<f32>,
},
FuseCharge {
pos: Vec3<f32>,
},
TerracottaStatueCharge {
pos: Vec3<f32>,
},
SurpriseEgg {
pos: Vec3<f32>,
},
Utterance {
pos: Vec3<f32>,
body: Body,
kind: UtteranceKind,
},
Glider {
pos: Vec3<f32>,
wielded: bool,
},
SpriteDelete {
pos: Vec3<i32>,
sprite: SpriteKind,
},
SpriteUnlocked {
pos: Vec3<i32>,
},
FailedSpriteUnlock {
pos: Vec3<i32>,
},
Whoosh {
pos: Vec3<f32>,
},
Swoosh {
pos: Vec3<f32>,
},
Slash {
pos: Vec3<f32>,
},
FireShockwave {
pos: Vec3<f32>,
},
GroundDig {
pos: Vec3<f32>,
},
PortalActivated {
pos: Vec3<f32>,
},
TeleportedByPortal {
pos: Vec3<f32>,
},
FromTheAshes {
pos: Vec3<f32>,
},
ClayGolemDash {
pos: Vec3<f32>,
},
Bleep {
pos: Vec3<f32>,
},
Charge {
pos: Vec3<f32>,
},
HeadLost {
uid: Uid,
head: usize,
},
Splash {
vel: Vec3<f32>,
pos: Vec3<f32>,
mass: f32,
kind: LiquidKind,
},
}
Expand description
An outcome represents the final result of an instantaneous event. It implies that said event has already occurred. It is not a request for that event to occur, nor is it something that may be cancelled or otherwise altered. Its primary purpose is to act as something for frontends (both server and client) to listen to in order to receive feedback about events in the world.
Variants§
Explosion
Lightning
ProjectileShot
ProjectileHit
Beam
ExpChange
SkillPointGain
ComboChange
BreakBlock
DamagedBlock
SummonedCreature
HealthChange
Death
Block
PoiseChange
GroundSlam
IceSpikes
IceCrack
FlashFreeze
Steam
LaserBeam
CyclopsCharge
FlamethrowerCharge
FuseCharge
TerracottaStatueCharge
SurpriseEgg
Utterance
Glider
SpriteDelete
SpriteUnlocked
FailedSpriteUnlock
Whoosh
Swoosh
Slash
FireShockwave
GroundDig
PortalActivated
TeleportedByPortal
FromTheAshes
ClayGolemDash
Bleep
Charge
HeadLost
Splash
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Outcome
impl<'de> Deserialize<'de> for Outcome
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Outcome
impl RefUnwindSafe for Outcome
impl Send for Outcome
impl Sync for Outcome
impl Unpin for Outcome
impl UnwindSafe for Outcome
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<C, M> ConvertSaveload<M> for C
impl<C, M> ConvertSaveload<M> for C
§type Error = Infallible
type Error = Infallible
Error may occur during serialization or deserialization of component
§fn convert_into<F>(
&self,
_: F,
) -> Result<<C as ConvertSaveload<M>>::Data, <C as ConvertSaveload<M>>::Error>
fn convert_into<F>( &self, _: F, ) -> Result<<C as ConvertSaveload<M>>::Data, <C as ConvertSaveload<M>>::Error>
Convert this data type into serializable form (
Data
) using
entity to marker mapping function§fn convert_from<F>(
data: <C as ConvertSaveload<M>>::Data,
_: F,
) -> Result<C, <C as ConvertSaveload<M>>::Error>
fn convert_from<F>( data: <C as ConvertSaveload<M>>::Data, _: F, ) -> Result<C, <C as ConvertSaveload<M>>::Error>
Convert this data from a deserializable form (
Data
) using
entity to marker mapping function§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