diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2020-03-07 20:58:30 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2020-03-07 20:58:51 +0000 |
| commit | 6a7a2ddaca798f3cccac394d1fb9f317cbe90de6 (patch) | |
| tree | 4e49e53057b39f75813311ede13f87d238061fe6 /lib/random.moon | |
| parent | spellcheck (diff) | |
| download | alive-6a7a2ddaca798f3cccac394d1fb9f317cbe90de6.tar.gz alive-6a7a2ddaca798f3cccac394d1fb9f317cbe90de6.zip | |
add ldoc documentation
Diffstat (limited to 'lib/random.moon')
| -rw-r--r-- | lib/random.moon | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/random.moon b/lib/random.moon index 88fdb89..7cabdf0 100644 --- a/lib/random.moon +++ b/lib/random.moon @@ -1,4 +1,4 @@ -import Op, Value, ValueInput, EventInput, match from require 'core.base' +import Op, Value, Input, match from require 'core.base' apply_range = (range, val) -> if range\type! == 'str' @@ -36,8 +36,8 @@ generates a random value in range on create and trigger. setup: (inputs) => { trig, range } = match 'bang? any?', inputs super - trig: trig and EventInput trig - range: ValueInput range or Value.str 'uni' + trig: trig and Input.event trig + range: Input.value range or Value.str 'uni' tick: => @gen! if @inputs.trig and @inputs.trig\dirty! @@ -59,8 +59,8 @@ each component is in range. setup: (inputs) => { trig, range } = match 'bang? any?', inputs super - trig: trig and EventInput trig - range: ValueInput range or Value.str 'uni' + trig: trig and Input.event trig + range: Input.value range or Value.str 'uni' tick: => @gen! if @inputs.trig and @inputs.trig\dirty! |
