mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
19 lines
No EOL
280 B
PHP
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);
|
|
}
|
|
|
|
} |