sm-ext-dhooks2/listeners.h

29 lines
548 B
C
Raw Normal View History

2013-08-19 17:07:25 +02:00
#ifndef _INCLUDE_FORWARDS_H_
#define _INCLUDE_FORWARDS_H_
#include "extension.h"
#include "vhook.h"
class DHooksEntityListener : public ISMEntityListener
{
public:
void OnEntityCreated(CBaseEntity *pEntity, const char *classname);
void OnEntityDestroyed(CBaseEntity *pEntity);
void CleanupListeners(IPluginContext *func);
};
enum ListenType
{
ListenType_Created,
ListenType_Deleted
};
struct EntityListener
{
ListenType type;
IPluginFunction *callback;
};
extern CUtlVector<DHooksManager *> g_pHooks;
#endif