aboutsummaryrefslogtreecommitdiff
path: root/src/shared/lua_api/common.h
diff options
context:
space:
mode:
authorAlexander Pickering <alexandermpickering@gmail.com>2017-10-18 21:34:55 -0400
committerAlexander Pickering <alexandermpickering@gmail.com>2017-10-18 21:34:55 -0400
commit33e6b9627e6a46d388d46f2c5b4d15ba7e9f9904 (patch)
tree18d24b74e48d8b7e9cb656272df7a48b28d3b6c8 /src/shared/lua_api/common.h
parent76b4fddee6106b60dbc6da6d7bcef61b42a3c310 (diff)
downloadbrokengine-33e6b9627e6a46d388d46f2c5b4d15ba7e9f9904.tar.gz
brokengine-33e6b9627e6a46d388d46f2c5b4d15ba7e9f9904.tar.bz2
brokengine-33e6b9627e6a46d388d46f2c5b4d15ba7e9f9904.zip
Started refactoring
* Finished a basic server * Changed from ZMQ to nanomsg (basically the same though) * Moved some repeated code from the client/server directories into "shared" * Edited makefile to reflect new dependencies
Diffstat (limited to 'src/shared/lua_api/common.h')
-rw-r--r--src/shared/lua_api/common.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/shared/lua_api/common.h b/src/shared/lua_api/common.h
new file mode 100644
index 0000000..81dc3a4
--- /dev/null
+++ b/src/shared/lua_api/common.h
@@ -0,0 +1,13 @@
+
+extern "C" {
+ #include <lua.h>
+ #include <lauxlib.h>
+ #include <lualib.h>
+}
+
+void loadLLibs(lua_State*);
+
+int pushvector3i(lua_State*,long,long,long);
+int pushvector3d(lua_State*,double,double,double);
+int popvector3i(lua_State*,long*,long*,long*);
+int popvector3d(lua_State*,double*,double*,double*);