Enhance school management and protocol handling by introducing a new worker failure mechanism, ensuring proper cleanup of schools when a worker thread encounters an error. Update the map snapshot protocol to allow larger school data sizes, improving the handling of extensive map layouts. Revise documentation to reflect changes in save intervals and introduce a minimum save interval for better performance. Update tests to validate the new functionalities and ensure robustness in handling large data scenarios.
ci / server (push) Failing after 3m29s
ci / client (push) Successful in 16s

This commit is contained in:
Leonid Pershin
2026-08-18 17:02:28 +03:00
parent 6ca9ff9d03
commit f000b128f6
14 changed files with 325 additions and 74 deletions
+2 -2
View File
@@ -94,13 +94,13 @@ export class GameConnection {
this.connect();
}
/** Starts watching a school; its calendar starts running server-side. */
/** Starts watching a school. Its calendar was already running — opening only subscribes. */
openSchool(schoolId: number): void {
this.openSchoolId = schoolId;
this.send(encodeOpenSchool(schoolId));
}
/** Back to the menu; the school stops ticking. */
/** Back to the menu. Clock frames stop; the school keeps running until the player pauses it. */
closeSchool(): void {
if (this.openSchoolId === null) {
return;