Files
BloomPatched/src/EventManager/Events/TargetControllerThreadStateChanged.hpp

34 lines
856 B
C++
Raw Normal View History

#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;
static inline const std::string name = "TargetControllerThreadStateChanged";
explicit TargetControllerThreadStateChanged(ThreadState state): state(state) {};
[[nodiscard]] EventType getType() const override {
return TargetControllerThreadStateChanged::type;
}
[[nodiscard]] std::string getName() const override {
return TargetControllerThreadStateChanged::name;
}
ThreadState getState() const {
return this->state;
}
private:
ThreadState state;
};
}