mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-19 13:55:08 +00:00
Added code to mark a player AFK
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user