bit of playing around on Linux
This commit is contained in:
parent
ac18a84a9c
commit
6461a56e17
11 changed files with 96 additions and 102 deletions
29
src/core/script.hpp
Normal file
29
src/core/script.hpp
Normal file
|
@ -0,0 +1,29 @@
|
|||
#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
|
Loading…
Add table
Add a link
Reference in a new issue