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

34 lines
840 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
{
public:
2021-12-25 21:01:58 +00:00
static constexpr EventType type = EventType::DEBUG_SERVER_THREAD_STATE_CHANGED;
static inline const std::string name = "DebugServerThreadStateChanged";
explicit DebugServerThreadStateChanged(ThreadState state): state(state) {};
2021-04-04 21:04:12 +01:00
[[nodiscard]] EventType getType() const override {
return DebugServerThreadStateChanged::type;
}
2021-04-04 21:04:12 +01:00
[[nodiscard]] std::string getName() const override {
return DebugServerThreadStateChanged::name;
2021-04-04 21:04:12 +01:00
}
[[nodiscard]] ThreadState getState() const {
2021-04-04 21:04:12 +01:00
return this->state;
}
private:
ThreadState state;
2021-04-04 21:04:12 +01:00
};
}