Nymph Game Engine
Chaiscript based Game Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
debug_command_event.h
Go to the documentation of this file.
1 #ifndef DEBUG_COMMAND_EVENT_H
2 #define DEBUG_COMMAND_EVENT_H
3 #include <glm/glm.hpp>
4 #include "events/event.h"
5 #include "events/event_type.h"
6 
7 namespace Utility {
12  private:
13  std::string debug_command;
14  public:
20  DebugCommandEvent(const std::string debug_command) : Event(Events::EventType::DEBUG_COMMAND), debug_command(debug_command) {}
28  static std::shared_ptr<DebugCommandEvent> create(const std::string debug_command) { return std::make_shared<DebugCommandEvent>(debug_command); }
34  std::string getDebugCommand() const noexcept { return debug_command; }
35  };
36 }
37 
38 #endif
Class for event.
Definition: event.h:10
static std::shared_ptr< DebugCommandEvent > create(const std::string debug_command)
Factory function.
Definition: debug_command_event.h:28
EventType
Event type enum that is used when passing events.
Definition: event_type.h:12
DebugCommandEvent(const std::string debug_command)
DebugCommandEvent constructor.
Definition: debug_command_event.h:20
std::string getDebugCommand() const noexcept
Gets the debug command.
Definition: debug_command_event.h:34
Definition: event_type.h:34
Event(const EventType &type)
Event constructor.
Definition: event.h:21
Class for debug command event.
Definition: debug_command_event.h:11