give vector its fields

This commit is contained in:
Jack 2024-11-15 19:18:38 -06:00 committed by GitHub
parent e905e30570
commit dac61aa89f
Signed by: DevComp
GPG key ID: B5690EEEBB952194

View file

@ -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,