19 lines
416 B
C++
19 lines
416 B
C++
#pragma once
|
|
|
|
#include <sol/sol.hpp>
|
|
#include <vector>
|
|
#include <vfs.h>
|
|
#include <string>
|
|
|
|
class LuaProcessor {
|
|
public:
|
|
LuaProcessor(void);
|
|
~LuaProcessor(void);
|
|
|
|
/* Executes a string of lua code and returns result as a string. */
|
|
sol::object execute(const std::string& script, vfs_node* current_dir,
|
|
const std::vector<std::string>& args, bool is_remote);
|
|
private:
|
|
sol::state _lua;
|
|
};
|