mirror of
https://github.com/centau/vide.git
synced 2026-08-20 14:41:37 +00:00
This commit is contained in:
parent
96e577a626
commit
bf1b1978d9
8 changed files with 279 additions and 226 deletions
|
|
@ -6,7 +6,7 @@
|
|||
if not game then script = (require :: any) "test/wrap-require" end
|
||||
|
||||
local create = require(script.create)
|
||||
local wrap = require(script.wrap)
|
||||
local source = require(script.source)
|
||||
local watch = require(script.watch)
|
||||
local derive = require(script.derive)
|
||||
local map = require(script.map)
|
||||
|
|
@ -14,18 +14,17 @@ local map = require(script.map)
|
|||
-- local Changed = require(script.Change)
|
||||
-- local Created = require(script.Created)
|
||||
|
||||
local spring, updateSprings = require(script.spring)()
|
||||
local spring, update_springs = require(script.spring)()
|
||||
|
||||
local flags = require(script.flags)
|
||||
|
||||
type Map<K, V> = { [K]: V }
|
||||
type Unwrapper = <T>(T) -> T
|
||||
type Setter<T> = ( (new: T, force: true?) -> T ) & ( (update: (old: T) -> T, force: true?) -> T )
|
||||
|
||||
local vide = {
|
||||
-- core
|
||||
create = create,
|
||||
wrap = wrap,
|
||||
source = source,
|
||||
derive = derive,
|
||||
map = map,
|
||||
watch = watch,
|
||||
|
|
@ -45,7 +44,7 @@ local vide = {
|
|||
|
||||
-- test
|
||||
step = function(dt: number)
|
||||
updateSprings(dt)
|
||||
update_springs(dt)
|
||||
end
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue