1 #ifndef LOAD_MAP_EVENT_H
2 #define LOAD_MAP_EVENT_H
33 static std::shared_ptr<LoadMapEvent>
create(
const std::string name) {
return std::make_shared<LoadMapEvent>(name); }
39 std::string
getName() const noexcept {
return name; }
Definition: event_type.h:35
Class for event.
Definition: event.h:10
static std::shared_ptr< LoadMapEvent > create(const std::string name)
Factory Function.
Definition: load_map_event.h:33
LoadMapEvent(const std::string name)
Creates a LoadMapEvent.
Definition: load_map_event.h:25
Class for load map event.
Definition: load_map_event.h:14
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_map_event.h:39