Struct sc2::data::UpgradeData [−][src]
pub struct UpgradeData { /* fields omitted */ }
Upgrade data.
Methods
impl UpgradeData
[src]
impl UpgradeData
pub fn get_id(&self) -> Upgrade
[src]
pub fn get_id(&self) -> Upgrade
Stable upgrade ID.
pub fn get_name(&self) -> &str
[src]
pub fn get_name(&self) -> &str
Upgrade name (corresponds to the game's catalog).
pub fn get_mineral_cost(&self) -> u32
[src]
pub fn get_mineral_cost(&self) -> u32
Mineral cost of researching this upgrade.
pub fn get_vespene_cost(&self) -> u32
[src]
pub fn get_vespene_cost(&self) -> u32
Vespene cost of researching this upgrade.
pub fn get_ability(&self) -> Ability
[src]
pub fn get_ability(&self) -> Ability
Ability that researches this upgrade.
pub fn get_research_time(&self) -> f32
[src]
pub fn get_research_time(&self) -> f32
Time in game steps to research this upgrade.
Trait Implementations
impl Debug for UpgradeData
[src]
impl Debug for UpgradeData
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for UpgradeData
[src]
impl Clone for UpgradeData
fn clone(&self) -> UpgradeData
[src]
fn clone(&self) -> UpgradeData
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl Send for UpgradeData
impl Send for UpgradeData
impl Sync for UpgradeData
impl Sync for UpgradeData