diff --git a/lib/protocol.js b/lib/protocol.js index e3e4d00..58e0ce8 100644 --- a/lib/protocol.js +++ b/lib/protocol.js @@ -568,7 +568,19 @@ var packets = { } } ]}, title: { id: 0x45, fields: [ - /* TODO: Going to be a pain too */ + { name: "action", type: "varint"}, + { name: "text", type: "string", condition: function(field_values) { + return field_values['action'] == 0 || field_values['action'] == 1; + } }, + { name: "fadeIn", type: "int", condition: function(field_values) { + return field_values['action'] == 0 || field_values['action'] == 1; + } }, + { name: "stay", type: "int", condition: function(field_values) { + return field_values['action'] == 2; + } }, + { name: "fadeOut", type: "int", condition: function(field_values) { + return field_values['action'] == 2; + } } ]}, set_compression: { id: 0x46, fields: [ { name: "threshold", type: "varint"}