mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-12-05 03:03:31 +00:00
06983e9e84
Teleport still exists on fish hook mark. Added mapMark-related protos. Map marking data is stored in players collection.
25 lines
827 B
Java
25 lines
827 B
Java
package emu.grasscutter.server.packet.send;
|
|
|
|
import emu.grasscutter.game.player.Player;
|
|
import emu.grasscutter.net.packet.BasePacket;
|
|
import emu.grasscutter.net.packet.PacketOpcodes;
|
|
import emu.grasscutter.net.proto.*;
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
|
|
public class PacketMarkNewNotify extends BasePacket {
|
|
|
|
public PacketMarkNewNotify(Player player, int markNewType, ArrayList<Integer> idList) {
|
|
super(PacketOpcodes.MarkNewNotify);
|
|
|
|
MarkNewNotifyOuterClass.MarkNewNotify.Builder proto = MarkNewNotifyOuterClass.MarkNewNotify.newBuilder();
|
|
proto.setMarkNewType(markNewType);
|
|
for (Integer id: idList) {
|
|
proto.addIdList(id);
|
|
}
|
|
|
|
MarkNewNotifyOuterClass.MarkNewNotify data = proto.build();
|
|
this.setData(data);
|
|
}
|
|
} |