mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-06-13 19:24:52 +08:00
Implement map marking features
Teleport still exists on fish hook mark. Added mapMark-related protos. Map marking data is stored in players collection.
This commit is contained in:
committed by
Melledy
Unverified
parent
4220b6b88d
commit
06983e9e84
@@ -0,0 +1,25 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user