[][src]Struct sc2_techtree::Ability

pub struct Ability {
    pub id: AbilityId,
    pub name: String,
    pub target: AbilityTarget,
    pub cast_range: Option<R32>,
    pub energy_cost: Option<u32>,
    pub cost: Cost,
    pub effect: Vec<()>,
    pub buff: Vec<()>,
    pub cooldown: Option<R32>,
}

Ability

Fields

id: AbilityId

Id

name: String

Name

target: AbilityTarget

Target type and data

cast_range: Option<R32>

Cast range

energy_cost: Option<u32>

Energy cost

cost: Cost

Monetary / time cost

effect: Vec<()>

Effects

buff: Vec<()>

Buffs

cooldown: Option<R32>

Cooldown

Trait Implementations

impl Eq for Ability[src]

impl PartialEq<Ability> for Ability[src]

impl Clone for Ability[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Ability[src]

impl Serialize for Ability[src]

impl<'de> Deserialize<'de> for Ability[src]

Auto Trait Implementations

impl Send for Ability

impl Sync for Ability

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]