@Override
    public void serialize(Buffer buf) {
        buf.writeInt(mapId);
        buf.writeUShort(npcsIdsWithQuest.length);
        for (int entry : npcsIdsWithQuest) {
            buf.writeInt(entry);
        }
        buf.writeUShort(questFlags.length);
        for (GameRolePlayNpcQuestFlag entry : questFlags) {
            entry.serialize(buf);
        }
        buf.writeUShort(npcsIdsWithoutQuest.length);
        for (int entry : npcsIdsWithoutQuest) {
            buf.writeInt(entry);
        }
    }