Updated Readme / Added EggTimer Support (#25)

* added setCircuitRuntimeById function
This commit is contained in:
Bruce Sheplan
2020-06-06 18:55:07 -05:00
committed by Parnic
parent 9c72e7b61d
commit c1ceacbd98
4 changed files with 94 additions and 0 deletions

View File

@ -0,0 +1,27 @@
'use strict';
const SLMessage = require('./SLMessage.js').SLMessage;
const MSG_ID = 12550;
exports.SLSetCircuitRuntimeById = class SLSetCircuitRuntimeById extends SLMessage {
constructor(circuitId, runTime) {
super(0, MSG_ID);
this.circuitId = circuitId;
this.runTime = runTime;
}
encode() {
this.writeInt32LE(0);
this.writeInt32LE(this.circuitId);
this.writeInt32LE(this.runTime);
super.encode();
}
static getResponseId() {
return MSG_ID + 1;
}
};