Romain Beaumont
917b6adda1
enable cross version with an option in createClient and createServer :
...
* put parsePacketData in deserializer and createPacketBuffer in serializer
* remove packets from the index and expose readPacket instead
* load packets when needed in various files
* make tests test every supported version
static cross version of #234 , fix #65 , fix #240
2015-09-29 22:44:28 +02:00
mhsjlw
b4eac8c1c5
Colons are supposed to be next to the closest char
...
At least, in English
2015-09-24 19:19:26 -04:00
Romain Beaumont
fdc24cbeed
Kick client when he is using the wrong version of the client, fix #209
2015-09-24 00:04:13 +02:00
Robin Lambertz
9d9287d64c
Merge pull request #248 from rom1504/es6-classes
...
more es6 classes
2015-09-23 23:07:07 +02:00
Robin Lambertz
7e7d5da2ba
Merge pull request #246 from rom1504/fix_protocol_version_in_ping
...
fix ping.js protocol version
2015-09-23 21:30:24 +02:00
Romain Beaumont
8aa0d786f0
use es6 properties in protocol.js
2015-09-23 21:06:34 +02:00
Romain Beaumont
5aee0000e4
use es6 properties in server.js
2015-09-23 21:04:54 +02:00
Romain Beaumont
68c589a3b0
move getter and setter after the constructor in client.js
2015-09-23 21:03:07 +02:00
Romain Beaumont
bbde23bb02
use es6 properties for client.js
...
see https://github.com/jeffmo/es-class-properties and http://odetocode.com/blogs/scott/archive/2014/10/14/features-of-es6-part-9-classes.aspx
2015-09-23 21:01:38 +02:00
roblabla
f9484d9444
Implement new context syntax
2015-09-23 15:22:02 +02:00
Romain Beaumont
6e399122bf
transform server.js into an es6 class
2015-09-20 21:36:59 +02:00
Romain Beaumont
78ff667c1f
transform protocol.js into an es6 class
2015-09-20 21:32:50 +02:00
Romain Beaumont
4e9d8e06c9
transform client.js into an es6 class
2015-09-20 21:12:56 +02:00
Romain Beaumont
6137ffceeb
fix ping protocol version
2015-09-20 19:52:49 +02:00
Robin Lambertz
3bbb1eae6a
Merge pull request #236 from roblabla/feature-cleanup
...
Clean up the mess in create/parse Packet. Deprecate ID and [state; ID]
2015-09-20 00:58:15 +02:00
Romain Beaumont
537a99562a
use forEach for better speed for containers
2015-09-20 00:55:29 +02:00
roblabla
b85fa944d7
Remove on(id), on([state;id]) and onRaw
2015-09-20 00:55:29 +02:00
roblabla
b1441098f9
Only allow writing by packetName. Refactor whole internals to use packetNames
2015-09-20 00:55:29 +02:00
roblabla
56c9f3ed9a
Index packetFields by name. Use packet names in test.js
2015-09-20 00:41:03 +02:00
Robin Lambertz
3a7fad0f2d
Merge pull request #242 from rom1504/use_mcdata_version
...
use minecraft-data version
2015-09-15 17:45:54 +02:00
roblabla
d490134492
Fix server.js
2015-09-15 14:31:06 +00:00
roblabla
cf4048d655
Fix createServer
2015-09-15 14:30:53 +00:00
roblabla
eac198bdf3
Fix createClient
2015-09-15 14:30:46 +00:00
roblabla
8be7394864
Fix ping
2015-09-15 14:30:34 +00:00
Romain Beaumont
a24b79608b
use minecraft-data version
2015-09-15 15:34:38 +02:00
Romain Beaumont
6bad0f8461
Change quit reasons to json as is now required in 1.9
2015-09-14 22:52:01 +02:00
Romain Beaumont
a62e7a2712
add direction variable in createPacketBuffer
2015-09-12 21:56:33 +02:00
Romain Beaumont
188848b364
improve error in sizeOf of serializer.js, fix remaining numerical id in createClient
2015-09-12 21:49:17 +02:00
Romain Beaumont
3b272159fd
add field name in error in serializer.js
2015-09-12 21:49:17 +02:00
Romain Beaumont
9804d0983b
transform play numerical ids to names, remove most entity metadata test values for compatibility
2015-09-12 21:49:17 +02:00
roblabla
f952db3cc6
Phase out native position. Implement entityMetadataLoop.
2015-09-12 00:40:24 +00:00
roblabla
b255eaadd1
Implement bitfields. Add tests for utils datatypes
2015-09-12 00:40:18 +00:00
roblabla
71c93bb3d6
Implement anonymous structure members
2015-09-11 22:42:50 +00:00
roblabla
a267cc1515
Revert "Fix anon structures not working in sizeOf"
...
This reverts commit 86f1f23053
.
2015-09-11 22:39:16 +00:00
roblabla
2b98c09fba
Slightly fix the broken error handling
2015-09-11 22:12:20 +00:00
roblabla
86f1f23053
Fix anon structures not working in sizeOf
2015-09-11 22:11:53 +00:00
roblabla
79ded321bf
Add extend type support
2015-09-03 13:05:11 +00:00
roblabla
ee3b865daa
Fix typo in option type
2015-09-03 13:05:11 +00:00
Robin Lambertz
388879bd4b
Merge pull request #227 from roblabla/feature-addOption
...
Add option type
2015-09-02 19:37:04 +02:00
roblabla
e260f15163
Fix error handling using undefined variables
2015-08-29 13:00:34 +00:00
roblabla
ed372e6f39
Add option type
2015-08-28 15:21:59 +00:00
roblabla
7e145f763d
First attempt at better error handling, also some general cleanup
2015-08-27 20:48:45 +00:00
roblabla
3282cf69c7
Introduce switch and void, remove condition
2015-08-25 11:55:25 +00:00
roblabla
ba8a3790aa
Add the new type syntax support. Old type syntax doesn't work
2015-08-24 18:25:56 +00:00
Romain Beaumont
3892fb6de3
bump minecraft data : now multi version support
2015-08-21 16:19:46 +02:00
Robin Lambertz
c365478955
Merge pull request #215 from roblabla/feature-countType
...
Add countType support
2015-08-17 21:27:09 +02:00
roblabla
c7841e98d8
Don't bubble up errors from the client to the server
2015-08-15 16:25:19 +00:00
roblabla
3d6db80593
TypeArgs should default to an empty object in case it is undefined
2015-08-13 16:36:42 +00:00
roblabla
f91da617d7
Add countType support
2015-08-13 16:36:30 +00:00
Romain Beaumont
1f681ed810
add keepAlive option in createServer
2015-08-08 17:21:36 +02:00