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

34 lines
801 B
C++
Raw Normal View History

2021-04-04 21:04:12 +01:00
#pragma once
2021-05-25 21:50:17 +01:00
#include <string>
2021-04-04 21:04:12 +01:00
#include "Event.hpp"
#include "src/Helpers/Thread.hpp"
namespace Bloom::Events
{
2021-05-30 16:52:32 +01:00
class InsightThreadStateChanged: public Event
2021-04-04 21:04:12 +01:00
{
public:
explicit InsightThreadStateChanged(ThreadState state): state(state) {};
2021-04-04 21:04:12 +01:00
2021-12-25 21:01:58 +00:00
static constexpr EventType type = EventType::INSIGHT_THREAD_STATE_CHANGED;
2022-10-12 21:26:09 +01:00
static const inline std::string name = "InsightThreadStateChanged";
2021-04-04 21:04:12 +01:00
[[nodiscard]] EventType getType() const override {
return InsightThreadStateChanged::type;
}
[[nodiscard]] std::string getName() const override {
2021-05-30 16:52:32 +01:00
return InsightThreadStateChanged::name;
2021-04-04 21:04:12 +01:00
}
ThreadState getState() const {
return this->state;
}
private:
ThreadState state;
2021-04-04 21:04:12 +01:00
};
}