From dac61aa89f000528b11aec6fd8a464eb127fabd3 Mon Sep 17 00:00:00 2001 From: Jack <85714123+jackdotink@users.noreply.github.com> Date: Fri, 15 Nov 2024 19:18:38 -0600 Subject: [PATCH] give vector its fields --- Analysis/src/EmbeddedBuiltinDefinitions.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Analysis/src/EmbeddedBuiltinDefinitions.cpp b/Analysis/src/EmbeddedBuiltinDefinitions.cpp index 209bcdbe..5df41506 100644 --- a/Analysis/src/EmbeddedBuiltinDefinitions.cpp +++ b/Analysis/src/EmbeddedBuiltinDefinitions.cpp @@ -455,7 +455,11 @@ declare buffer: { static const std::string kBuiltinDefinitionVectorSrc = R"BUILTIN_SRC( -- TODO: this will be replaced with a built-in primitive type -declare class vector end +declare class vector + x: number, + y: number, + z: number, +end declare vector: { create: @checked (x: number, y: number, z: number) -> vector,