 |
Blamite Game Engine - Strings
00370.03.08.23.1431.blamite
A library containing general purpose utilities and classes for use in multiple projects.
|
Go to the documentation of this file.
9 #define STRINGS_API __declspec(dllexport)
11 #define STRINGS_API __declspec(dllimport)
40 std::vector<BlamEventType> subscribed_events;
44 std::string name =
"";
61 std::vector<BlamEventType> GetSubscribedEvents();
79 void SetPriority(
int new_priority);
virtual void OnMouseClickEvent(MouseClickEvent *event)
Called when the listener is subscribed to Mouse Click events, and a new MouseClickEvent is fired.
Definition: events.h:118
STRINGS_API std::vector< BlamEventListener * > GetListeners()
Retrieves a list of currently registered listeners.
Definition: events.cpp:188
virtual void OnEditorTickEvent(EditorTickEvent *event)
Called when the listener is subscribed to Editor Tick events, and a new EditorTickEvent is fired.
Definition: events.h:158
virtual void OnLogMessageEvent(LogMessageEvent *event)
Called when the listener is subscribed to Log Message events, and a new LogMessageEvent is fired.
Definition: events.h:150
Namespace for handling things related to Events.
Definition: events.h:172
Class representing a configuration reload event.
Definition: ConfigurationReloadEvent.h:19
virtual void OnKeyPressEvent(KeyPressEvent *event)
Called when the listener is subscribed to Key Press events, and a new KeyPressEvent is fired.
Definition: events.h:110
STRINGS_API void FireEvent(BlamEvent *event)
Fires an event.
Definition: events.cpp:94
Class representing a virtual key press.
Definition: KeyPressEvent.h:18
Class representing a generic event.
Definition: BlamEvent.h:33
virtual void OnNewFrameEvent(NewFrameEvent *event)
Called when the listener is subscribed to New Frame events, and a new NewFrameEvent is fired.
Definition: events.h:142
virtual void OnCharacterInputEvent(CharacterInputEvent *event)
Called when the listener is subscribed to Character Input events, and a new CharacterInputEvent is fi...
Definition: events.h:94
Class representing an engine tick event.
Definition: TickEvent.h:18
STRINGS_API void ResortListeners(BlamEventListener *requesting_listener)
Re-sorts the list of registered listeners after a priority modification.
Definition: events.cpp:181
STRINGS_API void UnregisterListener(BlamEventListener *listener)
Unregisters a an event listener.
Definition: events.cpp:133
Class representing a mouse movement event.
Definition: MouseMoveEvent.h:16
Class representing a mouse button press.
Definition: MouseClickEvent.h:18
Class representing a log message event.
Definition: LogMessage.h:18
BlamEventType
Enumerator listing all possible event types.
Definition: BlamEvent.h:12
virtual void OnEditorThemeChangeEvent(EditorThemeChangeEvent *event)
Called when the listener is subscribed to Editor Theme Change events, and a new EditorThemeChangeEven...
Definition: events.h:166
virtual void OnTickEvent(TickEvent *event)
Called when the listener is subscribed to Tick events, and a new TickEvent is fired.
Definition: events.h:134
#define STRINGS_API
Definition: events.h:11
STRINGS_API void RegisterListener(BlamEventListener *listener, std::string name)
Registers a an event listener.
Definition: events.cpp:124
Class representing an editor tick event.
Definition: EditorTickEvent.h:18
Class representing an editor theme change event.
Definition: EditorThemeChange.h:27
Class representing an Event Listener.
Definition: events.h:37
STRINGS_API void UnregisterListeners()
Unregisters all listeners.
Definition: events.cpp:151
virtual void OnMouseMoveEvent(MouseMoveEvent *event)
Called when the listener is subscribed to Mouse Move events, and a new MouseMoveEvent is fired.
Definition: events.h:126
Class representing an engine frame event.
Definition: NewFrameEvent.h:19
virtual void OnConfigurationReloadEvent(ConfigurationReloadEvent *event)
Called when the listener is subscribed to configuration reload events, and a new ConfigurationReloadE...
Definition: events.h:102