NostalgiaCore/src/network/protocol/packet/PingPacket.php
2025-04-27 20:36:24 +08:00

19 lines
No EOL
280 B
PHP

<?php
class PingPacket extends RakNetDataPacket{
public $time = 0;
public function pid(){
return ProtocolInfo::PING_PACKET;
}
public function decode(){
$this->time = $this->getLong();
}
public function encode(){
$this->reset();
$this->putLong($this->time);
}
}