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

Add TechTreeImproved to Python library

parent 06155d8e
No related branches found
No related tags found
No related merge requests found
......@@ -101,4 +101,18 @@ PYBIND11_MODULE(library, m)
m.def("create_participants", &sc2::CreateParticipant, "Create participant from bot", "race"_a, "bot"_a);
m.def("create_computer", &sc2::CreateComputer, "Create participant from built-in Starcraft computer", "race"_a, "difficulty"_a);
py::class_<BuildDescription>(m, "BuildDescription")
.def(py::init())
.def_readwrite("producer_type", &BuildDescription::producer_type)
.def_readwrite("result_type", &BuildDescription::result_type)
.def_readwrite("ability_used", &BuildDescription::ability_used)
.def_readwrite("time", &BuildDescription::time)
.def_readwrite("buildings_needed", &BuildDescription::buildings_needed)
.def_readwrite("addons_needed", &BuildDescription::addons_needed);
py::class_<TechTreeImproved>(m, "TechTreeImproved")
.def(py::init())
.def("load_data", &TechTreeImproved::LoadData)
.def("how_to_build", &TechTreeImproved::HowToBuild);
}
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