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

Added decs for unit destroyd and created

parent 321c3be0
Branches add-vanta546
No related tags found
1 merge request!6Replays
This commit is part of merge request !6. Comments created here will be created in the context of that merge request.
...@@ -25,6 +25,14 @@ IDAReplayObserver ...@@ -25,6 +25,14 @@ IDAReplayObserver
call the parent's on_game_start method in order to make it work (see call the parent's on_game_start method in order to make it work (see
:ref:`replays`). :ref:`replays`).
.. method:: IDAReplayObserver.on_unit_created(self)
This method is called when the an unit is created, that includes when an unit leaves a refinery.
.. method:: IDAReplayObserver.on_unit_destroyed(self)
This unit is called when a unit is destroyed.
Methods: Methods:
.. method:: IDAReplayObserver.get_all_units(self) -> List[library.ReplayUnit] .. method:: IDAReplayObserver.get_all_units(self) -> List[library.ReplayUnit]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment