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 DebugSessionStarted: public Event
|
||||
{
|
||||
public:
|
||||
static inline EventType type = EventType::DEBUG_SESSION_STARTED;
|
||||
static inline const std::string name = "DebugSessionStarted";
|
||||
|
||||
[[nodiscard]] EventType getType() const override {
|
||||
return DebugSessionStarted::type;
|
||||
}
|
||||
|
||||
[[nodiscard]] std::string getName() const override {
|
||||
return DebugSessionStarted::name;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user