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
15public:
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_ */
Definition gEventHook.h:14
virtual void onEvent(gEvent &event)=0
static std::list< gEventHook * > hooks
Definition gEventHook.h:21
virtual ~gEventHook()
Definition gEvent.h:32