All Downloads are FREE. Search and download functionalities are using the official Maven repository.

emu.grasscutter.server.packet.send.PacketGachaWishRsp Maven / Gradle / Ivy

There is a newer version: 1.7.3
Show newest version
package emu.grasscutter.server.packet.send;

import emu.grasscutter.net.packet.*;
import emu.grasscutter.net.proto.GachaWishRspOuterClass.GachaWishRsp;

public class PacketGachaWishRsp extends BasePacket {

    public PacketGachaWishRsp(
            int gachaType, int scheduleId, int itemId, int progress, int maxProgress) {
        super(PacketOpcodes.GachaWishRsp);

        GachaWishRsp proto =
                GachaWishRsp.newBuilder()
                        .setGachaType(gachaType)
                        .setGachaScheduleId(scheduleId)
                        .setWishItemId(itemId)
                        .setWishProgress(progress)
                        .setWishMaxProgress(maxProgress)
                        .build();

        this.setData(proto);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy