Nymph Game Engine
Chaiscript based Game Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
window_exit_event.h
Go to the documentation of this file.
1 #ifndef WINDOW_EXIT_EVENT_H
2 #define WINDOW_EXIT_EVENT_H
3 #include <glm/glm.hpp>
4 #include "events/event.h"
5 #include "events/event_type.h"
6 
7 //= SCRIPTABLE
8 //= SCRIPTABLE BASES Event
9 
10 namespace Utility {
14  class WindowExitEvent : public Events::Event {
15  public:
16  //= BEGIN SCRIPTABLE
17 
27  static std::shared_ptr<WindowExitEvent> create() { return std::make_shared<WindowExitEvent>(); }
28  //= END SCRIPTABLE
29  };
30 }
31 
32 #endif
Class for event.
Definition: event.h:10
Class for window exit event.
Definition: window_exit_event.h:14
Definition: event_type.h:43
static std::shared_ptr< WindowExitEvent > create()
Factory Function.
Definition: window_exit_event.h:27
EventType
Event type enum that is used when passing events.
Definition: event_type.h:12
WindowExitEvent()
Constructor for WindowExitEvent.
Definition: window_exit_event.h:21
Event(const EventType &type)
Event constructor.
Definition: event.h:21