ERMScriptModule.cpp 700 B

1234567891011121314151617181920212223242526272829303132
  1. #include "ERMScriptModule.h"
  2. #include "ERMInterpreter.h"
  3. /*
  4. * ERMScriptingModule.cpp, part of VCMI engine
  5. *
  6. * Authors: listed in file AUTHORS in main folder
  7. *
  8. * License: GNU General Public License v2.0 or later
  9. * Full text of license available in license.txt file, in main folder
  10. *
  11. */
  12. IGameEventRealizer *acb;
  13. CPrivilagedInfoCallback *icb;
  14. #ifdef __GNUC__
  15. #define strcpy_s(a, b, c) strncpy(a, c, b)
  16. #endif
  17. const char *g_cszAiName = "(V)ERM interpreter";
  18. extern "C" DLL_F_EXPORT void GetAiName(char* name)
  19. {
  20. strcpy_s(name, strlen(g_cszAiName) + 1, g_cszAiName);
  21. }
  22. extern "C" DLL_F_EXPORT CScriptingModule* GetNewModule()
  23. {
  24. return new ERMInterpreter();
  25. }