static public bool checkType(IntPtr l, int p, out Vector4 v) { float x, y, z, w; LuaDLL.luaS_checkVector4(l, p, out x, out y, out z, out w); v = new Vector4(x, y, z, w); return(true); }
static public bool checkType(IntPtr l, int p, out Vector4 v) { float x, y, z, w; if (LuaDLL.luaS_checkVector4(l, p, out x, out y, out z, out w) != 0) { throw new Exception(string.Format("Invalid vector4 argument at {0}", p)); } v = new Vector4(x, y, z, w); return(true); }