Skip to content

Commit 8afc0ec

Browse files
committed
Add simple vector object for non-metatable vectorlikes
1 parent 813dfa8 commit 8afc0ec

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

defns.lua

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@
44
---@alias SoundSpec string
55
---@alias ColorSpec Color|string
66

7-
-- TODO Should we have a separate "Pos" class for old-style {x, y, z} tables?
7+
---Vector-like objects that do not contain the vector metatables (ie. not
8+
---constructed with vector.zero())
9+
---@class SimpleVec
10+
---@field x number
11+
---@field y number
12+
---@field z number
13+
local SimpleVec = { }
814

915
---@class Vec
1016
---@field x number

0 commit comments

Comments
 (0)