2022-04-17 12:43:07 +00:00
|
|
|
package emu.grasscutter.server.packet.send;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
2022-04-27 04:21:57 +00:00
|
|
|
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;
|
|
|
|
|
2022-04-27 04:21:57 +00:00
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|