summaryrefslogtreecommitdiffstats
path: root/src/Bindings
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-03-12 14:42:04 +0100
committermadmaxoft <github@xoft.cz>2014-03-12 14:42:04 +0100
commitf2df33f746936e8dd0dba69e7d77723df8c71472 (patch)
tree9a2a49460ed9cf57f69a2e9b0e07cf9a6086a02a /src/Bindings
parentFixed Lua string return values. (diff)
parentVector3: Length() should always return a float (diff)
downloadcuberite-f2df33f746936e8dd0dba69e7d77723df8c71472.tar
cuberite-f2df33f746936e8dd0dba69e7d77723df8c71472.tar.gz
cuberite-f2df33f746936e8dd0dba69e7d77723df8c71472.tar.bz2
cuberite-f2df33f746936e8dd0dba69e7d77723df8c71472.tar.lz
cuberite-f2df33f746936e8dd0dba69e7d77723df8c71472.tar.xz
cuberite-f2df33f746936e8dd0dba69e7d77723df8c71472.tar.zst
cuberite-f2df33f746936e8dd0dba69e7d77723df8c71472.zip
Diffstat (limited to 'src/Bindings')
-rw-r--r--src/Bindings/AllToLua.pkg11
-rw-r--r--src/Bindings/LuaState.h3
2 files changed, 9 insertions, 5 deletions
diff --git a/src/Bindings/AllToLua.pkg b/src/Bindings/AllToLua.pkg
index 2676281f9..1cd7c74f8 100644
--- a/src/Bindings/AllToLua.pkg
+++ b/src/Bindings/AllToLua.pkg
@@ -11,6 +11,7 @@ typedef unsigned int UInt32;
typedef unsigned short UInt16;
+$cfile "../Vector3.h"
$cfile "../ChunkDef.h"
$cfile "../BiomeDef.h"
@@ -62,10 +63,6 @@ $cfile "../BlockEntities/MobHeadEntity.h"
$cfile "../BlockEntities/FlowerPotEntity.h"
$cfile "../WebAdmin.h"
$cfile "../Root.h"
-$cfile "../Vector3f.h"
-$cfile "../Vector3d.h"
-$cfile "../Vector3i.h"
-$cfile "../Matrix4f.h"
$cfile "../Cuboid.h"
$cfile "../BoundingBox.h"
$cfile "../Tracer.h"
@@ -97,4 +94,10 @@ typedef unsigned char Byte;
+// Aliases
+$renaming Vector3<double> @ Vector3d
+$renaming Vector3<float> @ Vector3f
+$renaming Vector3<int> @ Vector3i
+
+
diff --git a/src/Bindings/LuaState.h b/src/Bindings/LuaState.h
index 1495c72f0..73f9629cb 100644
--- a/src/Bindings/LuaState.h
+++ b/src/Bindings/LuaState.h
@@ -29,6 +29,8 @@ extern "C"
#include "lua/src/lauxlib.h"
}
+#include "../Vector3.h"
+
@@ -52,7 +54,6 @@ class cWebAdmin;
struct HTTPTemplateRequest;
class cTNTEntity;
class cCreeper;
-class Vector3i;
class cHopperEntity;
class cBlockEntity;