pub enum SkillEffect {
Damage {
base_damage: f32,
ratio: f32,
element: Element,
aoe_radius: f32,
pierces: bool,
},
Heal {
base_heal: f32,
ratio: f32,
target: HealTarget,
},
Buff {
modifiers: Vec<StatModifier>,
duration_secs: f32,
target: BuffTarget,
},
Debuff {
modifiers: Vec<StatModifier>,
duration_secs: f32,
target: BuffTarget,
},
Summon {
entity_type: String,
count: u32,
duration_secs: f32,
},
Teleport {
range: f32,
blink: bool,
},
Zone {
radius: f32,
duration_secs: f32,
tick_interval: f32,
tick_effect: Box<SkillEffect>,
},
Projectile {
speed: f32,
pierce_count: u32,
split_count: u32,
element: Element,
damage: f32,
},
Chain {
max_targets: u32,
jump_range: f32,
damage_reduction: f32,
element: Element,
base_damage: f32,
},
Shield {
absorb_amount: f32,
duration_secs: f32,
},
Drain {
stat: DrainTarget,
amount: f32,
return_fraction: f32,
},
Composite(Vec<SkillEffect>),
}Variants§
Damage
Heal
Buff
Debuff
Summon
Teleport
Zone
Projectile
Chain
Shield
Drain
Composite(Vec<SkillEffect>)
Implementations§
Source§impl SkillEffect
impl SkillEffect
pub fn is_damaging(&self) -> bool
pub fn is_healing(&self) -> bool
Trait Implementations§
Source§impl Clone for SkillEffect
impl Clone for SkillEffect
Source§fn clone(&self) -> SkillEffect
fn clone(&self) -> SkillEffect
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 SkillEffect
impl RefUnwindSafe for SkillEffect
impl Send for SkillEffect
impl Sync for SkillEffect
impl Unpin for SkillEffect
impl UnsafeUnpin for SkillEffect
impl UnwindSafe for SkillEffect
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.