Implemented ResetTaret handler in TargetController

This commit is contained in:
Nav
2022-04-08 22:14:01 +01:00
parent 42fd57cb6a
commit 1696d2dcbe
8 changed files with 70 additions and 1 deletions

View File

@@ -276,6 +276,13 @@ namespace Bloom
*/
void fireTargetEvents();
/**
* Triggers a target reset and emits a TargetReset event.
*
* @param resetEventCorrelationId
*/
void resetTarget(const std::optional<int>& resetEventCorrelationId = std::nullopt);
/**
* When the TargetController fails to handle an event, a TargetControllerErrorOccurred event is emitted, with
* a correlation ID matching the ID of the event that triggered the handler.
@@ -425,5 +432,7 @@ namespace Bloom
* @param event
*/
void onRetrieveStackPointerEvent(const Events::RetrieveStackPointerFromTarget& event);
void onResetTarget(const Events::ResetTarget& event);
};
}