Galaxy.IsPrelude, SavedGame.IsTutorial (key 11 retired), TutorialGalaxy, TutorialGenerationSettings, its Settings.asset block and the
dead GalaxyStage/Galaxy constructor parameters (PlayerSettings, narrative directory) are gone. The rules they bundled move to their
owners: GalaxyCast.InfluenceScale (demo and test cast .5, main 1) carried by Galaxy and saved as SavedGame key 17, so a pre-cut run is
refused at Continue with a message; Scenario.EntranceStation (MainGalaxy false) decides the forced entrance station instead of the
galaxy; GalaxyStage.Cast(cast) replaces Prelude. The six arenas that read the authored cast generate DemoTerminus.Cast; Development
lists only Main Galaxy. TutorialBackgroundSettings is renamed CastBackgroundSettings in the asset YAML. Tests build their galaxy from
TestCasts.Wide and Background, the retired block's values, so every test galaxy is unchanged.
Suite at 8b2d1f544: 4 red (font credits, chunk info, trojan swarm, two-ai digest, Windows). After: the same 4, digest unchanged.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
40 lines
1.9 KiB
C#
40 lines
1.9 KiB
C#
// A scenario is one way to set up a new run (docs/scenarios-cut.md, R): a script, compiled with the game, that says
|
|
// which galaxy to generate and what the run starts with. New Game lists them (Scenarios). RunStart runs one: it
|
|
// generates the galaxy through GalaxyStage, the arena under Ambient, and admits what Stage placed through a
|
|
// ScenarioStage. A scenario only declares; once staged, everything it placed is ordinary run state.
|
|
public abstract class Scenario
|
|
{
|
|
public abstract string Name { get; }
|
|
|
|
// The scenario's stable identity: kebab-case, unique across Scenarios, never shown to the player, recorded by
|
|
// matches and replays. Name is display only.
|
|
public abstract string Id { get; }
|
|
|
|
// The conditions and what to verify in them, shown under the scenario's button.
|
|
public abstract string Brief { get; }
|
|
|
|
// Zero draws the seed from the clock, so each launch is a new galaxy. Anything else fixes the galaxy, its
|
|
// background, its arena and every fit, each item's maker and workmanship included, so every launch has the same
|
|
// layout.
|
|
public virtual uint Seed => 0;
|
|
|
|
// False: the arena keeps its planets, orbits and stations but generates no ship or turret, so nothing wanders into
|
|
// the scenario's conditions.
|
|
public virtual bool Ambient => true;
|
|
|
|
// True: the arena's zone always gets a generated faction station with a docking bay, whatever its seed rolls
|
|
// (ZoneGenerator). False: its stations are rolled like any other zone's.
|
|
public virtual bool EntranceStation => true;
|
|
|
|
// Which galaxy the run is in: stage.Main() or stage.Cast(cast).
|
|
public abstract Galaxy Generate(GalaxyStage stage);
|
|
|
|
// What the run starts with: exactly one stage.Player, and anything else the scenario places.
|
|
public abstract void Stage(ScenarioStage stage);
|
|
}
|
|
|
|
public enum ScenarioStance
|
|
{
|
|
Neutral,
|
|
Hostile
|
|
}
|