@Override
    public void deserialize(Buffer buf) {
        int limit = buf.readUShort();
        finishedQuestsIds = new short[limit];
        for (int i = 0; i < limit; i++) {
            finishedQuestsIds[i] = buf.readShort();
        }
        limit = buf.readUShort();
        finishedQuestsCounts = new short[limit];
        for (int i = 0; i < limit; i++) {
            finishedQuestsCounts[i] = buf.readShort();
        }
        limit = buf.readUShort();
        activeQuests = new QuestActiveInformations[limit];
        for (int i = 0; i < limit; i++) {
            activeQuests[i] = ProtocolTypeManager.getInstance().build(buf.readShort());
            activeQuests[i].deserialize(buf);
        }
    }