dl
dl::LuaScript类 参考

lua脚本语言 更多...

#include <dl_lua.h>

类

struct  Env
 

Public 成员函数

 LuaScript ()
 
 ~LuaScript ()
 
void SetPathRoot (std::string_view str)
 设置加载根路径
 
bool DoFile (std::string_view path_name)
 
bool ExcuteFunction (std::string_view name)
 
template<typename T, typename ... Args>
bool ExcuteFunction (std::string_view name, Args &&... args)
 
Env & GetEnv ()
 
lua_State * GetL ()
 

详细描述

lua脚本语言

在文件 dl_lua.h 第 31 行定义.

构造及析构函数说明

◆ LuaScript()

dl::LuaScript::LuaScript ( )

◆ ~LuaScript()

dl::LuaScript::~LuaScript ( )

成员函数说明

◆ DoFile()

bool dl::LuaScript::DoFile ( std::string_view path_name)

◆ ExcuteFunction() [1/2]

bool dl::LuaScript::ExcuteFunction ( std::string_view name)
inline

在文件 dl_lua.h 第 49 行定义.

◆ ExcuteFunction() [2/2]

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

在文件 dl_lua.h 第 62 行定义.

◆ GetEnv()

Env & dl::LuaScript::GetEnv ( )
inline

在文件 dl_lua.h 第 75 行定义.

◆ GetL()

lua_State * dl::LuaScript::GetL ( )
inline

在文件 dl_lua.h 第 76 行定义.

◆ SetPathRoot()

void dl::LuaScript::SetPathRoot ( std::string_view str)
inline

设置加载根路径

在文件 dl_lua.h 第 44 行定义.


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