19 lines
551 B
JavaScript
19 lines
551 B
JavaScript
/*
|
|
@Packet name GuildDataIslandCaptured
|
|
@Packet identifier 184
|
|
@Description Includes data about a guild island that has been captured
|
|
@Data pId,
|
|
@Structure -
|
|
*/
|
|
|
|
module.exports = function (data) {
|
|
const packetLength = 2 + 1;
|
|
const buffer = new ArrayBuffer(packetLength);
|
|
const view = new DataView(buffer);
|
|
|
|
view.setUint8(0, 184);
|
|
view.setUint8(1, packetLength);
|
|
view.setUint8(2, data.guildIslandID);
|
|
|
|
return buffer;
|
|
}; |