Add class-teacher slots on SchoolClass with owner-only assign/clear.

EOF

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Leonid Pershin
2026-08-21 09:37:37 +03:00
co-authored by Cursor
parent 99eca80d6d
commit 4096d5306e
22 changed files with 992 additions and 22 deletions
+11
View File
@@ -320,6 +320,17 @@ public sealed class School : IDisposable
TimetableDirty = true;
}
/// <summary>
/// Writes roster fields that do not change who is in the World (class-teacher slots). No
/// respawn and no timetable dirty — unlike <see cref="ApplyStaffing"/>.
/// </summary>
public void ApplyRosterData(Roster roster)
{
ObjectDisposedException.ThrowIf(_disposed, this);
ArgumentNullException.ThrowIfNull(roster);
Roster = roster;
}
public void SetTimetable(Timetable timetable)
{
ObjectDisposedException.ThrowIf(_disposed, this);