mirror of
https://github.com/centau/vide.git
synced 2026-08-20 23:01:37 +00:00
Switch from mock Vector3 to native vector lib
This commit is contained in:
parent
5abd5eee91
commit
49cc551493
5 changed files with 52 additions and 95 deletions
|
|
@ -70,12 +70,14 @@ for name, class in {
|
|||
UDim = UDim,
|
||||
UDim2 = UDim2,
|
||||
Vector2 = Vector2,
|
||||
Vector3 = Vector3,
|
||||
Rect = Rect
|
||||
} :: Map<string, { [string]: any }> do
|
||||
aggregates[name] = class.new
|
||||
end
|
||||
|
||||
aggregates.Vector3 = vector.create
|
||||
aggregates.vector = vector.create
|
||||
|
||||
-- applies table of nested properties to an instance using full vide semantics
|
||||
local function apply<T>(instance: T & Instance, properties: { [unknown]: unknown }): T
|
||||
if not properties then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue