fix: synced timer
All checks were successful
Linux arm64 / Build (push) Successful in 26s

This commit is contained in:
2025-02-01 11:22:59 +01:00
parent 3863c812c8
commit caf6569409
7 changed files with 50 additions and 24 deletions

View File

@@ -1,5 +1,7 @@
package network.protocol.packets;
import java.time.Instant;
import network.protocol.Packet;
import network.protocol.PacketVisitor;
import network.protocol.Packets;
@@ -9,15 +11,22 @@ public class StartGamePacket extends Packet {
static private final long serialVersionUID = Packets.StartGame.ordinal();
private final String serializedSudoku;
// used to resume game
private final Instant instant;
public StartGamePacket(String serializedSudoku) {
public StartGamePacket(String serializedSudoku, Instant instant) {
this.serializedSudoku = serializedSudoku;
this.instant = instant;
}
public String getSerializedSudoku() {
return serializedSudoku;
}
public Instant getInstant() {
return instant;
}
@Override
public void accept(PacketVisitor packetVisitor) {
packetVisitor.visitPacket(this);