This commit is contained in:
2025-09-11 19:47:33 -04:00
parent 317da3aaf7
commit c2eb111291
14 changed files with 217 additions and 44 deletions

View File

@@ -8,6 +8,8 @@ import Command from "../commands/command.ts";
import z from "zod";
import { PushNotificationId } from "../socket/signalr/types.ts";
const log = new Logging("Presence");
export enum VRMovementMode {
TELEPORT,
WALK
@@ -87,6 +89,8 @@ export class Presence {
}
export() {
log.d(`profId ${this.#profile.getId()} presence exported. has instance: ${this.#profile.getInstance() !== null}`);
this.#lastExported = new Date();
const e: PresenceExport = {
playerId: this.#profile.getId(),
@@ -127,7 +131,6 @@ export class ServerPresenceBase extends ServerContentBase {
this.#intervalId = setInterval(() => {
if (this.#presenceMap.size === 0) return;
this.#log.i('Clearing dead presences');
this.#deleteDeadPresences();
}, 300_000);