DDraceNetwork Docs
antibot_interface.h
Go to the documentation of this file.
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"
11extern "C" {
12
14ANTIBOTAPI void AntibotInit(CAntibotData *pCallbackData);
18ANTIBOTAPI void AntibotDestroy(void);
19ANTIBOTAPI void AntibotConsoleCommand(const char *pCommand);
20ANTIBOTAPI void AntibotOnPlayerInit(int ClientId);
21ANTIBOTAPI void AntibotOnPlayerDestroy(int ClientId);
22ANTIBOTAPI void AntibotOnSpawn(int ClientId);
24ANTIBOTAPI void AntibotOnHammerFire(int ClientId);
25ANTIBOTAPI void AntibotOnHammerHit(int ClientId, int TargetId);
26ANTIBOTAPI void AntibotOnDirectInput(int ClientId);
27ANTIBOTAPI void AntibotOnCharacterTick(int ClientId);
28ANTIBOTAPI void AntibotOnHookAttach(int ClientId, bool Player);
30ANTIBOTAPI void AntibotOnEngineClientJoin(int ClientId, bool Sixup);
31ANTIBOTAPI void AntibotOnEngineClientDrop(int ClientId, const char *pReason);
32// Returns true if the message shouldn't be processed by the server.
33ANTIBOTAPI bool AntibotOnEngineClientMessage(int ClientId, const void *pData, int Size, int Flags);
34ANTIBOTAPI bool AntibotOnEngineServerMessage(int ClientId, const void *pData, int Size, int Flags);
35// Returns true if the server should simulate receiving a client message.
36ANTIBOTAPI bool AntibotOnEngineSimulateClientMessage(int *pClientId, void *pBuffer, int BufferSize, int *pOutSize, int *pFlags);
37}
38
39#endif // ANTIBOT_ANTIBOT_INTERFACE_H
DYNAMIC_IMPORT void AntibotOnEngineClientJoin(int ClientId, bool Sixup)
Definition: antibot_null.cpp:45
DYNAMIC_IMPORT void AntibotOnEngineTick(void)
Definition: antibot_null.cpp:44
DYNAMIC_IMPORT void AntibotOnHammerFireReloading(int ClientId)
Definition: antibot_null.cpp:38
DYNAMIC_IMPORT int AntibotAbiVersion()
Definition: antibot_null.cpp:11
DYNAMIC_IMPORT bool AntibotOnEngineServerMessage(int ClientId, const void *pData, int Size, int Flags)
Definition: antibot_null.cpp:48
DYNAMIC_IMPORT void AntibotRoundStart(CAntibotRoundData *pRoundData)
Definition: antibot_null.cpp:20
DYNAMIC_IMPORT void AntibotRoundEnd(void)
Definition: antibot_null.cpp:21
DYNAMIC_IMPORT void AntibotOnCharacterTick(int ClientId)
Definition: antibot_null.cpp:42
DYNAMIC_IMPORT void AntibotConsoleCommand(const char *pCommand)
Definition: antibot_null.cpp:24
DYNAMIC_IMPORT bool AntibotOnEngineClientMessage(int ClientId, const void *pData, int Size, int Flags)
Definition: antibot_null.cpp:47
DYNAMIC_IMPORT void AntibotUpdateData(void)
Definition: antibot_null.cpp:22
DYNAMIC_IMPORT bool AntibotOnEngineSimulateClientMessage(int *pClientId, void *pBuffer, int BufferSize, int *pOutSize, int *pFlags)
Definition: antibot_null.cpp:49
DYNAMIC_IMPORT void AntibotOnDirectInput(int ClientId)
Definition: antibot_null.cpp:41
DYNAMIC_IMPORT void AntibotOnHammerFire(int ClientId)
Definition: antibot_null.cpp:39
DYNAMIC_IMPORT void AntibotOnHookAttach(int ClientId, bool Player)
Definition: antibot_null.cpp:43
DYNAMIC_IMPORT void AntibotDestroy(void)
Definition: antibot_null.cpp:23
DYNAMIC_IMPORT void AntibotOnPlayerDestroy(int ClientId)
Definition: antibot_null.cpp:36
DYNAMIC_IMPORT void AntibotOnPlayerInit(int ClientId)
Definition: antibot_null.cpp:35
DYNAMIC_IMPORT void AntibotOnHammerHit(int ClientId, int TargetId)
Definition: antibot_null.cpp:40
#define ANTIBOTAPI
Definition: antibot_interface.h:7
DYNAMIC_IMPORT void AntibotInit(CAntibotData *pCallbackData)
Definition: antibot_null.cpp:15
DYNAMIC_IMPORT void AntibotOnSpawn(int ClientId)
Definition: antibot_null.cpp:37
DYNAMIC_IMPORT void AntibotOnEngineClientDrop(int ClientId, const char *pReason)
Definition: antibot_null.cpp:46
Definition: antibot_data.h:85
Definition: antibot_data.h:98