2021-05-25 21:47:53 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
|
|
#include "Event.hpp"
|
|
|
|
|
#include "src/Helpers/Thread.hpp"
|
|
|
|
|
|
|
|
|
|
namespace Bloom::Events
|
|
|
|
|
{
|
|
|
|
|
class TargetControllerThreadStateChanged: public Event
|
|
|
|
|
{
|
|
|
|
|
public:
|
2021-12-25 21:01:58 +00:00
|
|
|
static constexpr EventType type = EventType::TARGET_CONTROLLER_THREAD_STATE_CHANGED;
|
2021-08-19 22:06:59 +01:00
|
|
|
static inline const std::string name = "TargetControllerThreadStateChanged";
|
|
|
|
|
|
2021-06-22 23:52:31 +01:00
|
|
|
explicit TargetControllerThreadStateChanged(ThreadState state): state(state) {};
|
2021-05-25 21:47:53 +01:00
|
|
|
|
2021-08-19 22:06:59 +01:00
|
|
|
[[nodiscard]] EventType getType() const override {
|
|
|
|
|
return TargetControllerThreadStateChanged::type;
|
|
|
|
|
}
|
2021-05-25 21:47:53 +01:00
|
|
|
|
2021-06-22 23:52:31 +01:00
|
|
|
[[nodiscard]] std::string getName() const override {
|
2021-05-25 21:47:53 +01:00
|
|
|
return TargetControllerThreadStateChanged::name;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ThreadState getState() const {
|
|
|
|
|
return this->state;
|
|
|
|
|
}
|
2021-10-06 21:12:31 +01:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
ThreadState state;
|
2021-05-25 21:47:53 +01:00
|
|
|
};
|
|
|
|
|
}
|