mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-05-16 15:43:09 +08:00
30 lines
786 B
Java
30 lines
786 B
Java
package emu.grasscutter.server.packet.send;
|
|
|
|
import emu.grasscutter.data.binout.SceneNpcBornEntry;
|
|
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 {
|
|
|
|
/**
|
|
* Real control which npc suite is loaded
|
|
* EntityNPC is useless
|
|
*/
|
|
public PacketGroupSuiteNotify(List<SceneNpcBornEntry> npcBornEntries) {
|
|
super(PacketOpcodes.GroupSuiteNotify);
|
|
|
|
var proto = GroupSuiteNotifyOuterClass.GroupSuiteNotify.newBuilder();
|
|
|
|
npcBornEntries.forEach(x ->
|
|
x.getSuiteIdList().forEach(y ->
|
|
proto.putGroupMap(x.getGroupId(), y)
|
|
));
|
|
|
|
this.setData(proto);
|
|
|
|
}
|
|
}
|