Skip to content

KoryNunn/gaffa-interval

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#gaffa-interval

Interval behaviour for gaffa

Install:

npm i gaffa-interval

Add to gaffa:

var Interval = require('gaffa-interval');

gaffa.registerConstructor(Interval);

Usage

var interval = new Interval();

interval.time = 10000;
interval.actions.tick = [myCoolAction];

API

Actions

tick

Is triggered each tick of the interval

Properties (Instance of Gaffa.Property)

time

The time between ticks. This will default to 5000 if not set.

About

Gaffa interval behaviour, Triggers actions on an interval

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published