diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2020-04-24 09:41:23 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2020-04-24 10:38:23 +0000 |
| commit | 767dd35e61541f7d5655f0eb449606ac0412f138 (patch) | |
| tree | 98c4ba99d5ada759b3b33169cd744025fbe61823 /alv/stream/value.moon | |
| parent | better logging interface (diff) | |
| download | alive-767dd35e61541f7d5655f0eb449606ac0412f138.tar.gz alive-767dd35e61541f7d5655f0eb449606ac0412f138.zip | |
move tick-counting into COPILOT
Diffstat (limited to 'alv/stream/value.moon')
| -rw-r--r-- | alv/stream/value.moon | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/alv/stream/value.moon b/alv/stream/value.moon index 213a26c..98720c9 100644 --- a/alv/stream/value.moon +++ b/alv/stream/value.moon @@ -7,7 +7,7 @@ import Stream from require 'alv.stream.base' import Result from require 'alv.result' import Error from require 'alv.error' -import scope, base, registry from require 'alv.cycle' +import scope, base from require 'alv.cycle' ancestor = (klass) -> assert klass, "cant find the ancestor of nil" @@ -22,12 +22,12 @@ class ValueStream extends Stream --- return whether this stream was changed in the current tick. -- -- @treturn bool - dirty: => @updated == registry.Registry.active!.tick + dirty: => @updated == COPILOT.T --- update this stream's value. -- -- Marks this stream as dirty for the remainder of the current tick. - set: (@value) => @updated = registry.Registry.active!.tick + set: (@value) => @updated = COPILOT.T --- unwrap to the Lua type. -- |
