mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
21 lines
No EOL
324 B
PHP
21 lines
No EOL
324 B
PHP
<?php
|
|
|
|
class SetTimePacket extends RakNetDataPacket{
|
|
public $time;
|
|
public $started = true;
|
|
|
|
public function pid(){
|
|
return ProtocolInfo::SET_TIME_PACKET;
|
|
}
|
|
|
|
public function decode(){
|
|
|
|
}
|
|
|
|
public function encode(){
|
|
$this->reset();
|
|
$this->putInt($this->time);
|
|
$this->putByte($this->started ? 0x80:0x00);
|
|
}
|
|
|
|
} |