ERMScriptModule.cpp 453 B

12345678910111213141516171819202122
  1. #include "ERMScriptModule.h"
  2. #include "ERMInterpreter.h"
  3. IGameEventRealizer *acb;
  4. CPrivilagedInfoCallback *icb;
  5. #ifdef __GNUC__
  6. #define strcpy_s(a, b, c) strncpy(a, c, b)
  7. #endif
  8. const char *g_cszAiName = "(V)ERM interpreter";
  9. extern "C" DLL_F_EXPORT void GetAiName(char* name)
  10. {
  11. strcpy_s(name, strlen(g_cszAiName) + 1, g_cszAiName);
  12. }
  13. extern "C" DLL_F_EXPORT CScriptingModule* GetNewModule()
  14. {
  15. return new ERMInterpreter();
  16. }