pub enum AbilityEffect {
Show 14 variants
Damage {
base: f32,
element: Element,
scaling: f32,
},
Heal {
amount: f32,
scaling: f32,
},
ApplyStatus {
name: String,
duration: f32,
stacks: u32,
},
Teleport {
range: f32,
},
Knockback {
force: f32,
direction_from_caster: bool,
},
Pull {
force: f32,
},
Stun {
duration: f32,
},
DotDamage {
dps: f32,
element: Element,
duration: f32,
},
Shield {
amount: f32,
duration: f32,
},
Chain {
max_jumps: u32,
falloff: f32,
},
Explosion {
radius: f32,
damage: f32,
element: Element,
},
Summon {
entity_id: String,
duration: f32,
},
ModifyResource {
kind: ResourceType,
amount: f32,
},
StatBuff {
stat_name: String,
multiplier: f32,
duration: f32,
},
}Variants§
Damage
Deal damage to target
Heal
Heal target
ApplyStatus
Apply a status effect
Teleport
Teleport caster
Knockback
Push target
Pull
Pull target
Stun
Stun target
DotDamage
Apply damage over time
Shield
Shield / absorb
Chain
Chain to multiple targets
Explosion
AoE explosion at point
Summon
Summon entity
ModifyResource
Modify resource
StatBuff
Buff stat temporarily
Trait Implementations§
Source§impl Clone for AbilityEffect
impl Clone for AbilityEffect
Source§fn clone(&self) -> AbilityEffect
fn clone(&self) -> AbilityEffect
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 AbilityEffect
impl RefUnwindSafe for AbilityEffect
impl Send for AbilityEffect
impl Sync for AbilityEffect
impl Unpin for AbilityEffect
impl UnsafeUnpin for AbilityEffect
impl UnwindSafe for AbilityEffect
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§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§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.Source§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.Source§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.Source§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.