18#include <unordered_map>
20#define LUA_USE_APICHECK
24#define LUABRIDGE_DISABLE_CXX20_SPAN
26#include <LuaBridge/LuaBridge.h>
47 void SetPathRoot(std::string_view str) { _pathRoot = std::string{ str }; }
51 bool DoFile(std::string_view path_name);
82 lua_State*
GetL() {
return L; }
89 std::string _pathRoot;
bool ExcuteFunction(luabridge::LuaRef func)
bool DoFile(std::string_view path_name)
void SetPathRoot(std::string_view str)
设置加载根路径
bool DoString(std::string_view str)