exp_funcs.cpp 349 B

12345678910111213141516171819
  1. #include "StdInc.h"
  2. #include "CEmptyAI.h"
  3. std::set<CGlobalAI*> ais;
  4. extern "C" DLL_EXPORT int GetGlobalAiVersion()
  5. {
  6. return AI_INTERFACE_VER;
  7. }
  8. extern "C" DLL_EXPORT void GetAiName(char* name)
  9. {
  10. strcpy(name,NAME);
  11. }
  12. extern "C" DLL_EXPORT void GetNewAI(std::shared_ptr<CGlobalAI> &out)
  13. {
  14. out = std::make_shared<CEmptyAI>();
  15. }