Files
BloomPatched/src/EventManager/Events/InsightThreadStateChanged.hpp
2022-10-12 21:26:09 +01:00

34 lines
801 B
C++

#pragma once
#include <string>
#include "Event.hpp"
#include "src/Helpers/Thread.hpp"
namespace Bloom::Events
{
class InsightThreadStateChanged: public Event
{
public:
explicit InsightThreadStateChanged(ThreadState state): state(state) {};
static constexpr EventType type = EventType::INSIGHT_THREAD_STATE_CHANGED;
static const inline std::string name = "InsightThreadStateChanged";
[[nodiscard]] EventType getType() const override {
return InsightThreadStateChanged::type;
}
[[nodiscard]] std::string getName() const override {
return InsightThreadStateChanged::name;
}
ThreadState getState() const {
return this->state;
}
private:
ThreadState state;
};
}