Commit graph

23 commits

Author SHA1 Message Date
Romain Beaumont
04a3f72130 readCondition now return value==null when the condition is not met instead of returning null (when read returns null it means there was an error), check if value is null in readContainer and parsePacketData and don't include it if so, improve "field x missing" error message in test.js a bit 2015-05-09 16:08:54 +02:00
Romain Beaumont
63b332ce38 remove condition property checks, also remove that property from the schema 2015-05-09 06:21:39 +02:00
Romain Beaumont
faed176631 add new condition type :
* protocol.js : new read, write and sizeOf methods and add check for condition type inside read
* update protocol.json
* update protocol_schema.json
* some fixes in test.js to handle the new condition type
2015-05-09 05:58:12 +02:00
Romain Beaumont
ffa11996c4 remove function test in evalCondition : a condition is now never a function 2015-05-08 04:05:46 +02:00
Romain Beaumont
a1ec6138b7 convert protocol_def.js to protocol.js 2015-05-08 03:52:57 +02:00
Romain Beaumont
b350229160 hexa to hexa string from json convertion 2015-05-08 03:37:42 +02:00
Romain Beaumont
9abe799715 transform typeArgs function into object 2015-05-08 03:22:37 +02:00
Romain Beaumont
bf8a7899ae transform condition functions into objects 2015-05-08 03:08:30 +02:00
Romain Beaumont
e47feb1cf6 encapsulate condition evaluation 2015-05-08 02:26:45 +02:00
Romain Beaumont
d37d801e01 move protocol definition in separate file 2015-05-08 02:13:07 +02:00
roblabla
c034373da7 Revert "Fix stackoverflow in recursion"
This reverts commit 29302ad683.
2015-04-26 13:44:03 +00:00
roblabla
c2acd84f4c Revert "Let's use process.nextTick to avoid multiple gigs of ram usage :D"
This reverts commit 4601abb333.
2015-04-26 13:43:56 +00:00
roblabla
4601abb333 Let's use process.nextTick to avoid multiple gigs of ram usage :D 2015-04-26 13:14:53 +00:00
roblabla
29302ad683 Fix stackoverflow in recursion 2015-04-26 13:03:28 +00:00
roblabla
37e2f10cd7 Silence debug message, and make it much more useful 2015-04-10 21:45:03 +00:00
Josh Wolfe
23945f54c3 slightly cleaner readPosition 2015-03-26 18:47:46 -07:00
Romain Beaumont
88b8653b4d fix indentation 2015-03-25 04:12:58 +01:00
Romain Beaumont
456331b952 fix readPosition (see http://wiki.vg/index.php?title=Data_Types&diff=6529&oldid=6491) thanks Fenhl 2015-03-25 04:09:36 +01:00
roblabla
ea62fdc670 Fix particle packet 2015-03-23 12:45:06 +00:00
Romain Beaumont
f48b0ed159 Fix animation (see http://wiki.vg/Protocol#Animation) 2015-03-22 02:43:50 +01:00
Romain Beaumont
478140364a Fix bed package (see http://wiki.vg/Protocol#Use_Bed) 2015-03-22 02:11:52 +01:00
Will Franzen
4e32c12bfd Merge branch 'master' of https://github.com/PrismarineJS/node-minecraft-protocol into es6
Conflicts:
	.gitignore
	index.js
	package.json
2015-03-06 22:50:28 -06:00
Will Franzen
423305a19d Set up gulpp 2015-02-22 10:27:46 -06:00
Renamed from lib/protocol.js (Browse further)