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

28 lines
588 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"
2021-04-06 02:10:14 +01:00
#include "src/Helpers/Thread.hpp"
2021-04-04 21:04:12 +01:00
namespace Bloom::Events
{
class DebugServerThreadStateChanged: public Event
2021-04-04 21:04:12 +01:00
{
private:
ThreadState state;
public:
DebugServerThreadStateChanged(ThreadState state): state(state) {};
2021-04-04 21:04:12 +01:00
static inline const std::string name = "DebugServerThreadStateChanged";
2021-04-04 21:04:12 +01:00
std::string getName() const override {
return DebugServerThreadStateChanged::name;
2021-04-04 21:04:12 +01:00
}
ThreadState getState() const {
return this->state;
}
};
}