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

Make looking up TechTree data about upgrades possible in Python

parent 6e037119
No related branches found
No related tags found
No related merge requests found
......@@ -38,7 +38,6 @@ PYBIND11_MODULE(library, m)
TODO: These also needs to be defined
typedef SC2Type<ABILITY_ID> AbilityID;
typedef SC2Type<UPGRADE_ID> UpgradeID;
typedef SC2Type<BUFF_ID> BuffID;
*/
py::class_<sc2::UnitTypeID>(m, "UnitTypeID")
......@@ -46,6 +45,11 @@ PYBIND11_MODULE(library, m)
py::implicitly_convertible<sc2::UNIT_TYPEID, sc2::UnitTypeID>();
py::class_<sc2::UpgradeID>(m, "UpgradeID")
.def(py::init<sc2::UPGRADE_ID>());
py::implicitly_convertible<sc2::UPGRADE_ID, sc2::UpgradeID>();
py::class_<sc2::Agent>(m, "Agent")
.def(py::init());
......
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