diff Engine/LuaVM.h @ 2499:68cdef6879a0

engine folder
author Ritor1
date Fri, 19 Sep 2014 02:57:42 +0600
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Engine/LuaVM.h	Fri Sep 19 02:57:42 2014 +0600
@@ -0,0 +1,16 @@
+#pragma once
+
+class LuaVM
+{
+  public:
+    inline LuaVM(): L(nullptr) {}
+
+    void Initialize();
+    bool DoFile(const char *filename);
+
+  protected:
+    struct lua_State *L;
+    
+    const char *GetScriptFileLocation(const char *script_name);
+};
+extern LuaVM *lua;
\ No newline at end of file