diff options
author | Mattes D <github@xoft.cz> | 2020-04-15 01:23:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-15 01:23:24 +0200 |
commit | f84bab3bc21be6a8f574a8e4a590cb540dee2fd5 (patch) | |
tree | d929b8b3c2567160f61c572492787869f52101b3 /src/Bindings/LuaState.h | |
parent | Bindings: Allow coercion between Vector3 subtypes. (#4646) (diff) | |
download | cuberite-f84bab3bc21be6a8f574a8e4a590cb540dee2fd5.tar cuberite-f84bab3bc21be6a8f574a8e4a590cb540dee2fd5.tar.gz cuberite-f84bab3bc21be6a8f574a8e4a590cb540dee2fd5.tar.bz2 cuberite-f84bab3bc21be6a8f574a8e4a590cb540dee2fd5.tar.lz cuberite-f84bab3bc21be6a8f574a8e4a590cb540dee2fd5.tar.xz cuberite-f84bab3bc21be6a8f574a8e4a590cb540dee2fd5.tar.zst cuberite-f84bab3bc21be6a8f574a8e4a590cb540dee2fd5.zip |
Diffstat (limited to 'src/Bindings/LuaState.h')
-rw-r--r-- | src/Bindings/LuaState.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Bindings/LuaState.h b/src/Bindings/LuaState.h index 6743a65d2..e2eacdaf4 100644 --- a/src/Bindings/LuaState.h +++ b/src/Bindings/LuaState.h @@ -798,6 +798,10 @@ public: Accepts either cUUID instances or strings that contain UUIDs */ bool CheckParamUUID(int a_StartParam, int a_EndParam = -1); + /** Returns true if the specified parameters on the stack are Vector3s; also logs warning if not. + Accepts any Vector3 type instances or tables. */ + bool CheckParamVector3(int a_StartParam, int a_EndParam = -1); + /** Returns true if the specified parameter on the stack is nil (indicating an end-of-parameters) */ bool CheckParamEnd(int a_Param); |