CDynLibHandler.h 756 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * CDynLibHandler.h, 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. #pragma once
  11. VCMI_LIB_NAMESPACE_BEGIN
  12. class CGlobalAI;
  13. class CBattleGameInterface;
  14. #if SCRIPTING_ENABLED
  15. namespace scripting
  16. {
  17. class Module;
  18. }
  19. #endif
  20. class DLL_LINKAGE CDynLibHandler
  21. {
  22. public:
  23. static std::shared_ptr<CGlobalAI> getNewAI(const std::string & dllname);
  24. static std::shared_ptr<CBattleGameInterface> getNewBattleAI(const std::string & dllname);
  25. #if SCRIPTING_ENABLED
  26. static std::shared_ptr<scripting::Module> getNewScriptingModule(const boost::filesystem::path & dllname);
  27. #endif
  28. };
  29. VCMI_LIB_NAMESPACE_END