mirror of
https://github.com/jmarshall23/CnC_Remastered_Collection.git
synced 2026-08-16 00:00:35 +02:00
Initial Lua Script implementation. Credit/Timer now renders.
This commit is contained in:
@@ -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;
|
||||
};
|
||||
Reference in New Issue
Block a user