21 lines
372 B
JavaScript
21 lines
372 B
JavaScript
|
const Packet = require("./Packet.js");
|
||
|
|
||
|
class Packet18Animation extends Packet {
|
||
|
constructor(EID = 0, animation = 0) {
|
||
|
super(0x12);
|
||
|
|
||
|
this.EID = EID;
|
||
|
this.animation = animation;
|
||
|
}
|
||
|
|
||
|
writePacket() {
|
||
|
super.writePacket();
|
||
|
|
||
|
this.writer.writeInt(this.EID);
|
||
|
this.writer.writeByte(this.animation);
|
||
|
|
||
|
return this.toBuffer();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
module.exports = Packet18Animation;
|