1 | #ifndef ANTIBOT_ANTIBOT_INTERFACE_H |
2 | #define ANTIBOT_ANTIBOT_INTERFACE_H |
3 | |
4 | #include <base/dynamic.h> |
5 | |
6 | #ifndef ANTIBOTAPI |
7 | #define ANTIBOTAPI DYNAMIC_IMPORT |
8 | #endif |
9 | |
10 | #include "antibot_data.h" |
11 | extern "C" { |
12 | |
13 | ANTIBOTAPI int AntibotAbiVersion(); |
14 | ANTIBOTAPI void AntibotInit(CAntibotData *pCallbackData); |
15 | ANTIBOTAPI void AntibotRoundStart(CAntibotRoundData *pRoundData); |
16 | ANTIBOTAPI void AntibotRoundEnd(void); |
17 | ANTIBOTAPI void AntibotUpdateData(void); |
18 | ANTIBOTAPI void AntibotDestroy(void); |
19 | ANTIBOTAPI void AntibotConsoleCommand(const char *pCommand); |
20 | ANTIBOTAPI void AntibotOnPlayerInit(int ClientId); |
21 | ANTIBOTAPI void AntibotOnPlayerDestroy(int ClientId); |
22 | ANTIBOTAPI void AntibotOnSpawn(int ClientId); |
23 | ANTIBOTAPI void AntibotOnHammerFireReloading(int ClientId); |
24 | ANTIBOTAPI void AntibotOnHammerFire(int ClientId); |
25 | ANTIBOTAPI void AntibotOnHammerHit(int ClientId, int TargetId); |
26 | ANTIBOTAPI void AntibotOnDirectInput(int ClientId); |
27 | ANTIBOTAPI void AntibotOnCharacterTick(int ClientId); |
28 | ANTIBOTAPI void AntibotOnHookAttach(int ClientId, bool Player); |
29 | ANTIBOTAPI void AntibotOnEngineTick(void); |
30 | ANTIBOTAPI void AntibotOnEngineClientJoin(int ClientId, bool Sixup); |
31 | ANTIBOTAPI void AntibotOnEngineClientDrop(int ClientId, const char *pReason); |
32 | // Returns true if the message shouldn't be processed by the server. |
33 | ANTIBOTAPI bool AntibotOnEngineClientMessage(int ClientId, const void *pData, int Size, int Flags); |
34 | ANTIBOTAPI bool AntibotOnEngineServerMessage(int ClientId, const void *pData, int Size, int Flags); |
35 | // Returns true if the server should simulate receiving a client message. |
36 | ANTIBOTAPI bool AntibotOnEngineSimulateClientMessage(int *pClientId, void *pBuffer, int BufferSize, int *pOutSize, int *pFlags); |
37 | } |
38 | |
39 | #endif // ANTIBOT_ANTIBOT_INTERFACE_H |
40 | |