This should have been included in a previous commit, RE renaming compenent state changed events
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "Event.hpp"
|
||||
#include "src/Helpers/Thread.hpp"
|
||||
|
||||
namespace Bloom::Events
|
||||
{
|
||||
class TargetControllerThreadStateChanged: public Event
|
||||
{
|
||||
private:
|
||||
ThreadState state;
|
||||
|
||||
public:
|
||||
TargetControllerThreadStateChanged(ThreadState state): state(state) {};
|
||||
|
||||
static inline const std::string name = "TargetControllerThreadStateChanged";
|
||||
|
||||
std::string getName() const override {
|
||||
return TargetControllerThreadStateChanged::name;
|
||||
}
|
||||
|
||||
ThreadState getState() const {
|
||||
return this->state;
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user