mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-18 17:40:48 +02:00
4a0587d500
Dynamic libraries return smart-pointers to what they create.
19 lines
339 B
C++
19 lines
339 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 void GetNewAI(shared_ptr<CGlobalAI> &out)
|
|
{
|
|
out = make_shared<CEmptyAI>();
|
|
} |