mirror of
https://github.com/jmarshall23/CnC_Remastered_Collection.git
synced 2026-08-13 00:20:54 +02:00
4a7a3df2cc
Added scripts path to Lua so that Lua can find scripts within scripts/
25 lines
412 B
C++
25 lines
412 B
C++
// MapScript.h
|
|
//
|
|
|
|
#ifndef MAPSCRIPT_H
|
|
#define 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);
|
|
void SetLuaPath(const char* input_path);
|
|
private:
|
|
lua_State* L;
|
|
};
|
|
#endif |