Commit generated files
This commit is contained in:
29
dist/classes/packets/SetCPURatio.js
vendored
Normal file
29
dist/classes/packets/SetCPURatio.js
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const MessageFlags_1 = require("../../enums/MessageFlags");
|
||||
class SetCPURatioPacket {
|
||||
constructor() {
|
||||
this.name = 'SetCPURatio';
|
||||
this.flags = MessageFlags_1.MessageFlags.FrequencyLow;
|
||||
this.id = 4294902087;
|
||||
}
|
||||
getSize() {
|
||||
return 1;
|
||||
}
|
||||
writeToBuffer(buf, pos) {
|
||||
const startPos = pos;
|
||||
buf.writeUInt8(this.Data['Ratio'], pos++);
|
||||
return pos - startPos;
|
||||
}
|
||||
readFromBuffer(buf, pos) {
|
||||
const startPos = pos;
|
||||
const newObjData = {
|
||||
Ratio: 0
|
||||
};
|
||||
newObjData['Ratio'] = buf.readUInt8(pos++);
|
||||
this.Data = newObjData;
|
||||
return pos - startPos;
|
||||
}
|
||||
}
|
||||
exports.SetCPURatioPacket = SetCPURatioPacket;
|
||||
//# sourceMappingURL=SetCPURatio.js.map
|
||||
Reference in New Issue
Block a user