summaryrefslogtreecommitdiffstats
path: root/src/Bindings
diff options
context:
space:
mode:
authorandrew <xdotftw@gmail.com>2014-03-11 15:01:17 +0100
committerandrew <xdotftw@gmail.com>2014-03-11 15:02:25 +0100
commitb4bf13aa4f004a7819e262679a295d8ca886557b (patch)
tree8c1b0d89d4c23c78dd65899d4a2c2c31bde869a5 /src/Bindings
parentMerge pull request #791 from mc-server/PieceGenerator (diff)
downloadcuberite-b4bf13aa4f004a7819e262679a295d8ca886557b.tar
cuberite-b4bf13aa4f004a7819e262679a295d8ca886557b.tar.gz
cuberite-b4bf13aa4f004a7819e262679a295d8ca886557b.tar.bz2
cuberite-b4bf13aa4f004a7819e262679a295d8ca886557b.tar.lz
cuberite-b4bf13aa4f004a7819e262679a295d8ca886557b.tar.xz
cuberite-b4bf13aa4f004a7819e262679a295d8ca886557b.tar.zst
cuberite-b4bf13aa4f004a7819e262679a295d8ca886557b.zip
Diffstat (limited to '')
-rw-r--r--src/Bindings/AllToLua.pkg10
-rw-r--r--src/Bindings/LuaState.h3
2 files changed, 9 insertions, 4 deletions
diff --git a/src/Bindings/AllToLua.pkg b/src/Bindings/AllToLua.pkg
index 2676281f9..302714318 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,9 +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"
@@ -97,4 +95,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 4a7a6fadb..1156f5363 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;