Working on web, change python to lua
This commit is contained in:
1 parent
90e2a369f4
commit
178f69967b
14 files changed
+327
-162
No files matched your search
+3
-5
@@ -2,9 +2,6 @@
|
||||
#include <string>
|
||||
#include <memory>
|
||||
|
||||
// Forward-declare the heavy pybind11 type so including this header stays cheap.
|
||||
namespace pybind11 { class scoped_interpreter; }
|
||||
|
||||
namespace ZL {
|
||||
|
||||
class Game;
|
||||
@@ -17,11 +14,12 @@ public:
|
||||
// Must be called once, after the Game's NPCs are ready.
|
||||
void init(Game* game);
|
||||
|
||||
// Execute a Python script file. Logs errors to stderr.
|
||||
// Execute a Lua script file. Logs errors to stderr.
|
||||
void runScript(const std::string& path);
|
||||
|
||||
private:
|
||||
std::unique_ptr<pybind11::scoped_interpreter> interpreter;
|
||||
struct Impl;
|
||||
std::unique_ptr<Impl> impl;
|
||||
};
|
||||
|
||||
} // namespace ZL
|
||||
Reference in new issue
Block a user