.def("send_chat",&IDABot::SendChat,"Sends the string 'message' to the game chat","message"_a)
.def("send_chat",&IDABot::SendChat,"Sends the string 'message' to the game chat","message"_a)
.def("get_all_units",&IDABot::GetAllUnits,"Returns a list of all visible units, including minerals and geysers")
.def("get_all_units",&IDABot::GetAllUnits,"Returns a list of all visible units, including minerals and geysers")
.def("get_my_units",&IDABot::GetMyUnits,"Returns a list of all your units")
.def("get_my_units",&IDABot::GetMyUnits,"Returns a list of all your units")
.def("get_player_race",&IDABot::GetPlayerRace,"Returns the players race, useful if you play Race.Random")
.def("get_player_race",&IDABot::GetPlayerRace,"Returns the players race, useful if you play Race.Random")
.def("debug_create_unit",&IDABot::DebugCreateUnit,"This method creates the nr (INT) of units on the position :class:`library.Point2D`, the unit belongs to the Player Constant","unit_type"_a,"p"_a,"player_id"_a=0,"count"_a=1)
.def("debug_create_unit",&IDABot::DebugCreateUnit,"This method creates the nr (INT) of units on the position :class:`library.Point2D`, the unit belongs to the Player Constant","unit_type"_a,"p"_a,"player_id"_a=0,"count"_a=1)
.def("debug_kill_unit",&IDABot::DebugKillUnit,"Kill the unit from debug mode")
.def("debug_kill_unit",&IDABot::DebugKillUnit,"Kill the unit from debug mode")
...
@@ -123,8 +123,10 @@ PYBIND11_MODULE(library, m)
...
@@ -123,8 +123,10 @@ PYBIND11_MODULE(library, m)
.def_property_readonly("current_supply",&IDABot::GetCurrentSupply,"How much supply we are currently using")
.def_property_readonly("current_supply",&IDABot::GetCurrentSupply,"How much supply we are currently using")
.def_property_readonly("max_supply",&IDABot::GetMaxSupply,"How much supply we can currently use")
.def_property_readonly("max_supply",&IDABot::GetMaxSupply,"How much supply we can currently use")
.def_property_readonly("gas",&IDABot::GetGas,"How much gas we currently have")
.def_property_readonly("gas",&IDABot::GetGas,"How much gas we currently have")
.def_property_readonly("current_frame",&IDABot::GetCurrentFrame,"Which frame we are currently on");
.def_property_readonly("current_frame",&IDABot::GetCurrentFrame,"Which frame we are currently on")