2019-07-25 21:21:03 +00:00
|
|
|
#ifndef __INCLUDED_HOOK_BASE_H__
|
|
|
|
#define __INCLUDED_HOOK_BASE_H__
|
|
|
|
|
2019-08-14 12:55:31 +00:00
|
|
|
#include "Base_Hook.h"
|
|
|
|
|
2019-08-14 13:09:57 +00:00
|
|
|
#ifndef NO_OVERLAY
|
2019-08-14 12:55:31 +00:00
|
|
|
|
2019-08-26 14:38:01 +00:00
|
|
|
#include <set>
|
2019-08-16 08:36:44 +00:00
|
|
|
|
2019-07-25 21:21:03 +00:00
|
|
|
class Hook_Manager
|
|
|
|
{
|
|
|
|
friend class Base_Hook;
|
|
|
|
|
|
|
|
protected:
|
2019-08-26 14:38:01 +00:00
|
|
|
std::set<Base_Hook*> _hooks;
|
2019-07-25 21:21:03 +00:00
|
|
|
|
|
|
|
Hook_Manager();
|
|
|
|
virtual ~Hook_Manager();
|
|
|
|
|
|
|
|
public:
|
|
|
|
static Hook_Manager& Inst();
|
|
|
|
|
2019-08-27 13:38:07 +00:00
|
|
|
void AddHook(Base_Hook* hook);
|
|
|
|
void RemoveHook(Base_Hook* hook);
|
2019-07-25 21:21:03 +00:00
|
|
|
};
|
|
|
|
|
2019-08-14 13:09:57 +00:00
|
|
|
#endif//NO_OVERLAY
|
2019-07-25 21:21:03 +00:00
|
|
|
|
|
|
|
#endif//__INCLUDED_HOOK_BASE_H__
|