Add sprinkler valve simulation contract

This commit is contained in:
2026-05-14 10:15:12 +02:00
parent 6db3e60fd1
commit 2ad7feef96
13 changed files with 194 additions and 6 deletions

View File

@@ -96,6 +96,7 @@ public sealed class SimulationEngine
var next = level;
next = NetworkPropagationSystem.Propagate(next);
next = SprinklerSystem.ApplyPressureDebt(next);
next = ConsumerSystem.Resolve(next);
next = StructuralIntegritySystem.Resolve(next);
return next;
@@ -104,6 +105,7 @@ public sealed class SimulationEngine
private static LevelState ResolveStepContent(LevelState level)
{
var next = level;
next = SprinklerSystem.Discharge(next);
next = LeakSystem.Inject(next);
next = SurfaceInteractionSystem.Resolve(next);
next = next with { Global = next.Global with { Step = next.Global.Step + 1 } };