mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-12-04 09:50:08 +00:00
1b97b4afa0
Also fixed a few dungeon script handlers
24 lines
852 B
Java
24 lines
852 B
Java
package emu.grasscutter.server.packet.send;
|
|
|
|
import emu.grasscutter.game.dungeons.DungeonChallenge;
|
|
import emu.grasscutter.net.packet.BasePacket;
|
|
import emu.grasscutter.net.packet.PacketOpcodes;
|
|
import emu.grasscutter.net.proto.DungeonChallengeBeginNotifyOuterClass.DungeonChallengeBeginNotify;
|
|
|
|
public class PacketDungeonChallengeBeginNotify extends BasePacket {
|
|
|
|
public PacketDungeonChallengeBeginNotify(DungeonChallenge challenge) {
|
|
super(PacketOpcodes.DungeonChallengeBeginNotify, true);
|
|
|
|
DungeonChallengeBeginNotify proto = DungeonChallengeBeginNotify.newBuilder()
|
|
.setChallengeId(challenge.getChallengeId())
|
|
.setChallengeIndex(challenge.getChallengeIndex())
|
|
.setGroupId(challenge.getGroup().id)
|
|
.addParamList(challenge.getObjective())
|
|
.addParamList(challenge.getTimeLimit())
|
|
.build();
|
|
|
|
this.setData(proto);
|
|
}
|
|
}
|