Skip to content
Snippets Groups Projects
Commit fb68fc46 authored by David Bergström's avatar David Bergström
Browse files

Change from CCUpgrade to pure sc2::UPGRADE_ID

CCUpgrade (sc2::UPGRADE_ID) does not contribute much and makes code
more difficult. Especially in Python, since it does not convert between
types implicitly.
parent 053325ec
No related branches found
No related tags found
No related merge requests found
...@@ -24,7 +24,7 @@ struct TypeData ...@@ -24,7 +24,7 @@ struct TypeData
sc2::AbilityID warpAbility = 0; // the ability that creates this item via warp-in sc2::AbilityID warpAbility = 0; // the ability that creates this item via warp-in
std::vector<UnitType> whatBuilds; // any of these units can build the item std::vector<UnitType> whatBuilds; // any of these units can build the item
std::vector<UnitType> requiredUnits; // owning ONE of these is required to make std::vector<UnitType> requiredUnits; // owning ONE of these is required to make
std::vector<CCUpgrade> requiredUpgrades; // having ALL of these is required to make std::vector<sc2::UPGRADE_ID> requiredUpgrades; // having ALL of these is required to make
std::vector<UnitType> requiredAddons; // a unit of this type must be present next to the producer std::vector<UnitType> requiredAddons; // a unit of this type must be present next to the producer
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment