Grasscutter/src/main/java/emu/grasscutter/server/packet/send/PacketAbilityInvocationsNotify.java

33 lines
959 B
Java
Raw Normal View History

2022-04-17 12:43:07 +00:00
package emu.grasscutter.server.packet.send;
import java.util.List;
import emu.grasscutter.net.packet.GenshinPacket;
import emu.grasscutter.net.packet.PacketOpcodes;
import emu.grasscutter.net.proto.AbilityInvocationsNotifyOuterClass.AbilityInvocationsNotify;
import emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry;
public class PacketAbilityInvocationsNotify extends GenshinPacket {
public PacketAbilityInvocationsNotify(AbilityInvokeEntry entry) {
super(PacketOpcodes.AbilityInvocationsNotify, true);
AbilityInvocationsNotify proto = AbilityInvocationsNotify.newBuilder()
.addInvokes(entry)
.build();
this.setData(proto);
}
public PacketAbilityInvocationsNotify(List<AbilityInvokeEntry> entries) {
super(PacketOpcodes.AbilityInvocationsNotify, true);
AbilityInvocationsNotify proto = AbilityInvocationsNotify.newBuilder()
.addAllInvokes(entries)
.build();
this.setData(proto);
}
}