summaryrefslogtreecommitdiffstats
path: root/src/Bindings/LuaState.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-07-03 17:49:21 +0200
committermadmaxoft <github@xoft.cz>2014-07-03 17:49:21 +0200
commit2dbed03cbce873d8a6582bfdc5c4b826b6e7eade (patch)
treec95173c315bbd1020301188b138d426fa800b5d2 /src/Bindings/LuaState.h
parentCMake: Changed slash format to support MSYS. (diff)
downloadcuberite-2dbed03cbce873d8a6582bfdc5c4b826b6e7eade.tar
cuberite-2dbed03cbce873d8a6582bfdc5c4b826b6e7eade.tar.gz
cuberite-2dbed03cbce873d8a6582bfdc5c4b826b6e7eade.tar.bz2
cuberite-2dbed03cbce873d8a6582bfdc5c4b826b6e7eade.tar.lz
cuberite-2dbed03cbce873d8a6582bfdc5c4b826b6e7eade.tar.xz
cuberite-2dbed03cbce873d8a6582bfdc5c4b826b6e7eade.tar.zst
cuberite-2dbed03cbce873d8a6582bfdc5c4b826b6e7eade.zip
Diffstat (limited to '')
-rw-r--r--src/Bindings/LuaState.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Bindings/LuaState.h b/src/Bindings/LuaState.h
index 066390e39..723193ae7 100644
--- a/src/Bindings/LuaState.h
+++ b/src/Bindings/LuaState.h
@@ -30,6 +30,7 @@ extern "C"
}
#include "../Vector3.h"
+#include "../Defines.h"
@@ -222,6 +223,10 @@ public:
/** Retrieve value at a_StackPos, if it is a valid number. If not, a_Value is unchanged */
void GetStackValue(int a_StackPos, double & a_Value);
+ /** 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);
+
/** Call any 0-param 0-return Lua function in a single line: */
template <typename FnT>