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