package emu.grasscutter.server.packet.send;

import emu.grasscutter.net.packet.*;
import io.grasscutter.net.proto.gadget.VehicleStaminaNotify;

public class PacketVehicleStaminaNotify extends BasePacket {

    public PacketVehicleStaminaNotify(int vehicleId, float newStamina) {
        super(PacketOpcodes.VehicleStaminaNotify);
        VehicleStaminaNotify.Builder proto = VehicleStaminaNotify.newBuilder();

        proto.setEntityId(vehicleId);
        proto.setCurStamina(newStamina);

        this.setData(proto.build());
    }
}
