mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-12 14:35:35 +00:00
NetworkBinaryStream: Add clarification on array structure for gamerules
we need objects for this really
This commit is contained in:
parent
629a254639
commit
6a94c8183c
@ -415,7 +415,7 @@ class NetworkBinaryStream extends BinaryStream{
|
|||||||
* Reads gamerules
|
* Reads gamerules
|
||||||
* TODO: implement this properly
|
* TODO: implement this properly
|
||||||
*
|
*
|
||||||
* @return array
|
* @return array, members are in the structure [name => [type, value]]
|
||||||
*/
|
*/
|
||||||
public function getGameRules() : array{
|
public function getGameRules() : array{
|
||||||
$count = $this->getUnsignedVarInt();
|
$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
|
* TODO: implement this properly
|
||||||
*
|
*
|
||||||
* @param array $rules
|
* @param array $rules
|
||||||
|
Loading…
x
Reference in New Issue
Block a user