mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-12-04 09:50:08 +00:00
33 lines
953 B
Java
33 lines
953 B
Java
package emu.grasscutter.server.packet.send;
|
|
|
|
import java.util.List;
|
|
|
|
import emu.grasscutter.net.packet.BasePacket;
|
|
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 {
|
|
|
|
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);
|
|
}
|
|
|
|
}
|