Implement game time locking

implement for quests
This commit is contained in:
KingRainbow44
2023-05-08 00:11:29 -04:00
parent d32f6982be
commit a4f5d3286d
4 changed files with 61 additions and 11 deletions

View File

@@ -0,0 +1,18 @@
package emu.grasscutter.server.packet.send;
import emu.grasscutter.game.world.World;
import emu.grasscutter.net.packet.BasePacket;
import emu.grasscutter.net.packet.PacketOpcodes;
import emu.grasscutter.net.proto.ClientLockGameTimeNotifyOuterClass.ClientLockGameTimeNotify;
public final class PacketClientLockGameTimeNotify extends BasePacket {
public PacketClientLockGameTimeNotify(World world) {
super(PacketOpcodes.ClientLockGameTimeNotify);
var packet = ClientLockGameTimeNotify.newBuilder()
.setIsLock(world.isTimeLocked())
.build();
this.setData(packet);
}
}