SpiecsEngine
 
Loading...
Searching...
No Matches
Event.cpp
Go to the documentation of this file.
1/**
2* @file Event.cpp.
3* @brief The Event Class Implementation.
4* @author The Cherno.
5*/
6
7#include "Pchheader.h"
8#include "Event.h"
9
10namespace Spices {
11
12 /**
13 * @brief Single instance of Root Event Function Pointer.
14 */
15 static Event::EventCallbackFn EventCallback;
16
17 Event::EventCallbackFn Event::GetEventCallbackFn()
18 {
20
21 return EventCallback;
22 }
23
24 void Event::SetEventCallbackFn(const EventCallbackFn& callback)
25 {
27
28 EventCallback = callback;
29 }
30}
#define SPICES_PROFILE_ZONE
static EventCallbackFn GetEventCallbackFn()
Get Global Root Event Function Pointer.
Definition Event.cpp:17
static void SetEventCallbackFn(const EventCallbackFn &callback)
Set Global Root Event Function Pointer.
Definition Event.cpp:24
This Class is the basic Event Class. Inherit from it and create specific event class.
Definition Event.h:96
static Event::EventCallbackFn EventCallback
Single instance of Root Event Function Pointer.
Definition Event.cpp:15