package emu.grasscutter.server.packet.send;

import emu.grasscutter.net.packet.*;
import io.grasscutter.net.proto.quest.QuestUpdateQuestVarNotify;
import java.util.stream.IntStream;

public class PacketQuestUpdateQuestVarNotify extends BasePacket {
    public PacketQuestUpdateQuestVarNotify(int mainQuestId, int... questVars) {
        super(PacketOpcodes.QuestUpdateQuestVarNotify);

        this.setData(
                QuestUpdateQuestVarNotify.newBuilder()
                        .setParentQuestId(mainQuestId)
                        .addAllQuestVar(IntStream.of(questVars).boxed().toList())
                        .build());
    }
}
