Initial commit
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
@Packet name RankPoint
|
||||
@Packet identifier 206
|
||||
@Description Holds data about a value needed to calculate a specific rank
|
||||
@Data -
|
||||
@Structure -
|
||||
*/
|
||||
|
||||
module.exports = function (data) {
|
||||
const packetLength = 5 + 1 + 1;
|
||||
const buffer = new ArrayBuffer(packetLength);
|
||||
const view = new DataView(buffer);
|
||||
|
||||
view.setUint8(0, 206);
|
||||
view.setUint8(1, packetLength);
|
||||
view.setUint8(2, data.rankTypeID);
|
||||
view.setUint32(3, data.value);
|
||||
|
||||
return buffer;
|
||||
};
|
||||
Reference in New Issue
Block a user