diff options
Diffstat (limited to 'src/client/lua_api/guiparts.hpp')
| -rw-r--r-- | src/client/lua_api/guiparts.hpp | 29 |
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 |
