NostalgiaCore/src/network/protocol/packet/EntityEventPacket.php

22 lines
No EOL
372 B
PHP

<?php
class EntityEventPacket extends RakNetDataPacket{
public $eid;
public $event;
public function pid(){
return ProtocolInfo::ENTITY_EVENT_PACKET;
}
public function decode(){
$this->eid = $this->getInt();
$this->event = $this->getByte();
}
public function encode(){
$this->reset();
$this->putInt($this->eid);
$this->putByte($this->event);
}
}