code style fix

This commit is contained in:
Sunch 2025-04-27 20:36:24 +08:00
parent fc5c5625cb
commit 5e8e9330e2
361 changed files with 4766 additions and 4650 deletions

View file

@ -3,25 +3,25 @@
class EntityEventPacket extends RakNetDataPacket{
public $eid;
public $event;
const ENTITY_DAMAGE = 2;
const ENTITY_DEAD = 3;
const ENTITY_ANIM_10 = 10;
public function __construct($eid = null, $event = null){
$this->eid = $eid;
$this->event = $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);