import {Actions} from './actions'; export class Routine { static type() { return 'routine'; } constructor() { this.actions = new Actions(); } fromJSON(json) { this.actions.fromObject(json.actions); return this; } tick(context, elapsed) { this.actions.tick(context, elapsed); } toJSON() { return { type: 'routine', actions: this.actions.toJSON(), } } }