Implement applicant pool functionality in school simulation, allowing for the management of job seekers who are not yet part of the school roster. Update the catalog to include staffing definitions and enhance the API to support applicant data retrieval. Revise the school architecture to handle applicant refresh logic and ensure proper integration with existing roster management. Update tests to validate the new applicant functionalities and ensure robustness in handling staffing scenarios.
This commit is contained in:
@@ -308,6 +308,7 @@ public sealed class CatalogLoader
|
||||
var needs = new Dictionary<string, NeedDef>(StringComparer.Ordinal);
|
||||
var nameSets = new Dictionary<string, NameSetDef>(StringComparer.Ordinal);
|
||||
var subjects = new Dictionary<string, SubjectDef>(StringComparer.Ordinal);
|
||||
var staffing = new Dictionary<string, StaffingDef>(StringComparer.Ordinal);
|
||||
|
||||
foreach (var (key, json) in resolved)
|
||||
{
|
||||
@@ -355,6 +356,9 @@ public sealed class CatalogLoader
|
||||
case DefKind.Subject:
|
||||
subjects[key.Name] = Jsonc.Deserialize<SubjectDef>(json);
|
||||
break;
|
||||
case DefKind.Staffing:
|
||||
staffing[key.Name] = Jsonc.Deserialize<StaffingDef>(json);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -374,6 +378,7 @@ public sealed class CatalogLoader
|
||||
needs,
|
||||
nameSets,
|
||||
subjects,
|
||||
staffing,
|
||||
ru,
|
||||
en);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user