Struct sc2::data::UpgradeData [−][src]
pub struct UpgradeData { /* fields omitted */ }Upgrade data.
Methods
impl UpgradeData[src]
impl UpgradeDatapub fn get_id(&self) -> Upgrade[src]
pub fn get_id(&self) -> UpgradeStable upgrade ID.
pub fn get_name(&self) -> &str[src]
pub fn get_name(&self) -> &strUpgrade name (corresponds to the game's catalog).
pub fn get_mineral_cost(&self) -> u32[src]
pub fn get_mineral_cost(&self) -> u32Mineral cost of researching this upgrade.
pub fn get_vespene_cost(&self) -> u32[src]
pub fn get_vespene_cost(&self) -> u32Vespene cost of researching this upgrade.
pub fn get_ability(&self) -> Ability[src]
pub fn get_ability(&self) -> AbilityAbility that researches this upgrade.
pub fn get_research_time(&self) -> f32[src]
pub fn get_research_time(&self) -> f32Time in game steps to research this upgrade.
Trait Implementations
impl Debug for UpgradeData[src]
impl Debug for UpgradeDatafn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
fn fmt(&self, __arg_0: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for UpgradeData[src]
impl Clone for UpgradeDatafn clone(&self) -> UpgradeData[src]
fn clone(&self) -> UpgradeDataReturns 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 UpgradeDataimpl Sync for UpgradeData
impl Sync for UpgradeData