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

33 lines
953 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.BasePacket;
2022-04-17 12:43:07 +00:00
import emu.grasscutter.net.packet.PacketOpcodes;
import emu.grasscutter.net.proto.AbilityInvocationsNotifyOuterClass.AbilityInvocationsNotify;
import emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry;
public class PacketAbilityInvocationsNotify extends BasePacket {
2022-04-17 12:43:07 +00:00
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);
}
}