Nymph Game Engine
Chaiscript based Game Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Utility::DebugCommandEvent Class Reference

Class for debug command event. More...

#include <debug_command_event.h>

Inheritance diagram for Utility::DebugCommandEvent:
Events::Event

Public Member Functions

 DebugCommandEvent (const std::string debug_command)
 DebugCommandEvent constructor. More...
 
std::string getDebugCommand () const noexcept
 Gets the debug command. More...
 
- Public Member Functions inherited from Events::Event
 Event (const EventType &type)
 Event constructor. More...
 
EventType getEventType () const
 Gets the event type. More...
 

Static Public Member Functions

static std::shared_ptr
< DebugCommandEvent
create (const std::string debug_command)
 Factory function. More...
 

Detailed Description

Class for debug command event.

Constructor & Destructor Documentation

Utility::DebugCommandEvent::DebugCommandEvent ( const std::string  debug_command)
inline

DebugCommandEvent constructor.

Parameters
[in]debug_commandThe debug command

Member Function Documentation

static std::shared_ptr<DebugCommandEvent> Utility::DebugCommandEvent::create ( const std::string  debug_command)
inlinestatic

Factory function.

Parameters
[in]debug_commandThe debug command
Returns
creates a new DebugCommandEvent

Referenced by Graphics::UI::TextField::onKeyDown().

std::string Utility::DebugCommandEvent::getDebugCommand ( ) const
inlinenoexcept

Gets the debug command.

Returns
The debug command.

The documentation for this class was generated from the following file: