summaryrefslogtreecommitdiffstats
path: root/src/Bindings/LuaState.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-09-03 17:00:26 +0200
committermadmaxoft <github@xoft.cz>2014-09-03 17:00:26 +0200
commita51c1e0b73a83cddcce865671ca30240393e458f (patch)
tree688e63c296f02e327b4ee2f9e117a172a6e2d85b /src/Bindings/LuaState.h
parentcBoundingBox: Added accessors. (diff)
downloadcuberite-a51c1e0b73a83cddcce865671ca30240393e458f.tar
cuberite-a51c1e0b73a83cddcce865671ca30240393e458f.tar.gz
cuberite-a51c1e0b73a83cddcce865671ca30240393e458f.tar.bz2
cuberite-a51c1e0b73a83cddcce865671ca30240393e458f.tar.lz
cuberite-a51c1e0b73a83cddcce865671ca30240393e458f.tar.xz
cuberite-a51c1e0b73a83cddcce865671ca30240393e458f.tar.zst
cuberite-a51c1e0b73a83cddcce865671ca30240393e458f.zip
Diffstat (limited to 'src/Bindings/LuaState.h')
-rw-r--r--src/Bindings/LuaState.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Bindings/LuaState.h b/src/Bindings/LuaState.h
index eeb93fd4d..fd506b10e 100644
--- a/src/Bindings/LuaState.h
+++ b/src/Bindings/LuaState.h
@@ -59,6 +59,10 @@ class cTNTEntity;
class cCreeper;
class cHopperEntity;
class cBlockEntity;
+class cBoundingBox;
+
+typedef cBoundingBox * pBoundingBox;
+typedef cWorld * pWorld;
@@ -230,6 +234,12 @@ public:
/** Retrieve value at a_StackPos, if it is a valid number, converting and clamping it to eWeather.
If not, a_Value is unchanged. */
void GetStackValue(int a_StackPos, eWeather & a_Value);
+
+ /** Retrieve value at a_StackPos, if it is a valid cBoundingBox class. If not, a_Value is unchanged */
+ void GetStackValue(int a_StackPos, pBoundingBox & a_Value);
+
+ /** Retrieve value at a_StackPos, if it is a valid cWorld class. If not, a_Value is unchanged */
+ void GetStackValue(int a_StackPos, pWorld & a_Value);
// Include the cLuaState::Call() overload implementation that is generated by the gen_LuaState_Call.lua script: