Add lesson attendance from presence (present/late/absent).

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Leonid Pershin
2026-08-21 12:37:01 +03:00
co-authored by Cursor
parent d3c2327e23
commit a2b35da4dd
12 changed files with 835 additions and 11 deletions
+11
View File
@@ -722,6 +722,17 @@ internal static class PeopleDefValidator
previous = floor;
}
}
if (behavior.AttendanceMax < 0)
{
throw new ContentLoadException($"BehaviorDef '{behavior.DefName}' attendanceMax cannot be negative.");
}
if (behavior.LessonLateMinutes < 0f)
{
throw new ContentLoadException(
$"BehaviorDef '{behavior.DefName}' lessonLateMinutes cannot be negative.");
}
}
private static void ValidateTopic(TopicDef topic, DefCatalog catalog)