NostalgiaCore/src/network/protocol/packet/SetTimePacket.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);
}
}