mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-26 22:57:00 +02:00
7087be1f02
+ workspace file (not include ERM and Battle AI) + project files * svn:ignore setup
31 lines
533 B
C++
31 lines
533 B
C++
#include "StdInc.h"
|
|
|
|
#include "CEmptyAI.h"
|
|
|
|
std::set<CGlobalAI*> ais;
|
|
extern "C" DLL_EXPORT int GetGlobalAiVersion()
|
|
{
|
|
return AI_INTERFACE_VER;
|
|
}
|
|
|
|
extern "C" DLL_EXPORT void GetAiName(char* name)
|
|
{
|
|
strcpy(name,NAME);
|
|
}
|
|
extern "C" DLL_EXPORT char * GetAiNameS()
|
|
{
|
|
char * ret = new char[50];
|
|
strcpy(ret,NAME);
|
|
return ret;
|
|
}
|
|
extern "C" DLL_EXPORT CGlobalAI * GetNewAI()
|
|
{
|
|
return new CEmptyAI();
|
|
// return
|
|
}
|
|
extern "C" DLL_EXPORT void ReleaseAI(CGlobalAI * i)
|
|
{
|
|
delete (CEmptyAI*)i;
|
|
ais.erase(i);
|
|
}
|