Commit generated files
This commit is contained in:
54
dist/classes/packets/SetGroupAcceptNotices.js
vendored
Normal file
54
dist/classes/packets/SetGroupAcceptNotices.js
vendored
Normal file
@@ -0,0 +1,54 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const UUID_1 = require("../UUID");
|
||||
const MessageFlags_1 = require("../../enums/MessageFlags");
|
||||
class SetGroupAcceptNoticesPacket {
|
||||
constructor() {
|
||||
this.name = 'SetGroupAcceptNotices';
|
||||
this.flags = MessageFlags_1.MessageFlags.FrequencyLow;
|
||||
this.id = 4294902130;
|
||||
}
|
||||
getSize() {
|
||||
return 50;
|
||||
}
|
||||
writeToBuffer(buf, pos) {
|
||||
const startPos = pos;
|
||||
this.AgentData['AgentID'].writeToBuffer(buf, pos);
|
||||
pos += 16;
|
||||
this.AgentData['SessionID'].writeToBuffer(buf, pos);
|
||||
pos += 16;
|
||||
this.Data['GroupID'].writeToBuffer(buf, pos);
|
||||
pos += 16;
|
||||
buf.writeUInt8((this.Data['AcceptNotices']) ? 1 : 0, pos++);
|
||||
buf.writeUInt8((this.NewData['ListInProfile']) ? 1 : 0, pos++);
|
||||
return pos - startPos;
|
||||
}
|
||||
readFromBuffer(buf, pos) {
|
||||
const startPos = pos;
|
||||
const newObjAgentData = {
|
||||
AgentID: UUID_1.UUID.zero(),
|
||||
SessionID: UUID_1.UUID.zero()
|
||||
};
|
||||
newObjAgentData['AgentID'] = new UUID_1.UUID(buf, pos);
|
||||
pos += 16;
|
||||
newObjAgentData['SessionID'] = new UUID_1.UUID(buf, pos);
|
||||
pos += 16;
|
||||
this.AgentData = newObjAgentData;
|
||||
const newObjData = {
|
||||
GroupID: UUID_1.UUID.zero(),
|
||||
AcceptNotices: false
|
||||
};
|
||||
newObjData['GroupID'] = new UUID_1.UUID(buf, pos);
|
||||
pos += 16;
|
||||
newObjData['AcceptNotices'] = (buf.readUInt8(pos++) === 1);
|
||||
this.Data = newObjData;
|
||||
const newObjNewData = {
|
||||
ListInProfile: false
|
||||
};
|
||||
newObjNewData['ListInProfile'] = (buf.readUInt8(pos++) === 1);
|
||||
this.NewData = newObjNewData;
|
||||
return pos - startPos;
|
||||
}
|
||||
}
|
||||
exports.SetGroupAcceptNoticesPacket = SetGroupAcceptNoticesPacket;
|
||||
//# sourceMappingURL=SetGroupAcceptNotices.js.map
|
||||
Reference in New Issue
Block a user