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