Files
2026-08-24 22:20:36 +02:00

20 lines
555 B
JavaScript

/*
@Packet name ShopEntryRemoved
@Packet identifier 216
@Description Holds the id of a shop entry being removed
@Data -
@Structure -
*/
module.exports = function (data) {
const packetLength = 3 + 1;
const buffer = new ArrayBuffer(packetLength);
const view = new DataView(buffer);
view.setUint8(0, 216);
view.setUint8(1, packetLength);
view.setUint8(2, data.shopCategoryID);
view.setUint8(3, data.id);
return buffer;
};