From 8f1704bc7afd00b9c69ed57251aaf0fd81ac4547 Mon Sep 17 00:00:00 2001 From: deathcap Date: Sat, 23 Jan 2016 14:08:20 -0800 Subject: [PATCH] FML|HS: ServerHello: decode overrideDimension --- examples/client_forge/client_forge.js | 33 +++++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/examples/client_forge/client_forge.js b/examples/client_forge/client_forge.js index e54ab18..6e36a25 100644 --- a/examples/client_forge/client_forge.js +++ b/examples/client_forge/client_forge.js @@ -51,8 +51,37 @@ proto.addType('FML|HS', [ }, "default": "void" }, - ] } - ] + ], + }, + { + "name": "overrideDimension", + "type": [ + "switch", + { + "compareTo": "discriminator", + "fields": { + "0": "int" + /* TODO + [ + "switch", + { + // "Only sent if protocol version is greater than 1." + "compareTo": "fmlProtocolVersion", + "fields": { + "0": "void", + "1": "void" + }, + "default": "int" + } + ] + }, + */ + }, + "default": "void" + }, + ] + } + ] ]); client.on('custom_payload', function(packet) {