Removed unnecessary use of std::string for event management, in an attempt to reduce memory consumption.
Now using 16 bit enums for event types.
This commit is contained in:
@@ -10,11 +10,16 @@ namespace Bloom::Events
|
||||
class SetTargetPinState: public Event
|
||||
{
|
||||
public:
|
||||
static inline EventType type = EventType::SET_TARGET_PIN_STATE;
|
||||
static inline const std::string name = "SetTargetPinState";
|
||||
int variantId = 0;
|
||||
Targets::TargetPinDescriptor pinDescriptor;
|
||||
Targets::TargetPinState pinState;
|
||||
|
||||
[[nodiscard]] EventType getType() const override {
|
||||
return SetTargetPinState::type;
|
||||
}
|
||||
|
||||
[[nodiscard]] std::string getName() const override {
|
||||
return SetTargetPinState::name;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user