|
dl
|
#include <dl_as.h>
类 | |
| struct | ModuleInfo |
Public 成员函数 | |
| AngelScript () | |
| void | SetPathRoot (std::string_view str) |
| 设置加载根路径 | |
| void | SetFileExt (std::string_view str) |
| void | SetNamePrefix (std::string_view str) |
| void | LoadModule (std::string_view path_name, std::string_view name={}) |
| 加载模块 | |
| void | UnloadModule (std::string_view name) |
| 卸载模块 | |
| int | RegisterPointer (std::string_view name) |
| 注册指针类型 | |
| asIScriptFunction * | GetModuleFunction (std::string_view name, std::string_view func_decl) |
| 获取模块函数 | |
| void | ExcuteModule (std::string_view name) |
| 执行模块 | |
| template<typename T, typename ... Args> | |
| bool | ExcuteFunction (std::string_view name, std::string_view func_decl, T &ret, Args &&... args) |
| 执行模块 | |
| asIScriptEngine * | GetEngine () |
| ~AngelScript () | |
| dl::AngelScript::AngelScript | ( | ) |
| dl::AngelScript::~AngelScript | ( | ) |
| void dl::AngelScript::ExcuteModule | ( | std::string_view | name | ) |
执行模块
| [in] | name | 模块名 |
| asIScriptFunction * dl::AngelScript::GetModuleFunction | ( | std::string_view | name, |
| std::string_view | func_decl ) |
获取模块函数
| [in] | name | 模块名 |
| [in] | func_decl | 函数声明 |
| void dl::AngelScript::LoadModule | ( | std::string_view | path_name, |
| std::string_view | name = {} ) |
加载模块
| [in] | path_name | 路径 |
| [in] | name | 模块名(为空自动生成) |
| int dl::AngelScript::RegisterPointer | ( | std::string_view | name | ) |
注册指针类型
| [in] | name | 模块名 |
| void dl::AngelScript::SetFileExt | ( | std::string_view | str | ) |
| void dl::AngelScript::SetNamePrefix | ( | std::string_view | str | ) |
| void dl::AngelScript::SetPathRoot | ( | std::string_view | str | ) |
设置加载根路径
| void dl::AngelScript::UnloadModule | ( | std::string_view | name | ) |
卸载模块
| [in] | name | 模块名 |