2008-11-25 20:51:44 +02:00
|
|
|
#pragma warning (disable: 4100 4251 4245 4018 4081)
|
|
|
|
#include "../../AI_Base.h"
|
|
|
|
#pragma warning (default: 4100 4251 4245 4018 4081)
|
|
|
|
|
|
|
|
#include "CGeniusAI.h"
|
|
|
|
|
2009-10-23 01:04:42 +03:00
|
|
|
using namespace geniusai;
|
2008-11-25 20:51:44 +02:00
|
|
|
|
|
|
|
const char *g_cszAiName = "Genius 1.0";
|
|
|
|
|
2009-08-05 15:24:31 +03:00
|
|
|
extern "C" DLL_F_EXPORT int GetGlobalAiVersion()
|
2008-11-25 20:51:44 +02:00
|
|
|
{
|
|
|
|
return AI_INTERFACE_VER;
|
|
|
|
}
|
|
|
|
|
2009-08-05 15:24:31 +03:00
|
|
|
extern "C" DLL_F_EXPORT void GetAiName(char* name)
|
2008-11-25 20:51:44 +02:00
|
|
|
{
|
|
|
|
strcpy_s(name, strlen(g_cszAiName) + 1, g_cszAiName);
|
|
|
|
}
|
|
|
|
|
2009-08-05 15:24:31 +03:00
|
|
|
extern "C" DLL_F_EXPORT char* GetAiNameS()
|
2008-11-25 20:51:44 +02:00
|
|
|
{
|
2009-05-10 11:15:30 +03:00
|
|
|
// need to be defined
|
|
|
|
return NULL;
|
2008-11-25 20:51:44 +02:00
|
|
|
}
|
|
|
|
|
2009-08-05 15:24:31 +03:00
|
|
|
extern "C" DLL_F_EXPORT CGlobalAI* GetNewAI()
|
2008-11-25 20:51:44 +02:00
|
|
|
{
|
|
|
|
return new CGeniusAI();
|
|
|
|
}
|
|
|
|
|
2009-08-05 15:24:31 +03:00
|
|
|
extern "C" DLL_F_EXPORT void ReleaseAI(CGlobalAI* i)
|
2008-11-25 20:51:44 +02:00
|
|
|
{
|
|
|
|
delete (CGeniusAI*)i;
|
|
|
|
}
|