package emu.grasscutter.server.packet.send;

import emu.grasscutter.net.packet.*;
import io.grasscutter.net.proto.item.ReliquaryDecomposeRsp;
import io.grasscutter.net.proto.retcode.Retcode;
import java.util.List;

public class PacketReliquaryDecomposeRsp extends BasePacket {
    public PacketReliquaryDecomposeRsp(Retcode retcode) {
        super(PacketOpcodes.ReliquaryDecomposeRsp);

        ReliquaryDecomposeRsp proto =
                ReliquaryDecomposeRsp.newBuilder().setRetcode(retcode.getNumber()).build();

        this.setData(proto);
    }

    public PacketReliquaryDecomposeRsp(List<Long> output) {
        super(PacketOpcodes.ReliquaryDecomposeRsp);

        ReliquaryDecomposeRsp proto = ReliquaryDecomposeRsp.newBuilder().addAllGuidList(output).build();

        this.setData(proto);
    }
}
