aboutsummaryrefslogtreecommitdiff
path: root/src/client/lua_api/guiparts.hpp
blob: ea369b7756b3e6a08deab3ddf412533e1930658f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#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