pub struct AbilityData {Show 15 fields
pub id: AbilityId,
pub link_name: String,
pub link_index: u32,
pub button_name: Option<String>,
pub friendly_name: Option<String>,
pub hotkey: Option<String>,
pub remaps_to_ability_id: Option<AbilityId>,
pub available: bool,
pub target: AbilityTarget,
pub allow_minimap: bool,
pub allow_autocast: bool,
pub is_building: bool,
pub footprint_radius: Option<f32>,
pub is_instant_placement: bool,
pub cast_range: Option<f32>,
}
Expand description
Information about specific ability.
Fields§
§id: AbilityId
§link_name: String
§link_index: u32
§friendly_name: Option<String>
§hotkey: Option<String>
§remaps_to_ability_id: Option<AbilityId>
§available: bool
Ability is available in current game version.
target: AbilityTarget
Possible target of ability, needed when giving commands to units.
allow_minimap: bool
Ability can be used on minimap.
allow_autocast: bool
Ability can be autocasted.
is_building: bool
Ability is used to construct a building.
footprint_radius: Option<f32>
Half of the building size.
is_instant_placement: bool
§cast_range: Option<f32>
Maximum range to target of the ability.
Trait Implementations§
Source§impl Clone for AbilityData
impl Clone for AbilityData
Source§fn clone(&self) -> AbilityData
fn clone(&self) -> AbilityData
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 AbilityData
impl RefUnwindSafe for AbilityData
impl Send for AbilityData
impl Sync for AbilityData
impl Unpin 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