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:
@@ -9,8 +9,13 @@ namespace Bloom::Events
|
||||
class RegistersWrittenToTarget: public Event
|
||||
{
|
||||
public:
|
||||
static inline EventType type = EventType::REGISTERS_WRITTEN_TO_TARGET;
|
||||
static inline const std::string name = "RegistersWrittenToTarget";
|
||||
|
||||
[[nodiscard]] EventType getType() const override {
|
||||
return RegistersWrittenToTarget::type;
|
||||
}
|
||||
|
||||
[[nodiscard]] std::string getName() const override {
|
||||
return RegistersWrittenToTarget::name;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user