Copy some files from Grasscutter-Quests

NOT completely finished, nor is it completely done. Protocol issues remain! (including lack of packet IDs)
This commit is contained in:
KingRainbow44
2023-04-01 18:06:30 -04:00
Unverified
parent 262ee38ded
commit daa51e53b7
381 changed files with 10284 additions and 9149 deletions
@@ -1,17 +1,16 @@
package emu.grasscutter.server.packet.send;
import emu.grasscutter.net.packet.BasePacket;
import emu.grasscutter.net.packet.PacketOpcodes;
import emu.grasscutter.net.proto.ShowClientGuideNotifyOuterClass.ShowClientGuideNotify;
public class PacketShowClientGuideNotify extends BasePacket {
public PacketShowClientGuideNotify(String guideName) {
super(PacketOpcodes.ShowClientGuideNotify, true);
ShowClientGuideNotify proto = ShowClientGuideNotify.newBuilder()
.setGuideName(guideName)
.build();
this.setData(proto);
}
}
package emu.grasscutter.server.packet.send;
import emu.grasscutter.net.packet.BasePacket;
import emu.grasscutter.net.packet.PacketOpcodes;
import emu.grasscutter.net.proto.ShowClientGuideNotifyOuterClass.ShowClientGuideNotify;
public class PacketShowClientGuideNotify extends BasePacket {
public PacketShowClientGuideNotify(String guideName) {
super(PacketOpcodes.ShowClientGuideNotify, true);
ShowClientGuideNotify proto =
ShowClientGuideNotify.newBuilder().setGuideName(guideName).build();
this.setData(proto);
}
}