mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-12 10:03:53 +02:00
25 lines
414 B
C++
25 lines
414 B
C++
|
#include "../../AI_Base.h"
|
||
|
#include "CEmptyAI.h"
|
||
|
#include <cstring>
|
||
|
#include <set>
|
||
|
std::set<CAIBase*> ais;
|
||
|
|
||
|
DLL_EXPORT int GetGlobalAiVersion()
|
||
|
{
|
||
|
return AI_INTERFACE_VER;
|
||
|
}
|
||
|
|
||
|
DLL_EXPORT void GetAiName(char* name)
|
||
|
{
|
||
|
strcpy(name,NAME);
|
||
|
}
|
||
|
DLL_EXPORT CAIBase * GetNewAI()
|
||
|
{
|
||
|
return new CEmptyAI();
|
||
|
// return
|
||
|
}
|
||
|
DLL_EXPORT void ReleaseAI(CAIBase * i)
|
||
|
{
|
||
|
//delete (TTAICore*)i;
|
||
|
//ais.erase(i);
|
||
|
}
|