dl
dl::LuaScript类 参考

lua脚本语言 更多...

#include <dl_lua.h>

类

struct  Env
 

Public 成员函数

 LuaScript ()
 
 ~LuaScript ()
 
void SetPathRoot (std::string_view str)
 设置加载根路径
 
bool DoString (std::string_view str)
 
bool DoFile (std::string_view path_name)
 
bool ExcuteFunction (luabridge::LuaRef func)
 
Env & GetEnv ()
 
lua_State * GetL ()
 
void RegisterAll ()
 

详细描述

lua脚本语言

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

构造及析构函数说明

◆ LuaScript()

dl::LuaScript::LuaScript ( )

◆ ~LuaScript()

dl::LuaScript::~LuaScript ( )

成员函数说明

◆ DoFile()

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

◆ DoString()

bool dl::LuaScript::DoString ( std::string_view str)

◆ ExcuteFunction()

bool dl::LuaScript::ExcuteFunction ( luabridge::LuaRef func)

◆ GetEnv()

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

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

◆ GetL()

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

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

◆ RegisterAll()

void dl::LuaScript::RegisterAll ( )

◆ SetPathRoot()

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

设置加载根路径

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


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