Added code to mark a player AFK

This commit is contained in:
aqw42
2025-05-29 19:10:16 +02:00
parent 5446620788
commit 84fa28ba30
8 changed files with 42 additions and 2 deletions
+9
View File
@@ -533,6 +533,15 @@ export class GameServer {
}
}
private markClientIdle(client: Client, isIdle: boolean) {
client.isIdle = isIdle;
this.addIntent({
type: "mark_idle",
clientID: client.clientID,
isIdle: isIdle,
});
}
private archiveGame() {
this.log.info("archiving game", {
gameID: this.id,