1 #ifndef LOAD_CHARACTER_EVENT_H
2 #define LOAD_CHARACTER_EVENT_H
32 static std::shared_ptr<LoadCharacterEvent>
create(
const std::string name) {
return std::make_shared<LoadCharacterEvent>(name); }
38 std::string
getName() const noexcept {
return name; }
static std::shared_ptr< LoadCharacterEvent > create(const std::string name)
Factory function.
Definition: load_character_event.h:32
Class for event.
Definition: event.h:10
Definition: event_type.h:36
Class for load character event.
Definition: load_character_event.h:13
LoadCharacterEvent(const std::string name)
Constructs a LoadCharacterEvent.
Definition: load_character_event.h:24
EventType
Event type enum that is used when passing events.
Definition: event_type.h:12
Event(const EventType &type)
Event constructor.
Definition: event.h:21
std::string getName() const noexcept
Gets the name.
Definition: load_character_event.h:38