Dylan K. Taylor
64ecc373be
Split up session base logic and packet handling
...
this will allow for mutable packet handlers which can be used to cleanly implement multi-stage game sessions.
2018-07-20 12:36:44 +01:00
Dylan K. Taylor
2bba3a0805
Apply typehints to pocketmine\network\mcpe\protocol namespace
...
this is pulled from network-nuke in order to reduce the size of the diff.
2018-07-05 13:19:15 +01:00
Dylan K. Taylor
05af87e1d4
Strip empty lines at the end of classes
2018-06-11 13:19:23 +01:00
Dylan K. Taylor
3fe4ebc301
Found more unknown things
2018-04-04 11:03:36 +01:00
Dylan K. Taylor
95d42b9907
Network: Remove legacy Vector3 primitive encode/decode methods
2018-01-20 10:58:39 +00:00
Dylan K. Taylor
74b074753f
Bulk addition of constant visibilities
...
thanks PhpStorm inspections plugin for annoying the shit out of me until
I did this.
2017-11-21 14:44:10 +00:00
Dylan K. Taylor
2a5d954c67
fixed yaw/headyaw field order
...
I wish they'd stop changing this shit... this is the third or fourth time now?
2017-10-10 22:45:30 +01:00
Dylan K. Taylor
287f08cbd1
Changed confusing MovePlayerPacket field name to be consistent with other packets
2017-10-10 21:56:17 +01:00
Dylan K. Taylor
9be1b929a5
Added PhpDoc for packet field types and changed float x,y,z to Vector3
2017-08-13 20:02:07 +01:00
Dylan K. Taylor
7886918140
Cleaned up some bad code in DataPacket, added encode/decodeHeader and made encode/decodePayload protected
2017-08-06 17:21:51 +01:00
Dylan K. Taylor
2726f2a011
Solved packet encode/decode boilerplate code issue
...
Something as simple as forgetting the reset() when encoding would cause lots of problems which could go unnoticed. This should be fully backwards-compatible but needs more tests.
2017-07-07 13:59:09 +01:00
Dylan K. Taylor
86742fcf30
Workaround for flight controls fail on teleport (TODO: fix this properly)
2017-06-20 20:10:20 +01:00
Dylan K. Taylor
51b0673b4b
Bite the bullet and enable strict types on everything
2017-06-07 12:53:16 +01:00
Dylan K. Taylor
54453d0b0a
Refactored entity IDs in packets for consistency and to clarify on types
2017-06-05 15:41:27 +01:00
Dylan K. Taylor
22ba017965
Binary strict types ( #969 )
...
* Some Binary cleanup, type-hints and strict types
yes, I know this is very crashy... that's good, because it highlights unexpected behaviour
* added some default values
2017-06-03 09:39:45 +01:00
Dylan K. Taylor
dc71eb5246
Protocol updates for 1.1.0.9
2017-04-27 11:24:49 +01:00
Dylan K. Taylor
db4027cdb2
New fields for MovePlayer and MoveEntity packets
2017-04-22 00:58:18 +01:00
Dylan K. Taylor
a327a74ece
Protocol changes for 1.1.0.3, fixed red sky, fixed crashes
2017-04-14 15:17:56 +01:00
Dylan K. Taylor
295d9bc80b
Cleaned up muddled varint/varlong mess, added separate methods for entity unique and runtime ids, moved some MCPE-protocol-specific methods out of BinaryStream
2017-03-08 20:29:24 +00:00
Dylan K. Taylor
56990eb28b
MCPE protocol gets its own namespace
2017-03-08 20:28:39 +00:00