1 
2 #ifndef LUA_HUD_SCRIPT_H
3 #define LUA_HUD_SCRIPT_H
4 /*
5 LUA_HUD_SCRIPT.H
6 
7     Copyright (C) 2009 by Jeremiah Morris and the Aleph One developers
8 
9     This program is free software; you can redistribute it and/or modify
10     it under the terms of the GNU General Public License as published by
11     the Free Software Foundation; either version 3 of the License, or
12     (at your option) any later version.
13 
14     This program is distributed in the hope that it will be useful,
15     but WITHOUT ANY WARRANTY; without even the implied warranty of
16     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17     GNU General Public License for more details.
18 
19     This license is contained in the file "COPYING",
20     which is included with this source code; it is available online at
21     http://www.gnu.org/licenses/gpl.html
22 
23     Implements Lua HUD state and trigger callbacks
24 */
25 
26 #include "cseries.h"
27 #include <string>
28 
29 void L_Call_HUDInit();
30 void L_Call_HUDCleanup();
31 void L_Call_HUDDraw();
32 void L_Call_HUDResize();
33 
34 bool LoadLuaHUDScript(const char *buffer, size_t len);
35 bool RunLuaHUDScript();
36 bool LuaHUDRunning();
37 void LoadHUDLua();
38 void CloseLuaHUDScript();
39 
40 void SetLuaHUDScriptPath(const std::string& path);
41 std::string GetLuaHUDScriptPath();
42 
43 void MarkLuaHUDCollections(bool loading);
44 
45 
46 #endif
47