NetworkBinaryStream: Add clarification on array structure for gamerules

we need objects for this really
This commit is contained in:
Dylan K. Taylor 2018-02-28 18:10:47 +00:00
parent 629a254639
commit 6a94c8183c

View File

@ -415,7 +415,7 @@ class NetworkBinaryStream extends BinaryStream{
* Reads gamerules
* TODO: implement this properly
*
* @return array
* @return array, members are in the structure [name => [type, value]]
*/
public function getGameRules() : array{
$count = $this->getUnsignedVarInt();
@ -443,7 +443,7 @@ class NetworkBinaryStream extends BinaryStream{
}
/**
* Writes a gamerule array
* Writes a gamerule array, members should be in the structure [name => [type, value]]
* TODO: implement this properly
*
* @param array $rules