mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-12-05 03:03:31 +00:00
33 lines
945 B
Java
33 lines
945 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.CombatInvocationsNotifyOuterClass.CombatInvocationsNotify;
|
|
import emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry;
|
|
|
|
public class PacketCombatInvocationsNotify extends BasePacket {
|
|
|
|
public PacketCombatInvocationsNotify(CombatInvokeEntry entry) {
|
|
super(PacketOpcodes.CombatInvocationsNotify, true);
|
|
|
|
CombatInvocationsNotify proto = CombatInvocationsNotify.newBuilder()
|
|
.addInvokeList(entry)
|
|
.build();
|
|
|
|
this.setData(proto);
|
|
}
|
|
|
|
public PacketCombatInvocationsNotify(List<CombatInvokeEntry> entries) {
|
|
super(PacketOpcodes.CombatInvocationsNotify, true);
|
|
|
|
CombatInvocationsNotify proto = CombatInvocationsNotify.newBuilder()
|
|
.addAllInvokeList(entries)
|
|
.build();
|
|
|
|
this.setData(proto);
|
|
}
|
|
|
|
}
|