Initial Lua Script implementation. Credit/Timer now renders.

This commit is contained in:
Justin Marshall
2020-06-10 17:50:06 -07:00
parent f230b5bd0f
commit 0b23dd5223
69 changed files with 24361 additions and 13 deletions
+20
View File
@@ -0,0 +1,20 @@
// MapScript.h
//
// Lua is written in C, so compiler needs to know how to link its libraries
extern "C" {
# include "lua.h"
# include "lauxlib.h"
# include "lualib.h"
}
//
// MapScript
//
class MapScript {
public:
bool Init(const char* mapName);
void CallFunction(const char* functionName);
private:
lua_State* L;
};