Added SLAddClient / SLRemoveClient messages (#30)

This commit is contained in:
Bruce Sheplan
2020-06-10 08:05:32 -05:00
committed by GitHub
parent 71c606cb94
commit b2439cd90c
6 changed files with 94 additions and 0 deletions

View File

@ -0,0 +1,24 @@
'use strict';
const SLMessage = require('./SLMessage.js').SLMessage;
const MSG_ID = 12524;
exports.SLRemoveClient = class SLRemoveClient extends SLMessage {
constructor(senderId) {
super(0, MSG_ID);
this.senderId = senderId;
}
encode() {
this.writeInt32LE(0);
this.writeInt32LE(this.senderId);
super.encode();
}
static getResponseId() {
return MSG_ID + 1;
}
};