main.cpp 528 B

123456789101112131415161718192021222324252627
  1. /*
  2. * main.cpp, part of VCMI engine
  3. *
  4. * Authors: listed in file AUTHORS in main folder
  5. *
  6. * License: GNU General Public License v2.0 or later
  7. * Full text of license available in license.txt file, in main folder
  8. *
  9. */
  10. #include "StdInc.h"
  11. #include "CEmptyAI.h"
  12. extern "C" DLL_EXPORT int GetGlobalAiVersion()
  13. {
  14. return AI_INTERFACE_VER;
  15. }
  16. extern "C" DLL_EXPORT void GetAiName(char* name)
  17. {
  18. strcpy(name,NAME);
  19. }
  20. extern "C" DLL_EXPORT void GetNewAI(std::shared_ptr<CGlobalAI> &out)
  21. {
  22. out = std::make_shared<CEmptyAI>();
  23. }