2021-04-04 21:04:12 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "Event.hpp"
|
2021-04-06 02:10:14 +01:00
|
|
|
#include "src/Helpers/Thread.hpp"
|
2021-04-04 21:04:12 +01:00
|
|
|
|
|
|
|
|
namespace Bloom::Events
|
|
|
|
|
{
|
2021-05-24 21:09:50 +01:00
|
|
|
class DebugServerThreadStateChanged: public Event
|
2021-04-04 21:04:12 +01:00
|
|
|
{
|
|
|
|
|
private:
|
|
|
|
|
ThreadState state;
|
|
|
|
|
public:
|
2021-05-24 21:09:50 +01:00
|
|
|
DebugServerThreadStateChanged(ThreadState state): state(state) {};
|
2021-04-04 21:04:12 +01:00
|
|
|
|
2021-05-24 21:09:50 +01:00
|
|
|
static inline const std::string name = "DebugServerThreadStateChanged";
|
2021-04-04 21:04:12 +01:00
|
|
|
|
|
|
|
|
std::string getName() const override {
|
2021-05-24 21:09:50 +01:00
|
|
|
return DebugServerThreadStateChanged::name;
|
2021-04-04 21:04:12 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ThreadState getState() const {
|
|
|
|
|
return this->state;
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
}
|