OutputBays owns where a hauler loads; CanCall needs a free empty bay

StationServices.Load and HaulRun.CanCall read StationWants.OutputBays per good, not SiloData bays: a station with a silo is
unchanged, one without loads where its outputs land. CanCall also requires the bay TryDock would take to exist and hold no cargo
(TryUndock refuses one that does). StationWants gains Drawable (every draw of the installed recipe facilities, startable or not)
and Makes (the set Allocation builds); Agent.TopSpeedOf gives Fly and the pilot one speed rule.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
soul 2026-11-29 18:38:06 +01:00
commit df0b703689
4 changed files with 33 additions and 15 deletions

View file

@ -34,7 +34,11 @@ public class Agent
public GameplaySettings Settings { get; }
// How this pilot fights: its faction's doctrine for its role (Zone.CreateAgent resolves it).
public RoleDoctrine Doctrine { get; }
public float TopSpeed => _velocityLimit?.Limit ?? 100;
// How fast this hull flies: its VelocityLimit, or 100 without one. The pilot (the cached limit) and an off-screen hauler's flight
// (HaulRun.Fly, TopSpeedOf) read the one rule.
public float TopSpeed => SpeedOf(_velocityLimit);
public static float TopSpeedOf(Ship ship) => SpeedOf(ship.GetBehavior<VelocityLimit>());
private static float SpeedOf(VelocityLimit limit) => limit?.Limit ?? 100;
public Agent(Ship ship, RoleDoctrine doctrine)
{