From ce70de148a08258aa3eabd160c55183aa6ae618d Mon Sep 17 00:00:00 2001 From: unittensor Date: Sun, 21 Jan 2024 22:19:56 -0500 Subject: [PATCH] export the lua vector types --- luau/typemap.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/luau/typemap.lua b/luau/typemap.lua index a125174..85a386c 100644 --- a/luau/typemap.lua +++ b/luau/typemap.lua @@ -5,7 +5,7 @@ type struct_Vector2 = {x: f64, y: f64} type struct_Vector3 = struct_Vector2 & {z: f64} type struct_Vector4 = struct_Vector3 & {w: f64} -type Vector2 = { +export type Vector2 = { new: (x: f64, y: f64) -> struct_Vector2, ONE: struct_Vector2, ZERO: struct_Vector2, @@ -14,7 +14,7 @@ type Vector2 = { NEG_X: struct_Vector2, NEG_Y: struct_Vector2, } -type Vector3 = { +export type Vector3 = { new: (x: f64, y: f64, z: f64) -> struct_Vector3, ONE: struct_Vector3, ZERO: struct_Vector3, @@ -23,7 +23,7 @@ type Vector3 = { NEG_X: struct_Vector3, NEG_Y: struct_Vector3, } -type Vector4 = { +export type Vector4 = { new: (x: f64, y: f64, z: f64, w: f64) -> struct_Vector4, ONE: struct_Vector4, ZERO: struct_Vector4,