Files
BloomPatched/src/EventManager/Events/DebugServerThreadStateChanged.hpp
2021-12-25 21:22:29 +00:00

34 lines
840 B
C++

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