dl
dl::AngelScript类 参考

AngelScirpt脚本语言(低优先级支持,或废弃) 更多...

#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 ()
 

详细描述

AngelScirpt脚本语言(低优先级支持,或废弃)

在文件 dl_as.h25 行定义.

构造及析构函数说明

◆ AngelScript()

dl::AngelScript::AngelScript ( )

◆ ~AngelScript()

dl::AngelScript::~AngelScript ( )

成员函数说明

◆ ExcuteFunction()

template<typename T, typename ... Args>
bool dl::AngelScript::ExcuteFunction ( std::string_view name,
std::string_view func_decl,
T & ret,
Args &&... args )
inline

执行模块

参数
[in]name模块名
[in]func_decl函数声明
[out]ret返回值
[in]...参数

在文件 dl_as.h80 行定义.

◆ ExcuteModule()

void dl::AngelScript::ExcuteModule ( std::string_view name)

执行模块

参数
[in]name模块名

◆ GetEngine()

asIScriptEngine * dl::AngelScript::GetEngine ( )
inline

在文件 dl_as.h110 行定义.

◆ GetModuleFunction()

asIScriptFunction * dl::AngelScript::GetModuleFunction ( std::string_view name,
std::string_view func_decl )

获取模块函数

参数
[in]name模块名
[in]func_decl函数声明

◆ LoadModule()

void dl::AngelScript::LoadModule ( std::string_view path_name,
std::string_view name = {} )

加载模块

参数
[in]path_name路径
[in]name模块名(为空自动生成)

◆ RegisterPointer()

int dl::AngelScript::RegisterPointer ( std::string_view name)

注册指针类型

参数
[in]name模块名

◆ SetFileExt()

void dl::AngelScript::SetFileExt ( std::string_view str)

◆ SetNamePrefix()

void dl::AngelScript::SetNamePrefix ( std::string_view str)

◆ SetPathRoot()

void dl::AngelScript::SetPathRoot ( std::string_view str)

设置加载根路径

◆ UnloadModule()

void dl::AngelScript::UnloadModule ( std::string_view name)

卸载模块

参数
[in]name模块名

该类的文档由以下文件生成: