28 lines
540 B
C++
28 lines
540 B
C++
|
|
#pragma once
|
||
|
|
|
||
|
|
#include "Event.hpp"
|
||
|
|
#include "src/Helpers/Thread.hpp"
|
||
|
|
|
||
|
|
namespace Bloom::Events
|
||
|
|
{
|
||
|
|
class InsightStateChanged: public Event
|
||
|
|
{
|
||
|
|
private:
|
||
|
|
ThreadState state;
|
||
|
|
public:
|
||
|
|
InsightStateChanged(ThreadState state) : state(state) {
|
||
|
|
|
||
|
|
};
|
||
|
|
|
||
|
|
static inline const std::string name = "InsightStateChanged";
|
||
|
|
|
||
|
|
std::string getName() const override {
|
||
|
|
return InsightStateChanged::name;
|
||
|
|
}
|
||
|
|
|
||
|
|
ThreadState getState() const {
|
||
|
|
return this->state;
|
||
|
|
}
|
||
|
|
};
|
||
|
|
}
|