RegionClock: the player's zone steps, every other zone's facilities advance by 60 s spans, entering settles the zone and records what the player saw leaving

RegionClock.Step is a run's one driver (ActionGameManager no longer calls Zone.Update); Zone.AdvanceTo runs the off-screen facilities by the span a zone missed and places its orbits at the new time. RegionClock.Enter is the one writer of VisitedZones and GalaxyZone.LastSeen (SavedZone Key 7). PackedContents is a Zone's construction input, cleared by RunStart.Live. The sector map reads RegionClock.Seen. Galaxy's save constructor copies the pack it builds a Zone from, so a Continue in the same process reads the save as written.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
soul 2026-11-28 20:43:11 +01:00
commit fb1f1df869
10 changed files with 156 additions and 53 deletions

View file

@ -19,8 +19,7 @@ public class FacilityData : BehaviorData
}
// The installed facility (ruling demand-consumed-inputs-processed-by-facilities). It ticks once per zone step, from EquippedItem.Update
// while the item is active, and on screen only; an unloaded zone is frozen and the strategic tick (target r3 cut 8) calls the same
// Production.Advance for what is off screen. Its recipes are the run list of its design, fixed for a run because the catalog is.
// while the item is active, on screen; off screen RegionClock.AdvanceFacilities calls Execute with the span the zone missed. Its recipes are the run list of its design, fixed for a run because the catalog is.
public class Facility : Behavior
{
private IReadOnlyList<RecipeData> _runList;