Enhance school simulation and management by integrating roster functionality, allowing for the installation and persistence of student and staff data. Update the school architecture to include a roster alongside existing components, ensuring proper validation against map layouts. Revise room definitions to support homeroom designations and update related tests to validate new functionalities and ensure robustness in roster handling.
This commit is contained in:
@@ -60,6 +60,12 @@ public sealed class RoomDef : Def
|
||||
public IReadOnlyList<string> Positions { get; init; } = [];
|
||||
|
||||
public IReadOnlyList<string> Works { get; init; } = [];
|
||||
|
||||
/// <summary>
|
||||
/// When true, a map room of this def with pupil slots becomes a roster class.
|
||||
/// Labs keep <see cref="ThingDef.PupilSlots"/> for lessons without forming a homeroom.
|
||||
/// </summary>
|
||||
public bool Homeroom { get; init; }
|
||||
}
|
||||
|
||||
public sealed class BuildingDef : Def;
|
||||
|
||||
Reference in New Issue
Block a user