1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-18 17:40:48 +02:00
vcmi/AI/EmptyAI/exp_funcs.cpp
Ivan Savenko 91c0ce33f4 - re-generated build system
- fixed several gcc issues
2011-12-31 10:03:29 +00:00

31 lines
538 B
C++

#include "StdInc.h"
#include "CEmptyAI.h"
std::set<CGlobalAI*> ais;
extern "C" DLL_LINKAGE int GetGlobalAiVersion()
{
return AI_INTERFACE_VER;
}
extern "C" DLL_LINKAGE void GetAiName(char* name)
{
strcpy(name,NAME);
}
extern "C" DLL_LINKAGE char * GetAiNameS()
{
char * ret = new char[50];
strcpy(ret,NAME);
return ret;
}
extern "C" DLL_LINKAGE CGlobalAI * GetNewAI()
{
return new CEmptyAI();
// return
}
extern "C" DLL_LINKAGE void ReleaseAI(CGlobalAI * i)
{
delete (CEmptyAI*)i;
ais.erase(i);
}