27 lines
427 B
JavaScript
27 lines
427 B
JavaScript
const mergeOptions = require('merge-options');
|
|
|
|
const BaseState = require('./BaseState');
|
|
|
|
class FogmachineState extends BaseState {
|
|
constructor(cloneObj) {
|
|
super();
|
|
|
|
let cloneState = mergeOptions(FogmachineState.default, cloneObj);
|
|
|
|
this.ready = cloneState.ready;
|
|
}
|
|
|
|
static get default() {
|
|
return {
|
|
ready: false
|
|
};
|
|
}
|
|
|
|
get asObj() {
|
|
return {
|
|
ready: this.ready
|
|
};
|
|
}
|
|
}
|
|
|
|
module.exports = FogmachineState; |