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