1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Reogranize callback-related classes on 1 file = 1 class basis

This commit is contained in:
Ivan Savenko
2025-05-11 11:58:09 +03:00
parent 29207c0b0f
commit 35644da2b7
217 changed files with 1670 additions and 1494 deletions

View File

@@ -0,0 +1,34 @@
/*
* CDynLibHandler.h, part of VCMI engine
*
* Authors: listed in file AUTHORS in main folder
*
* License: GNU General Public License v2.0 or later
* Full text of license available in license.txt file, in main folder
*
*/
#pragma once
VCMI_LIB_NAMESPACE_BEGIN
class CGlobalAI;
class CBattleGameInterface;
#if SCRIPTING_ENABLED
namespace scripting
{
class Module;
}
#endif
class DLL_LINKAGE CDynLibHandler
{
public:
static std::shared_ptr<CGlobalAI> getNewAI(const std::string & dllname);
static std::shared_ptr<CBattleGameInterface> getNewBattleAI(const std::string & dllname);
#if SCRIPTING_ENABLED
static std::shared_ptr<scripting::Module> getNewScriptingModule(const boost::filesystem::path & dllname);
#endif
};
VCMI_LIB_NAMESPACE_END