1
0
mirror of https://github.com/vcmi/vcmi.git synced 2026-05-16 09:28:24 +02:00
Files
vcmi/lib/callback/CDynLibHandler.h
T
Ivan Savenko 826db7e548 Lua refactoring part 1
- Scripting module and lua dependency are now required.
- Script context pool now only exists in gamestate
- removed unused pools from client and server
- scripts are now registered in pools on start instead of lazy
registering with caching
2026-04-30 18:00:30 +03:00

31 lines
698 B
C++

/*
* 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;
namespace scripting
{
class Module;
}
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);
static std::shared_ptr<scripting::Module> getNewScriptingModule(const boost::filesystem::path & dllname);
};
VCMI_LIB_NAMESPACE_END