aboutsummaryrefslogtreecommitdiff
path: root/src/client/lua_api/guiparts.hpp
diff options
context:
space:
mode:
authorAlexander Pickering <alexandermpickering@gmail.com>2016-11-01 00:28:16 -0400
committerAlexander Pickering <alexandermpickering@gmail.com>2016-11-01 00:28:16 -0400
commitd2b36e6c65ec8126c0ebc96adb7e011e78a5eacc (patch)
tree9e005502ea2c125c90b5011f573f381f84ade0ef /src/client/lua_api/guiparts.hpp
downloadbrokengine-d2b36e6c65ec8126c0ebc96adb7e011e78a5eacc.tar.gz
brokengine-d2b36e6c65ec8126c0ebc96adb7e011e78a5eacc.tar.bz2
brokengine-d2b36e6c65ec8126c0ebc96adb7e011e78a5eacc.zip
Initial commit
Diffstat (limited to 'src/client/lua_api/guiparts.hpp')
-rw-r--r--src/client/lua_api/guiparts.hpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/client/lua_api/guiparts.hpp b/src/client/lua_api/guiparts.hpp
new file mode 100644
index 0000000..fba3862
--- /dev/null
+++ b/src/client/lua_api/guiparts.hpp
@@ -0,0 +1,29 @@
+#ifndef __H_guiparts
+#define __H_guiparts
+#include <stdio.h>
+#include <stdlib.h>
+#include <vector>
+#include <map>
+#include <string>
+extern "C" {
+ #include <lua.h>
+ #include <lauxlib.h>
+ #include <lualib.h>
+}
+#include <irrlicht.h>
+#include "../util/hashmap.h"
+
+
+typedef struct LIGUIElement {
+ irr::gui::IGUIElement* e;
+ map_t funcmap;
+ const char* type;
+} LIGUIElement;
+
+
+extern lua_State* tL;
+extern irr::IrrlichtDevice* guidevice;
+extern long gui_elenum;
+extern std::vector<irr::gui::IGUIElement*> guielements;
+extern std::map<irr::gui::IGUIElement*,int> iguielements;
+#endif