SC2API
An API for AI for StarCraft II
Public Member Functions | Public Attributes | List of all members
sc2::UpgradeData Struct Reference

Upgrade data. More...

#include <sc2_data.h>

Public Member Functions

void ReadFromProto (const SC2APIProtocol::UpgradeData &upgrade_data)
 
std::string Log () const
 

Public Attributes

uint32_t upgrade_id
 Stable ID. This ID will not change between patches.
 
std::string name
 Upgrade name, corresponds to the game's catalog.
 
uint32_t mineral_cost
 Mineral cost of researching the upgrade.
 
uint32_t vespene_cost
 Vespene cost of researching the upgrade.
 
AbilityID ability_id
 Ability that researches this upgrade.
 
float research_time
 Time in GameLoops to research this upgrade.
 

Detailed Description

Upgrade data.


The documentation for this struct was generated from the following file: