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

Return UNIT_TYPEID instead of type wrapper UnitTypeID

parent 7d6a28f0
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@ void define_unittype(py::module & m)
.def(py::init<const sc2::UnitTypeID &, IDABot &>())
.def("is_type_id", &UnitType::is, "Check if UnitType is UnitTypeID")
.def(py::self == py::self)
.def_property_readonly("type_id", &UnitType::getAPIUnitType)
.def_property_readonly("unit_typeid", [](UnitType & unit_type) { return static_cast<sc2::UNIT_TYPEID>(unit_type.getAPIUnitType()); })
.def_property_readonly("name", &UnitType::getName)
.def_property_readonly("race", &UnitType::getRace)
.def_property_readonly("is_valid", &UnitType::isValid)
......
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