mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-05-22 07:09:56 +08:00
26 lines
659 B
Java
26 lines
659 B
Java
package emu.grasscutter.server.packet.send;
|
|
|
|
import emu.grasscutter.game.entity.EntityNPC;
|
|
import emu.grasscutter.net.packet.BasePacket;
|
|
import emu.grasscutter.net.packet.PacketOpcodes;
|
|
import emu.grasscutter.net.proto.GroupSuiteNotifyOuterClass;
|
|
|
|
import java.util.List;
|
|
|
|
public class PacketGroupSuiteNotify extends BasePacket {
|
|
|
|
/**
|
|
* control which npc suite is loaded
|
|
*/
|
|
public PacketGroupSuiteNotify(List<EntityNPC> list) {
|
|
super(PacketOpcodes.GroupSuiteNotify);
|
|
|
|
var proto = GroupSuiteNotifyOuterClass.GroupSuiteNotify.newBuilder();
|
|
|
|
list.forEach(item -> proto.putGroupMap(item.getGroupId(), item.getSuiteId()));
|
|
|
|
this.setData(proto);
|
|
|
|
}
|
|
}
|