Struct sc2::AbilityData [] [src]

pub struct AbilityData {
    pub available: bool,
    pub ability: Ability,
    pub link_name: String,
    pub link_index: u32,
    pub button_name: String,
    pub friendly_name: String,
    pub hotkey: String,
    pub remaps_to_ability: Option<Ability>,
    pub remaps_from_ability: Vec<Ability>,
    pub target: Option<AbilityTarget>,
    pub allow_minimap: bool,
    pub allow_autocast: bool,
    pub is_building: bool,
    pub footprint_radius: f32,
    pub is_instant_placement: bool,
    pub cast_range: f32,
}

data about an ability

Fields

indicates whether the ability is available to the current mods/map

stable ID for the ability

catalog (game data xml) name of the ability

catalog (game data xml) index of the ability

name of the button for the command card

in case the button name is not descriptive

UI hotkey

this ability may be represented by this more generic ability

other abilities that can remap to this generic ability

type of target that this ability uses

can be cast in the minimap (unimplemented)

autocast can be set

requires placement to construct a building

if the ability is placing a building, give the radius of the footprint

placement next to an existing structure (an addon like a Tech Lab)

range unit can cast ability without needing to approach target

Methods

impl AbilityData
[src]

[src]

get the most generalized id of the ability

Trait Implementations

impl Debug for AbilityData
[src]

[src]

Formats the value using the given formatter.

impl Clone for AbilityData
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more