exp_funcs.cpp 414 B

12345678910111213141516171819202122232425
  1. #include "../../AI_Base.h"
  2. #include "CEmptyAI.h"
  3. #include <cstring>
  4. #include <set>
  5. std::set<CAIBase*> ais;
  6. DLL_EXPORT int GetGlobalAiVersion()
  7. {
  8. return AI_INTERFACE_VER;
  9. }
  10. DLL_EXPORT void GetAiName(char* name)
  11. {
  12. strcpy(name,NAME);
  13. }
  14. DLL_EXPORT CAIBase * GetNewAI()
  15. {
  16. return new CEmptyAI();
  17. // return
  18. }
  19. DLL_EXPORT void ReleaseAI(CAIBase * i)
  20. {
  21. //delete (TTAICore*)i;
  22. //ais.erase(i);
  23. }