pub struct EffectData {
pub id: EffectId,
pub name: String,
pub friendly_name: String,
pub radius: f32,
pub target: TargetType,
pub friendly_fire: bool,
}
Expand description
Information about specific effect.
Fields§
§id: EffectId
§name: String
§friendly_name: String
§radius: f32
§target: TargetType
Targets affected by this effect.
friendly_fire: bool
true
if effect affects allied units.
Trait Implementations§
Source§impl Clone for EffectData
impl Clone for EffectData
Source§fn clone(&self) -> EffectData
fn clone(&self) -> EffectData
Returns a copy 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 EffectData
impl RefUnwindSafe for EffectData
impl Send for EffectData
impl Sync for EffectData
impl Unpin for EffectData
impl UnwindSafe for EffectData
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