Skip to content
Snippets Groups Projects
Commit 8bd60df4 authored by Rojikku98's avatar Rojikku98
Browse files

Merge branch 'master' into fix_unit_type

parents 0bcc66dc cd627e83
No related branches found
No related tags found
1 merge request!7Fix unit type
......@@ -29,7 +29,9 @@ PYBIND11_MODULE(library, m)
.def("update", &sc2::Coordinator::Update)
.def("set_real_time", &sc2::Coordinator::SetRealtime)
.def("load_replay_list",&sc2::Coordinator::SetReplayPath, "replay_path"_a)
.def("add_replay_observer",&sc2::Coordinator::AddReplayObserver, "replay_observer"_a);
.def("add_replay_observer",&sc2::Coordinator::AddReplayObserver, "replay_observer"_a)
.def("set_replay_perspective",&sc2::Coordinator::SetReplayPerspective, "perspective"_a)
;
py::enum_<sc2::Race>(m, "Race")
.value("Terran", sc2::Race::Terran)
......
......@@ -48,4 +48,9 @@ ReplayUnit ReplayUnit::getTarget() const
return *this;
}
int ReplayUnit::getPlayer() const
{
return m_unit->owner;
}
......@@ -16,5 +16,7 @@ public:
const UnitType & getType() const;
bool hasTarget() const;
ReplayUnit getTarget() const;
int getPlayer() const;
};
\ No newline at end of file
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