pub struct AbilityData {
pub name: String,
pub flags: HashSet<AbilityFlag>,
pub effect: Value,
pub condition: Value,
}Expand description
Data about a particular ability.
Every Mon has one ability, which affects the battle in a wide variety of ways.
Fields§
§name: StringName of the ability.
flags: HashSet<AbilityFlag>Ability flags.
effect: ValueDynamic battle effects.
condition: ValueDynamic battle effects of the condition created by this ability.
Trait Implementations§
Source§impl Clone for AbilityData
impl Clone for AbilityData
Source§fn clone(&self) -> AbilityData
fn clone(&self) -> AbilityData
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 moreSource§impl Debug for AbilityData
impl Debug for AbilityData
Source§impl<'de> Deserialize<'de> for AbilityData
impl<'de> Deserialize<'de> for AbilityData
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 AbilityData
impl RefUnwindSafe for AbilityData
impl Send for AbilityData
impl Sync for AbilityData
impl Unpin for AbilityData
impl UnsafeUnpin for AbilityData
impl UnwindSafe for AbilityData
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