GlistEngine
Loading...
Searching...
No Matches
gEventHook.h
Go to the documentation of this file.
1
/*
2
* gEventHook.h
3
*
4
* Created on: Feb 6, 2026
5
* Author: Metehan Gezer
6
*/
7
8
#ifndef ENGINE_EVENTS_GEVENTHOOK_H_
9
#define ENGINE_EVENTS_GEVENTHOOK_H_
10
11
#include "
gEvent.h
"
12
#include <list>
13
14
class
gEventHook
{
15
public
:
16
gEventHook
();
17
virtual
~gEventHook
();
18
19
virtual
void
onEvent
(
gEvent
& event) = 0;
20
21
static
std::list<gEventHook*>
hooks
;
22
};
23
24
#endif
/* ENGINE_EVENTS_GEVENTHOOK_H_ */
gEventHook
Definition
gEventHook.h:14
gEventHook::onEvent
virtual void onEvent(gEvent &event)=0
gEventHook::gEventHook
gEventHook()
gEventHook::hooks
static std::list< gEventHook * > hooks
Definition
gEventHook.h:21
gEventHook::~gEventHook
virtual ~gEventHook()
gEvent
Definition
gEvent.h:32
gEvent.h
engine
events
gEventHook.h
Generated by
1.9.8