2011-12-14 00:23:17 +03:00
|
|
|
#include "StdInc.h"
|
2011-06-20 14:41:04 +03:00
|
|
|
#include "ERMScriptModule.h"
|
2011-12-14 00:23:17 +03:00
|
|
|
|
2011-06-20 14:41:04 +03:00
|
|
|
#include "ERMInterpreter.h"
|
|
|
|
|
2011-06-22 15:44:28 +03:00
|
|
|
/*
|
|
|
|
* ERMScriptingModule.cpp, part of VCMI engine
|
|
|
|
*
|
|
|
|
* 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-06-20 14:41:04 +03:00
|
|
|
IGameEventRealizer *acb;
|
|
|
|
CPrivilagedInfoCallback *icb;
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __GNUC__
|
|
|
|
#define strcpy_s(a, b, c) strncpy(a, c, b)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
const char *g_cszAiName = "(V)ERM interpreter";
|
|
|
|
|
2011-12-14 00:23:17 +03:00
|
|
|
extern "C" DLL_EXPORT void GetAiName(char* name)
|
2011-06-20 14:41:04 +03:00
|
|
|
{
|
|
|
|
strcpy_s(name, strlen(g_cszAiName) + 1, g_cszAiName);
|
|
|
|
}
|
|
|
|
|
2013-06-23 00:47:51 +03:00
|
|
|
extern "C" DLL_EXPORT void GetNewModule(shared_ptr<CScriptingModule> &out)
|
2011-06-20 14:41:04 +03:00
|
|
|
{
|
2013-06-23 00:47:51 +03:00
|
|
|
out = make_shared<ERMInterpreter>();
|
2011-06-20 14:41:04 +03:00
|
|
|
}
|