From ac90f7f1fff448af359a21f99d9d43858e19fae2 Mon Sep 17 00:00:00 2001 From: Keegan Date: Sun, 6 Mar 2016 10:49:02 -0500 Subject: [PATCH] validation errors and new datatypes --- data/protocol.json | 79 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 78 insertions(+), 1 deletion(-) diff --git a/data/protocol.json b/data/protocol.json index 365b80c..687c436 100644 --- a/data/protocol.json +++ b/data/protocol.json @@ -1,11 +1,88 @@ { "types": { "string": [ - "pstring" + "pstring", { "countType":"short" } ], + "skin": [ + "container", + [ + { + "name": "skinType", + "type": "string" + }, + { + "name": "texture", + "type": "string" + } + ] + ], + "blockrecords": [ + "array", + { + "countType":"i16", + "type": [ + "container", + [ + { + "name": "x", + "type": "i32" + }, + { + "name": "y", + "type": "i32" + }, + { + "name": "z", + "type": "byte" + }, + { + "anon": true, + "type": [ + "bitfield", + [ + { + "name": "blockData", + "size": 4, + "signed": false + }, + { + "name": "flags", + "size": 4, + "signed": false + } + ] + ] + } + ] + ] + } + ], + "records": [ + "array", + { + "countType":"i16", + "type": [ + "container", + [ + { + "name": "x", + "type": "byte" + }, + { + "name": "y", + "type": "byte" + }, + { + "name": "z", + "type": "byte" + } + ] + ] + } + ], "playerrecords": [ "switch", {