mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-12-05 03:03:31 +00:00
30 lines
886 B
Java
30 lines
886 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.AbilityInvokeEntryOuterClass.AbilityInvokeEntry;
|
|
import emu.grasscutter.net.proto.ClientAbilityInitFinishNotifyOuterClass.ClientAbilityInitFinishNotify;
|
|
|
|
public class PacketClientAbilityInitFinishNotify extends BasePacket {
|
|
|
|
public PacketClientAbilityInitFinishNotify(List<AbilityInvokeEntry> entries) {
|
|
super(PacketOpcodes.ClientAbilityInitFinishNotify, true);
|
|
|
|
int entityId = 0;
|
|
|
|
if (entries.size() > 0) {
|
|
AbilityInvokeEntry entry = entries.get(0);
|
|
entityId = entry.getEntityId();
|
|
}
|
|
|
|
ClientAbilityInitFinishNotify proto = ClientAbilityInitFinishNotify.newBuilder()
|
|
.setEntityId(entityId)
|
|
.addAllInvokes(entries)
|
|
.build();
|
|
|
|
this.setData(proto);
|
|
}
|
|
}
|