Nymph Game Engine
Chaiscript based Game Engine
|
Class for toggle layer event. More...
#include <toggle_layer_event.h>
Public Member Functions | |
ToggleLayerEvent (const unsigned int layer_number, const bool on) | |
ToggleLayerEvent Constructor. More... | |
bool | turnOn () const noexcept |
Turn the layer on? More... | |
unsigned int | getLayerNumber () const noexcept |
Gets the layer number. 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 < ToggleLayerEvent > | create (const unsigned int layer_number, const bool on) |
Factory function. More... | |
Class for toggle layer event.
|
inline |
ToggleLayerEvent Constructor.
[in] | layer_number | The layer number |
[in] | on | Layer on or off |
|
inlinestatic |
Factory function.
[in] | layer_number | The layer number |
[in] | on | Layer on or off |
Referenced by generated::getToggleLayerEventModule(), and Utility::DebugParser::parseCommand().
|
inlinenoexcept |
Gets the layer number.
Referenced by generated::getToggleLayerEventModule().
|
inlinenoexcept |