Criada classe Mapa; scrolling
[Projeto-PCG.git] / luaenv.h
blob69bd33b319a5382f7b57cbd0adbfb587c78382cf
1 #ifndef SCRIPTLOADER_H
2 #define SCRIPTLOADER_H
4 extern "C" {
5 #include "lua/lua.h"
6 #include "lua/lauxlib.h"
7 #include "lua/lualib.h"
10 #include <string>
11 #include <vector>
13 class Script {
14 public:
15 std::string name;
16 lua_State* L;
17 Script(std::string name) { this->name = name; L = NULL;}
20 class luaRun {
21 public:
22 void loadScripts();
23 void registerScripts();
24 private:
25 void registerScript(const std::string name);
26 std::vector<Script> scripts;
29 #endif