Updated to new RakLib

This commit is contained in:
Shoghi Cervantes
2014-06-05 17:52:42 +02:00
parent c434961dfc
commit fdc2edc421
5 changed files with 121 additions and 19 deletions

View File

@ -33,12 +33,16 @@ use pocketmine\Player;
interface SourceInterface{
/**
* Sends a DataPacket to the interface
* Sends a DataPacket to the interface, returns an unique identifier for the packet if $needACK is true
*
* @param Player $player
* @param DataPacket $packet
* @param bool $needACK
* @param bool $immediate
*
* @return int
*/
public function putPacket(Player $player, DataPacket $packet);
public function putPacket(Player $player, DataPacket $packet, $needACK = false, $immediate = true);
/**
* Terminates the connection
@ -49,6 +53,11 @@ interface SourceInterface{
*/
public function close(Player $player, $reason = "unknown reason");
/**
* @param string $name
*/
public function setName($name);
/**
* @return bool
*/