mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Merge #3928
3928: Properly export antibot DLL symbols on Windows r=def- a=heinrich5991 Supersedes #3917. ## Checklist - [ ] Tested the change ingame - [ ] Provided screenshots if it is a visual change - [ ] Tested in combination with possibly related configuration options - [ ] Written a unit test if it works standalone, system.c especially - [ ] Considered possible null pointers and out of bounds array indexing - [ ] Changed no physics that affect existing maps - [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addresssanitizer--undefinedbehavioursanitizer-or-valgrinds-memcheck) (optional) Co-authored-by: heinrich5991 <heinrich5991@gmail.com>
This commit is contained in:
commit
0bac9ab9d0
|
@ -1,29 +1,35 @@
|
|||
#ifndef ANTIBOT_ANTIBOT_INTERFACE_H
|
||||
#define ANTIBOT_ANTIBOT_INTERFACE_H
|
||||
|
||||
#include <base/dynamic.h>
|
||||
|
||||
#ifndef ANTIBOTAPI
|
||||
#define ANTIBOTAPI DYNAMIC_IMPORT
|
||||
#endif
|
||||
|
||||
#include "antibot_data.h"
|
||||
extern "C" {
|
||||
|
||||
int AntibotAbiVersion();
|
||||
void AntibotInit(CAntibotData *pCallbackData);
|
||||
void AntibotRoundStart(CAntibotRoundData *pRoundData);
|
||||
void AntibotRoundEnd(void);
|
||||
void AntibotUpdateData(void);
|
||||
void AntibotDestroy(void);
|
||||
void AntibotDump(void);
|
||||
void AntibotOnPlayerInit(int ClientID);
|
||||
void AntibotOnPlayerDestroy(int ClientID);
|
||||
void AntibotOnSpawn(int ClientID);
|
||||
void AntibotOnHammerFireReloading(int ClientID);
|
||||
void AntibotOnHammerFire(int ClientID);
|
||||
void AntibotOnHammerHit(int ClientID);
|
||||
void AntibotOnDirectInput(int ClientID);
|
||||
void AntibotOnCharacterTick(int ClientID);
|
||||
void AntibotOnHookAttach(int ClientID, bool Player);
|
||||
void AntibotOnEngineTick(void);
|
||||
void AntibotOnEngineClientJoin(int ClientID, bool Sixup);
|
||||
void AntibotOnEngineClientDrop(int ClientID, const char *pReason);
|
||||
void AntibotOnEngineClientMessage(int ClientID, const void *pData, int Size, int Flags);
|
||||
ANTIBOTAPI int AntibotAbiVersion();
|
||||
ANTIBOTAPI void AntibotInit(CAntibotData *pCallbackData);
|
||||
ANTIBOTAPI void AntibotRoundStart(CAntibotRoundData *pRoundData);
|
||||
ANTIBOTAPI void AntibotRoundEnd(void);
|
||||
ANTIBOTAPI void AntibotUpdateData(void);
|
||||
ANTIBOTAPI void AntibotDestroy(void);
|
||||
ANTIBOTAPI void AntibotDump(void);
|
||||
ANTIBOTAPI void AntibotOnPlayerInit(int ClientID);
|
||||
ANTIBOTAPI void AntibotOnPlayerDestroy(int ClientID);
|
||||
ANTIBOTAPI void AntibotOnSpawn(int ClientID);
|
||||
ANTIBOTAPI void AntibotOnHammerFireReloading(int ClientID);
|
||||
ANTIBOTAPI void AntibotOnHammerFire(int ClientID);
|
||||
ANTIBOTAPI void AntibotOnHammerHit(int ClientID);
|
||||
ANTIBOTAPI void AntibotOnDirectInput(int ClientID);
|
||||
ANTIBOTAPI void AntibotOnCharacterTick(int ClientID);
|
||||
ANTIBOTAPI void AntibotOnHookAttach(int ClientID, bool Player);
|
||||
ANTIBOTAPI void AntibotOnEngineTick(void);
|
||||
ANTIBOTAPI void AntibotOnEngineClientJoin(int ClientID, bool Sixup);
|
||||
ANTIBOTAPI void AntibotOnEngineClientDrop(int ClientID, const char *pReason);
|
||||
ANTIBOTAPI void AntibotOnEngineClientMessage(int ClientID, const void *pData, int Size, int Flags);
|
||||
}
|
||||
|
||||
#endif // ANTIBOT_ANTIBOT_INTERFACE_H
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
#define ANTIBOTAPI DYNAMIC_EXPORT
|
||||
|
||||
#include "antibot_data.h"
|
||||
|
||||
static CAntibotData *g_pData;
|
||||
|
|
Loading…
Reference in a new issue