mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-23 04:59:46 +00:00
manual adding of missing file from my commit
*i forgot to use git add src/ =\*
This commit is contained in:
parent
360e160b82
commit
0c75cf8473
1 changed files with 24 additions and 0 deletions
24
src/network/protocol/packet/PlayerInputPacket.php
Normal file
24
src/network/protocol/packet/PlayerInputPacket.php
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
<?php
|
||||||
|
class PlayerInputPacket extends RakNetDataPacket{
|
||||||
|
public $unk1, $unk2, $unk3, $unk4;
|
||||||
|
public function encode()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public function pid()
|
||||||
|
{
|
||||||
|
return ProtocolInfo::PLAYER_INPUT_PACKET;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function decode()
|
||||||
|
{
|
||||||
|
$this->unk1 = $this->getFloat();
|
||||||
|
$this->unk2 = $this->getFloat();
|
||||||
|
$this->unk3 = $this->getByte();
|
||||||
|
$this->unk4 = $this->getByte();
|
||||||
|
console("values: {$this->unk1}, {$this->unk2}, {$this->unk3}, {$this->unk4}");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue