mirror of
https://github.com/vcmi/vcmi.git
synced 2026-05-16 09:28:24 +02:00
826db7e548
- 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
31 lines
698 B
C++
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
|