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

30 lines
773 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"
#include "TargetPinStatesRetrieved.hpp"
2021-04-04 21:04:12 +01:00
#include "src/Targets/TargetPinDescriptor.hpp"
namespace Bloom::Events
{
class SetTargetPinState: public Event
{
public:
using TargetControllerResponseType = TargetPinStatesRetrieved;
static inline EventType type = EventType::SET_TARGET_PIN_STATE;
2021-04-04 21:04:12 +01:00
static inline const std::string name = "SetTargetPinState";
Targets::TargetPinDescriptor pinDescriptor;
Targets::TargetPinState pinState;
[[nodiscard]] EventType getType() const override {
return SetTargetPinState::type;
}
[[nodiscard]] std::string getName() const override {
2021-04-04 21:04:12 +01:00
return SetTargetPinState::name;
}
};
}