build config changes
All checks were successful
Galvanic Corrosion Cross-Compile / build (push) Successful in 1m50s

* Commit hash shipped with builds
* Post & pre-build events
* Objective fixes
* Orientation challenge filler
* Custom Rooms base
    - Currently cannot save rooms (CDN not set up)
* Moved root path to path.ts
* Room cloning
* Rewrote instances - the whole thing
* Relationships are still untested
* Charades Words
* AG Room fetch
* Private room matchmaking
* Socket fixes
This commit is contained in:
2025-05-12 09:07:59 -04:00
parent 6a249ef813
commit 83440a9245
96 changed files with 1201 additions and 436 deletions

View File

@@ -1,6 +1,6 @@
/* Galvanic Corrosion - Rec Room custom server for communities.
<https://gitea.proxnet.dev/zombieb/galvanic-corrosion>
Copyright (C) 2025 @zombieb (Discord / proxnet Gitea)
Copyright (C) 2025 @zombieb (Discord / proxnet Gitea)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
@@ -25,7 +25,6 @@ import Logging from "@proxnet/undead-logging";
import UnifiedProfile from "../../data/profiles.ts";
import { PlayerStatusVisibility, VRMovementMode } from "../../data/live/types.ts";
import { SettingKey } from "../../data/content/settings.ts";
import Instances from "../../data/live/instances.ts";
const log = new Logging("MatchPlayerRoute");
@@ -86,7 +85,7 @@ route.router.post('/logout',
APIUtils.validateRequestBody(LoginSchema),
(_rq, rs) => {
Instances.removePlayerFromCurrentInstance(rs.locals.profile);
rs.locals.profile.getInstance()?.removePlayer(rs.locals.profile);
rs.sendStatus(200);
}
@@ -129,10 +128,10 @@ route.router.put('/statusvisibility',
);
interface VRMovementModeBody {
vrMovementMode: PlayerStatusVisibility
vrMovementMode: VRMovementMode
}
const VRMovementModeSchema = z.object({
vrMovementMode: z.nativeEnum(VRMovementMode)
vrMovementMode: z.enum(Object.values(VRMovementMode).map(String) as [string, ...string[]])
});
route.router.put('/vrmovementmode',
@@ -155,7 +154,7 @@ route.router.put('/photonregionpings',
APIUtils.Authentication,
APIUtils.AuthenticationType(AuthType.Game),
(rq, rs) => {
(_rq, rs) => {
rs.sendStatus(200);
}