sourcemm/sample_mm/meta_hooks.h
changeset 22 3fe8e457c5a2
child 24 9f04f9fb2485
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/sourcemm/sample_mm/meta_hooks.h	Mon Apr 18 23:33:44 2005 +0000
     1.3 @@ -0,0 +1,20 @@
     1.4 +#ifndef _INCLUDE_META_HOOKS_H
     1.5 +#define _INCLUDE_META_HOOKS_H
     1.6 +
     1.7 +//Declare the hooks we will be using.  Hooking will not compile without these.
     1.8 +//The macro naming scheme is SH_DECL_HOOKn[_void].
     1.9 +//If you have 5 parameters, it would be HOOK5.  If the function is void, add _void.
    1.10 +//It stands for "SourceHook, Declare Hook".
    1.11 +SH_DECL_HOOK6(IServerGameDLL, LevelInit, SH_NOATTRIB, 0, bool, char const *, char const *, char const *, char const *, bool, bool);
    1.12 +SH_DECL_HOOK3_void(IServerGameDLL, ServerActivate, SH_NOATTRIB, 0, edict_t *, int, int);
    1.13 +SH_DECL_HOOK1_void(IServerGameDLL, GameFrame, SH_NOATTRIB, 0, bool);
    1.14 +SH_DECL_HOOK0_void(IServerGameDLL, LevelShutdown, SH_NOATTRIB, 0);
    1.15 +SH_DECL_HOOK2_void(IServerGameClients, ClientActive, SH_NOATTRIB, 0, edict_t *, bool);
    1.16 +SH_DECL_HOOK1_void(IServerGameClients, ClientDisconnect, SH_NOATTRIB, 0, edict_t *);
    1.17 +SH_DECL_HOOK2_void(IServerGameClients, ClientPutInServer, SH_NOATTRIB, 0, edict_t *, char const *);
    1.18 +SH_DECL_HOOK1_void(IServerGameClients, SetCommandClient, SH_NOATTRIB, 0, int);
    1.19 +SH_DECL_HOOK1_void(IServerGameClients, ClientSettingsChanged, SH_NOATTRIB, 0, edict_t *);
    1.20 +SH_DECL_HOOK5(IServerGameClients, ClientConnect, SH_NOATTRIB, 0, bool, edict_t *, const char*, const char *, char *, int);
    1.21 +SH_DECL_HOOK1_void(IServerGameClients, ClientCommand, SH_NOATTRIB, 0, edict_t *);
    1.22 +
    1.23 +#endif //_INCLUDE_META_HOOKS_H