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

emu.grasscutter.server.packet.send.PacketQuestTransmitRsp 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.QuestTransmitReqOuterClass.QuestTransmitReq;
import emu.grasscutter.net.proto.QuestTransmitRspOuterClass.QuestTransmitRsp;
import emu.grasscutter.net.proto.RetcodeOuterClass.Retcode;

public class PacketQuestTransmitRsp extends BasePacket {

    public PacketQuestTransmitRsp(boolean result, QuestTransmitReq req) {
        super(PacketOpcodes.QuestTransmitRsp);
        this.setData(
                QuestTransmitRsp.newBuilder()
                        .setQuestId(req.getQuestId())
                        .setPointId(req.getPointId())
                        .setRetcode(result ? Retcode.RET_SUCC_VALUE : Retcode.RET_FAIL_VALUE));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy