2021-05-30 16:52:32 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
|
|
#include "Event.hpp"
|
|
|
|
|
#include "src/TargetController/TargetControllerState.hpp"
|
|
|
|
|
|
|
|
|
|
namespace Bloom::Events
|
|
|
|
|
{
|
2022-04-27 21:27:59 +01:00
|
|
|
class TargetControllerStateChanged: public Event
|
2021-05-30 16:52:32 +01:00
|
|
|
{
|
|
|
|
|
public:
|
2022-04-27 21:27:59 +01:00
|
|
|
static constexpr EventType type = EventType::TARGET_CONTROLLER_STATE_CHANGED;
|
2022-10-12 21:26:09 +01:00
|
|
|
static const inline std::string name = "TargetControllerStateChanged";
|
2021-05-30 16:52:32 +01:00
|
|
|
|
2022-04-09 15:57:24 +01:00
|
|
|
TargetController::TargetControllerState state;
|
2022-04-27 21:27:59 +01:00
|
|
|
explicit TargetControllerStateChanged(TargetController::TargetControllerState state)
|
|
|
|
|
: state(state)
|
|
|
|
|
{};
|
2021-05-30 16:52:32 +01:00
|
|
|
|
2021-08-19 22:06:59 +01:00
|
|
|
[[nodiscard]] EventType getType() const override {
|
2022-04-27 21:27:59 +01:00
|
|
|
return TargetControllerStateChanged::type;
|
2021-08-19 22:06:59 +01:00
|
|
|
}
|
2021-05-30 16:52:32 +01:00
|
|
|
|
2021-06-22 23:52:31 +01:00
|
|
|
[[nodiscard]] std::string getName() const override {
|
2022-04-27 21:27:59 +01:00
|
|
|
return TargetControllerStateChanged::name;
|
2021-05-30 16:52:32 +01:00
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
}
|