Elaztek Developer Hub
Blamite Game Engine - Strings  00446.11.02.25.0036.blamite
A library containing general purpose utilities and classes for use in multiple projects.
BlamEvent.h
Go to the documentation of this file.
1 #pragma once
2 
3 #ifdef STRINGS_EXPORTS
4 #define STRINGS_API __declspec(dllexport)
5 #else
6 #define STRINGS_API __declspec(dllimport)
7 #endif
8 
12 enum class BlamEventType
13 {
14  KeyPress,
16  MouseClick,
17  MouseUnclick,
18  MouseMove,
19  MouseWheel,
20  Tick,
21  NewFrame,
23  LogMessage,
24  ObjectDelete,
26 
27  EditorTick,
29 };
30 
38 {
39 private:
40  bool cancelled = false;
41  BlamEventType event_type;
42 
43 public:
44 
51 
57  BlamEventType GetEventType();
58 
67  void SetCancelled(bool cancel);
68 
74  bool IsCancelled();
75 };
BlamEventType::MouseWheel
@ MouseWheel
Indicates the event is a mouse move event. See MouseWheelEvent for details.
BlamEventType::ConfigurationReload
@ ConfigurationReload
Indicates the event is a configuration reload event. See ConfigurationReloadEvent for details.
BlamEventType::Tick
@ Tick
Indicates the event is a tick event. See TickEvent for details.
BlamEvent.h
BlamEventType::CharacterInput
@ CharacterInput
Indicates the event is a character input event. See CharacterInputEvent for details.
BlamEvent
Class representing a generic event.
Definition: BlamEvent.h:37
BlamEventType::EditorTick
@ EditorTick
Indicates the event is an editor tick event. See EditorTickEvent for details.
BlamEvent::SetCancelled
void SetCancelled(bool cancel)
Sets whether or not the event should be cancelled.
Definition: BlamEvent.cpp:13
STRINGS_API
#define STRINGS_API
Definition: BlamEvent.h:6
BlamEventType::KeyPress
@ KeyPress
Indicates the event is a key press event. See KeyPressEvent for details.
BlamEvent::IsCancelled
bool IsCancelled()
Determines whether or not the event has been cancelled.
Definition: BlamEvent.cpp:18
BlamEventType
BlamEventType
Enumerator listing all possible event types.
Definition: BlamEvent.h:12
cancel
#define cancel
Definition: resource.h:133
BlamEventType::NewFrame
@ NewFrame
Indicates the event is a new frame event. See NewFrameEvent for details.
BlamEventType::MouseUnclick
@ MouseUnclick
Indicates the event is a mouse click event. See MouseClickEvent for details.
BlamEvent::GetEventType
BlamEventType GetEventType()
Retrieves the type of the event.
Definition: BlamEvent.cpp:8
BlamEvent::BlamEvent
BlamEvent(BlamEventType type)
Constructs a new event with the specified type.
Definition: BlamEvent.cpp:3
BlamEventType::ScenarioWorldStateLoad
@ ScenarioWorldStateLoad
Indicates the event is a scenario world state load event. See ScenarioWorldStateLoadEvent for details...
BlamEventType::MouseClick
@ MouseClick
Indicates the event is a mouse click event. See MouseClickEvent for details.
BlamEventType::LogMessage
@ LogMessage
Indicates the event is a log message event. See LogMessageEvent for details.
BlamEventType::MouseMove
@ MouseMove
Indicates the event is a mouse move event. See MouseMoveEvent for details.
BlamEventType::EditorThemeChange
@ EditorThemeChange
Indicates the event is an editor theme change event. See EditorThemeChangeEvent for details.
BlamEventType::ObjectDelete
@ ObjectDelete
Indicates the event is an object deletion event. See ObjectDeleteEvent for details.