aboutsummaryrefslogtreecommitdiff
path: root/src/client/lua_api/load_game.cpp
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/load_game.cpp
downloadbrokengine-d2b36e6c65ec8126c0ebc96adb7e011e78a5eacc.tar.gz
brokengine-d2b36e6c65ec8126c0ebc96adb7e011e78a5eacc.tar.bz2
brokengine-d2b36e6c65ec8126c0ebc96adb7e011e78a5eacc.zip
Initial commit
Diffstat (limited to 'src/client/lua_api/load_game.cpp')
-rw-r--r--src/client/lua_api/load_game.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/client/lua_api/load_game.cpp b/src/client/lua_api/load_game.cpp
new file mode 100644
index 0000000..fb51595
--- /dev/null
+++ b/src/client/lua_api/load_game.cpp
@@ -0,0 +1,24 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <vector>
+#include <map>
+extern "C" {
+ #include <lua.h>
+ #include <lauxlib.h>
+ #include <lualib.h>
+}
+#include <irrlicht.h>
+
+#include "gui/iguibutton.hpp"
+#include "gui/iguilabel.hpp"
+#include "../callbackhandeler.hpp"
+#include "guiparts.hpp"
+
+using namespace irr;
+using namespace gui;
+using namespace core;
+
+void load_gamefuncs(lua_State* L, IrrlichtDevice* d){
+ lua_newtable(L);
+ lua_setglobal(L,"GAME");
+}