18#include <unordered_map>
20#define SOL_ALL_SAFETIES_ON 1
21#define SOL_PRINT_ERRORS 0
43 void SetPathRoot(std::string_view str) { _pathRoot = std::string{ str }; }
47 bool DoFile(std::string_view path_name);
52 sol::state&
GetL() {
return _l; }
58 std::string _pathRoot;
bool DoFile(std::string_view path_name)
void SetPathRoot(std::string_view str)
设置加载根路径
bool DoString(std::string_view str)
bool ExcuteFunction(sol::function func)