mirror of
https://github.com/centau/vide.git
synced 2026-08-20 14:41:37 +00:00
Add apply()
This commit is contained in:
parent
c82ec25efe
commit
07ae542e28
1 changed files with 9 additions and 0 deletions
|
|
@ -6,6 +6,7 @@
|
||||||
if not game then script = require "test/relative-string" end
|
if not game then script = require "test/relative-string" end
|
||||||
|
|
||||||
local create = require(script.create)
|
local create = require(script.create)
|
||||||
|
local apply = require(script.apply)
|
||||||
local source = require(script.source)
|
local source = require(script.source)
|
||||||
local watch = require(script.watch)
|
local watch = require(script.watch)
|
||||||
local cleanup, clean_garbage = require(script.cleanup)()
|
local cleanup, clean_garbage = require(script.cleanup)()
|
||||||
|
|
@ -41,6 +42,14 @@ local vide = {
|
||||||
-- flags
|
-- flags
|
||||||
strict = (nil :: any) :: boolean,
|
strict = (nil :: any) :: boolean,
|
||||||
|
|
||||||
|
-- temporary
|
||||||
|
apply = function(instance: Instance)
|
||||||
|
return function(props: { [any]: any })
|
||||||
|
apply(instance, props)
|
||||||
|
return instance
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
|
||||||
-- runtime
|
-- runtime
|
||||||
step = function(dt: number)
|
step = function(dt: number)
|
||||||
-- debug.profilebegin("VIDE STEP")
|
-- debug.profilebegin("VIDE STEP")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue