From f84bab3bc21be6a8f574a8e4a590cb540dee2fd5 Mon Sep 17 00:00:00 2001 From: Mattes D Date: Wed, 15 Apr 2020 01:23:24 +0200 Subject: Fixed Lua Vector unification. (#4652) --- src/Bindings/LuaState.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Bindings/LuaState.h') 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); -- cgit v1.2.3