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