feat: change game time (#2061)

* feat: change game time

* Update proto names
This commit is contained in:
hamusuke
2023-02-24 13:21:44 +09:00
committed by GitHub
Unverified
parent a078b5ae28
commit 220c23b960
8 changed files with 1681 additions and 7 deletions
@@ -0,0 +1,19 @@
package emu.grasscutter.server.packet.send;
import emu.grasscutter.net.packet.BasePacket;
import emu.grasscutter.net.packet.PacketOpcodes;
import emu.grasscutter.net.proto.SkipPlayerGameTimeReqOuterClass;
import emu.grasscutter.net.proto.SkipPlayerGameTimeRspOuterClass;
public class PacketSkipPlayerGameTimeRsp extends BasePacket {
public PacketSkipPlayerGameTimeRsp(SkipPlayerGameTimeReqOuterClass.SkipPlayerGameTimeReq req) {
super(PacketOpcodes.SkipPlayerGameTimeRsp);
var proto = SkipPlayerGameTimeRspOuterClass.SkipPlayerGameTimeRsp.newBuilder()
.setClientGameTime(req.getClientGameTime())
.setGameTime(req.getGameTime())
.build();
this.setData(proto);
}
}