Custom Rooms + Server global
All checks were successful
Galvanic Corrosion Cross-Compile / build (push) Successful in 49s

* Added Storage and room saving (will be moved to events later)
* Moved `UnifiedProfile` to new `Server` object, along with `CDN`
    - Will move `Rooms` and others to this later
This commit is contained in:
2025-05-24 21:20:30 -04:00
parent ac2701acec
commit 648d46986c
23 changed files with 623 additions and 74 deletions

View File

@@ -21,9 +21,9 @@ import express from "express";
import Matchmaking from "../../data/live/base.ts";
import Presence, { PresenceExport } from "../../data/live/presence.ts";
import { AuthType } from "../../data/users.ts";
import UnifiedProfile from "../../data/profiles.ts";
import { PlayerStatusVisibility, VRMovementMode } from "../../data/live/types.ts";
import { SettingKey } from "../../data/content/settings.ts";
import Server from "../../data/server.ts";
export const route = APIUtils.createRouter('/player');
@@ -49,14 +49,16 @@ route.router.get('/',
const presExport: PresenceExport[] = [];
for (const id of ids) {
const pres = await Presence.get(UnifiedProfile.get(id));
const profile = Server.UnifiedProfile.get(id);
if (!profile) continue;
const pres = await Presence.get(profile);
presExport.push(await pres.export());
}
rs.json(presExport);
}
)
);
route.router.post('/login',