30 lines
261 B
C++
30 lines
261 B
C++
|
#ifndef PW_SCRIPT_HPP
|
||
|
#define PW_SCRIPT_HPP
|
||
|
|
||
|
#include <lua.hpp>
|
||
|
#include <memory>
|
||
|
#include <sol.hpp>
|
||
|
|
||
|
namespace pw {
|
||
|
|
||
|
class script {
|
||
|
|
||
|
sol::state _lua;
|
||
|
|
||
|
public:
|
||
|
|
||
|
script();
|
||
|
~script();
|
||
|
|
||
|
bool update();
|
||
|
|
||
|
void run(const char* s);
|
||
|
|
||
|
};
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
#endif
|