AetherDb usage and ParkHaulers comment name the legs that fly

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
soul 2026-11-29 18:52:48 +01:00
commit b76df4fd19
2 changed files with 3 additions and 3 deletions

View file

@ -71,7 +71,7 @@ public static class EconomyCommand
{ EconomyChecks.LRecipe, EconomyChecks.LLore, EconomyChecks.LProductive, EconomyChecks.LOneKindList, EconomyChecks.LWeights, EconomyChecks.LShape, EconomyChecks.LPrice };
// A batch is compiled code under tools/AetherDb/Economy/ and runs with the operator's authority: reviewed code, never an input.
private const string Usage = "economy report | author [<batch>...] [apply] | " + EconomyPrices.Usage + " | balance [--loop [<seed>...]] [--cap <sim seconds>] | balance --drain [<seed>...] [--window <sim seconds>] [--horizon <sim hours>] [--supply] | balance --region [<seed>...] [--hours <sim hours>]\nbalance reads the chain and changes nothing; --loop adds the player loop (a mining sortie per seed, default seeds 1 2 3 69 97, every belt of each, cap 150 sim seconds a sortie) and the offered gear ladders; --drain, not in the same call, adds a station block per seed: sorties to fill, the window (default 600 sim s) on screen and by spans, and the horizon (default 24 sim h) by spans; --supply tops the wanted ores up through the landing rule every 600 sim s of the horizon (a long --horizon, such as 300, shows a station whose products fill with no outflow: H-drain-saturated). --region, a stage of its own, boots the demo region as a run does and advances every zone, the entrance included, with Zone.AdvanceTo each RegionClock span (default 24 sim h; no zone steps, no cargo moves between stations): per seed the stations by faction and kind with their depth toward the gate, each facility's Stall shares, units held of what it makes, units made per recipe, H-region-idle for a recipe that made nothing and H-region-missing-link for a kind a faction fields that none of its stations outside the entrance zone is. A batch is reviewed code: it runs on a trial copy and must write only through EconomyAuthor. After the batches, author reprices every made good (a commodity, or a design with a recipe) to the price its chain derives; with no batch it reprices alone.";
private const string Usage = "economy report | author [<batch>...] [apply] | " + EconomyPrices.Usage + " | balance [--loop [<seed>...]] [--cap <sim seconds>] | balance --drain [<seed>...] [--window <sim seconds>] [--horizon <sim hours>] [--supply] | balance --region [<seed>...] [--hours <sim hours>]\nbalance reads the chain and changes nothing; --loop adds the player loop (a mining sortie per seed, default seeds 1 2 3 69 97, every belt of each, cap 150 sim seconds a sortie) and the offered gear ladders; --drain, not in the same call, adds a station block per seed: sorties to fill, the window (default 600 sim s) on screen and by spans, and the horizon (default 24 sim h) by spans; --supply tops the wanted ores up through the landing rule every 600 sim s of the horizon (a long --horizon, such as 300, shows a station whose products fill with no outflow: H-drain-saturated). --region, a stage of its own, boots the demo region as a run does and advances every zone, the entrance included, with RegionClock.Advance each RegionClock span (default 24 sim h; no zone steps; the seeded haul legs fly): per seed the stations by faction and kind with their depth toward the gate, each facility's Stall shares, units held of what it makes, units made per recipe, H-region-idle for a recipe that made nothing and H-region-missing-link for a kind a faction fields that none of its stations outside the entrance zone is. A batch is reviewed code: it runs on a trial copy and must write only through EconomyAuthor. After the batches, author reprices every made good (a commodity, or a design with a recipe) to the price its chain derives; with no batch it reprices alone.";
public static int Run(string[] args, TextWriter output)
{

View file

@ -365,8 +365,8 @@ public sealed class DemoArena : IDisposable
// The refinery that buys a sortie's ore, and the trade hub that holds ore for onward haul.
public OrbitalEntity Processing, Zenith;
// The demo's hauler flies orders on screen and has no span-side model (follow-up drain-haul-throughput; off-screen hauling is
// region-haul-legs): the harnesses that measure facilities take it out of the arena before anything else. Returns how many.
// The drain stage's own spans move no haul (follow-up drain-haul-throughput), so it takes the demo's hauler out of the arena before
// anything else. The region view does not park: RegionClock.Advance flies every hauler. Returns how many.
public int ParkHaulers()
{
var haulers = Arena.Entities.OfType<Ship>().Where(ship => ship.Haul.Key.IsSet()).ToList();