Add opinions storage, morning drift, and Connections card tab.

This commit is contained in:
Leonid Pershin
2026-08-20 07:34:57 +03:00
parent b9d91d387e
commit b1b4f18b40
24 changed files with 1020 additions and 27 deletions
+3
View File
@@ -52,6 +52,9 @@ public sealed record Person
/// <summary>Changing-room node when this pupil won a locker slot. Null for staff and the rest.</summary>
public string? LockerRoomId { get; init; }
/// <summary>What this person thinks of others, A→B. Sparse; zero is not stored.</summary>
public IReadOnlyDictionary<string, int> Opinions { get; init; } = new Dictionary<string, int>(StringComparer.Ordinal);
public int AgeOn(DateTime asOf) => SchoolYears.AgeYears(BirthDate, asOf);
}