summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/mlua_script_loader.h
blob: e7844b6e76496bb4d6fe560fe155e9202268b9ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef _LUA_SCRIPT_LOADER_H_
#define _LUA_SCRIPT_LOADER_H_

class CLuaScriptLoader
{
private:
	lua_State *L;

	CLuaScriptLoader(lua_State *L);

	void RegisterScriptsFolder(const char *path);

	void LoadScript(const TCHAR *scriptDir, const TCHAR *file, int iGroup = 0);
	void LoadScripts(const TCHAR *scriptDir, int iGroup = 0);

public:
	static void Load(lua_State *L);
};

#endif //_LUA_SCRIPT_LOADER_H_