Included error message in TargetControllerErrorOccurred event

This commit is contained in:
Nav
2021-09-25 20:13:32 +01:00
parent 619641a33e
commit 8cd094c9cc
4 changed files with 31 additions and 17 deletions

View File

@@ -12,7 +12,10 @@ namespace Bloom::Events
static inline EventType type = EventType::TARGET_CONTROLLER_ERROR_OCCURRED;
static inline const std::string name = "TargetControllerErrorOccurred";
std::string errorMessage;
TargetControllerErrorOccurred() = default;
TargetControllerErrorOccurred(const std::string& errorMessage): errorMessage(errorMessage) {};
[[nodiscard]] EventType getType() const override {
return TargetControllerErrorOccurred::type;