2017-07-13 10:26:03 +02:00
|
|
|
/*
|
2023-02-28 12:08:58 +02:00
|
|
|
* main.cpp, part of VCMI engine
|
2017-07-13 10:26:03 +02:00
|
|
|
*
|
|
|
|
* Authors: listed in file AUTHORS in main folder
|
|
|
|
*
|
|
|
|
* License: GNU General Public License v2.0 or later
|
|
|
|
* Full text of license available in license.txt file, in main folder
|
|
|
|
*
|
|
|
|
*/
|
2011-12-14 00:23:17 +03:00
|
|
|
#include "StdInc.h"
|
|
|
|
|
2007-10-17 01:41:45 +03:00
|
|
|
#include "CEmptyAI.h"
|
2011-12-14 00:23:17 +03:00
|
|
|
|
2007-10-21 19:45:13 +03:00
|
|
|
std::set<CGlobalAI*> ais;
|
2012-09-15 21:44:55 +03:00
|
|
|
extern "C" DLL_EXPORT int GetGlobalAiVersion()
|
2007-10-17 01:41:45 +03:00
|
|
|
{
|
|
|
|
return AI_INTERFACE_VER;
|
|
|
|
}
|
|
|
|
|
2012-09-15 21:44:55 +03:00
|
|
|
extern "C" DLL_EXPORT void GetAiName(char* name)
|
2007-10-17 01:41:45 +03:00
|
|
|
{
|
|
|
|
strcpy(name,NAME);
|
|
|
|
}
|
2013-06-23 00:47:51 +03:00
|
|
|
|
2015-12-29 04:43:33 +02:00
|
|
|
extern "C" DLL_EXPORT void GetNewAI(std::shared_ptr<CGlobalAI> &out)
|
2007-10-17 01:41:45 +03:00
|
|
|
{
|
2015-12-29 04:43:33 +02:00
|
|
|
out = std::make_shared<CEmptyAI>();
|
2017-07-13 10:26:03 +02:00
|
|
|
}
|