Enhance staffing management in school simulation by introducing API endpoints for hiring staff and assigning subjects. Implement payroll cap validation to ensure hiring and subject assignments do not exceed the allocated budget. Update the simulation options to include a monthly payroll cap and revise related classes to support new staffing functionalities. Enhance documentation to reflect these changes and update tests to validate the new features.
This commit is contained in:
@@ -49,6 +49,12 @@ public sealed class SimulationOptions
|
||||
/// </summary>
|
||||
public int MinSaveIntervalMilliseconds { get; set; } = 1000;
|
||||
|
||||
/// <summary>
|
||||
/// Monthly payroll the player may commit. Hire and subject assignment that would exceed it
|
||||
/// are rejected immediately; money itself does not move.
|
||||
/// </summary>
|
||||
public float MonthlyPayrollCap { get; set; } = 10_000f;
|
||||
|
||||
/// <summary>Length of one fixed step.</summary>
|
||||
public double FixedDeltaTime => 1d / TickRate;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user