@Override
    public void serialize(Buffer buf) {
        buf.writeUShort(finishedQuestsIds.length);
        for (short entry : finishedQuestsIds) {
            buf.writeShort(entry);
        }
        buf.writeUShort(finishedQuestsCounts.length);
        for (short entry : finishedQuestsCounts) {
            buf.writeShort(entry);
        }
        buf.writeUShort(activeQuests.length);
        for (QuestActiveInformations entry : activeQuests) {
            buf.writeShort(entry.getTypeId());
            entry.serialize(buf);
        }
    }