pub enum VfxCommand {
SpawnDecal {
pos: Vec3,
normal: Vec3,
category: DecalCategory,
size: Vec2,
color: Vec4,
lifetime: f32,
},
SpawnImpact {
pos: Vec3,
normal: Vec3,
kind: ImpactType,
power: f32,
},
SpawnTrail {
attach_to: u64,
color_start: Vec4,
color_end: Vec4,
width: f32,
lifetime: f32,
},
RemoveTrail {
trail_id: u32,
},
Shockwave {
center: Vec3,
radius: f32,
thickness: f32,
speed: f32,
color: Vec4,
},
ScreenFlash {
color: Vec4,
duration: f32,
},
}Expand description
High-level VFX spawn command.
Variants§
Trait Implementations§
Source§impl Clone for VfxCommand
impl Clone for VfxCommand
Source§fn clone(&self) -> VfxCommand
fn clone(&self) -> VfxCommand
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for VfxCommand
impl RefUnwindSafe for VfxCommand
impl Send for VfxCommand
impl Sync for VfxCommand
impl Unpin for VfxCommand
impl UnsafeUnpin for VfxCommand
impl UnwindSafe for VfxCommand
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