UNPKG

twitch2ma

Version:

Twitch chat bot that runs commands on the MA GrandMA2 using Telnet.

40 lines 1.26 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SACNUniverse = exports.UniverseStatus = void 0; var UniverseStatus; (function (UniverseStatus) { UniverseStatus[UniverseStatus["NeverReceived"] = 0] = "NeverReceived"; UniverseStatus[UniverseStatus["Valid"] = 1] = "Valid"; UniverseStatus[UniverseStatus["Expired"] = 2] = "Expired"; })(UniverseStatus = exports.UniverseStatus || (exports.UniverseStatus = {})); class SACNUniverse { constructor(universe) { this.universe = universe; this._data = new Array(512).fill(0); this._lastReceived = 0; this.watchdogStatus = UniverseStatus.NeverReceived; } get data() { return this._data; } set data(value) { this._data = value; this._lastReceived = new Date().getTime(); this._status = UniverseStatus.Valid; } get lastReceived() { return this._lastReceived; } get watchdogStatus() { return this._watchdogStatus; } set watchdogStatus(value) { this._watchdogStatus = value; this._status = value; } get status() { return this._status; } } exports.SACNUniverse = SACNUniverse; //# sourceMappingURL=SACNUniverse.js.map