载入中...
搜索中...
未找到
eve::plugins::Plugins类 参考
加载导出 eve_plugin_init 的原生动态库(dll / so / dylib)。 更多...
#include <Plugins.h>
类 eve::plugins::Plugins 继承关系图:
Public 成员函数 | |
| Module_REG (Plugins) | |
| Plugins () | |
| ~Plugins () override | |
| bool | load (const std::string &path) |
| 加载插件;路径可为绝对路径或游戏相对路径。 | |
| bool | unload (const std::string &path) |
| 插件为进程期驻留;该兼容方法始终返回 false。 | |
| bool | isLoaded (const std::string &path) const |
| 插件是否已加载。 | |
Public 成员函数 继承自 eve::Module | |
| virtual | ~Module () |
| Module. | |
| virtual std::string | getName () const =0 |
| Returns the name. | |
详细描述
构造及析构函数说明
◆ Plugins()
|
default |
◆ ~Plugins()
|
override |
在文件 Plugins.cpp 第 33 行定义.
成员函数说明
◆ isLoaded()
| bool eve::plugins::Plugins::isLoaded | ( | const std::string & | path | ) | const |
◆ load()
| bool eve::plugins::Plugins::load | ( | const std::string & | path | ) |
加载插件;路径可为绝对路径或游戏相对路径。
在文件 Plugins.cpp 第 39 行定义.
引用了 eve::ModuleManager::beginPluginRegistration(), error, eve::ModuleManager::expose_pending(), eve::ModuleManager::finishPluginRegistration() , 以及 path.
◆ Module_REG()
| eve::plugins::Plugins::Module_REG | ( | Plugins | ) |
◆ unload()
| bool eve::plugins::Plugins::unload | ( | const std::string & | path | ) |
该类的文档由以下文件生成:
- src/modules/plugins/Plugins.h
- src/modules/plugins/Plugins.cpp
Public 成员函数 继承自