Files
h-school/src/HSchool.Server/Game/SchoolState.cs
T
Leonid PershinandCursor edd3d35c79
ci / server (push) Failing after 3m34s
ci / client (push) Failing after 12s
Merge phase 26 school seed.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-20 00:43:33 +03:00

18 lines
525 B
C#

namespace HSchool.Server.Game;
/// <summary>
/// Immutable copy of a school, safe to hand to request threads. The live <c>School</c> object
/// never leaves its worker thread.
/// </summary>
internal sealed record SchoolState(
int Id,
string Name,
DateTime GameTime,
bool Running,
byte SpeedIndex,
IReadOnlyList<string> ModIds,
int Seed);
/// <summary>Everything the main menu needs in one read.</summary>
internal sealed record SchoolsState(int MaxSchools, IReadOnlyList<SchoolState> Schools);