1package com.runehive.util.parser.impl;
3import com.google.gson.JsonObject;
4import com.runehive.net.packet.PacketRepository;
5import com.runehive.util.parser.GsonParser;
18 super(
"io/message_sizes",
false);
22 protected void parse(JsonObject data) {
23 final int opcode = data.get(
"opcode").getAsInt();
24 final int size = data.get(
"size").getAsInt();
The repository that stores packets sizes and listeners for how to execute the packets.
static void registerType(int opcode, int type)
Registers a type for a packet.
GsonParser(String path)
Creates a new GsonParser.
void parse(JsonObject data)
The method allows a user to modify the data as its being parsed.
PacketSizeParser()
Creates a new PacketSizeParser.