Retire the prelude and the tutorial: the cast, the scenario and the save own what they bundled
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>
This commit is contained in:
parent
8b2d1f5442
commit
40a5457c9e
54 changed files with 334 additions and 321 deletions
|
|
@ -13,7 +13,7 @@ public sealed class AiFusedDiscipline : Scenario
|
|||
|
||||
public static readonly CultMath.float2 Hostile = float2(0, 700), Neutral = float2(500, 300);
|
||||
|
||||
public override Galaxy Generate(GalaxyStage stage) => stage.Prelude(DemoTerminus.Cast);
|
||||
public override Galaxy Generate(GalaxyStage stage) => stage.Cast(DemoTerminus.Cast);
|
||||
|
||||
public override void Stage(ScenarioStage stage)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ public sealed class Arcs : Scenario
|
|||
// holding every gun down. The guided launchers fire only on a lock, which that run cannot give them, so they carry the default three crates.
|
||||
public const int TurretAmmoCrates = 22, PlayerAmmoCrates = 42, PlayerMissileCrates = 3;
|
||||
|
||||
public override Galaxy Generate(GalaxyStage stage) => stage.Prelude();
|
||||
public override Galaxy Generate(GalaxyStage stage) => stage.Cast(DemoTerminus.Cast);
|
||||
|
||||
public override void Stage(ScenarioStage stage)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ public sealed class Belt : Scenario
|
|||
public override uint Seed => 86;
|
||||
public override bool Ambient => false;
|
||||
|
||||
public override Galaxy Generate(GalaxyStage stage) => stage.Prelude(DemoTerminus.Cast);
|
||||
public override Galaxy Generate(GalaxyStage stage) => stage.Cast(DemoTerminus.Cast);
|
||||
|
||||
public override void Stage(ScenarioStage stage)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ public sealed class Crossing : Scenario
|
|||
public const float ProjectorRange = 997f;
|
||||
public static readonly CultMath.float2 Waiting = Origin + float2(0, ProjectorRange * .8f);
|
||||
|
||||
public override Galaxy Generate(GalaxyStage stage) => stage.Prelude(DemoTerminus.Cast);
|
||||
public override Galaxy Generate(GalaxyStage stage) => stage.Cast(DemoTerminus.Cast);
|
||||
|
||||
public override void Stage(ScenarioStage stage)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@ using float2 = CultMath.float2;
|
|||
|
||||
// The demo: one gate, one region and one boss, with a fixed cast. The Pirates are the protagonist's ostensible
|
||||
// employer, Zhestokost the antagonist whose home is the boss zone and the exit, Lucent Media and Aeronautics Unlimited
|
||||
// the neutrals. A prelude galaxy of that cast; the player, who is not a Pirate, flies the base Longinus.
|
||||
// the neutrals. A galaxy of that cast at half influence; the player, who is not a Pirate, flies the base Longinus.
|
||||
public sealed class DemoTerminus : Scenario
|
||||
{
|
||||
public static readonly TutorialGenerationSettings Cast = new TutorialGenerationSettings
|
||||
public static readonly GalaxyCast Cast = new GalaxyCast
|
||||
{
|
||||
ProtagonistFaction = "Pirates",
|
||||
AntagonistFaction = "Zhe",
|
||||
|
|
@ -13,7 +13,8 @@ public sealed class DemoTerminus : Scenario
|
|||
NeutralFactions = new[] { "Aero" },
|
||||
QuestFaction = null,
|
||||
ZoneCount = 64,
|
||||
LinkDensity = .5f
|
||||
LinkDensity = .5f,
|
||||
InfluenceScale = .5f
|
||||
};
|
||||
|
||||
public override string Name => "Terminus (Demo)";
|
||||
|
|
@ -23,7 +24,7 @@ public sealed class DemoTerminus : Scenario
|
|||
|
||||
public override Galaxy Generate(GalaxyStage stage)
|
||||
{
|
||||
var galaxy = stage.Prelude(Cast);
|
||||
var galaxy = stage.Cast(Cast);
|
||||
galaxy.PlaceGate(galaxy.ResolveFaction(Cast.AntagonistFaction));
|
||||
return galaxy;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ public sealed class DjinniShakedown : Scenario
|
|||
// Where the targets sit: the ballistic mount faces +z, so Ahead is inside its arc and Abeam outside it.
|
||||
public static readonly float2 Ahead = new float2(0, 400), Abeam = new float2(400, 0);
|
||||
|
||||
public override Galaxy Generate(GalaxyStage stage) => stage.Prelude();
|
||||
public override Galaxy Generate(GalaxyStage stage) => stage.Cast(DemoTerminus.Cast);
|
||||
|
||||
public override void Stage(ScenarioStage stage)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ public sealed class Duel : Scenario
|
|||
public override uint Seed => 104;
|
||||
public override bool Ambient => false;
|
||||
|
||||
public override Galaxy Generate(GalaxyStage stage) => stage.Prelude();
|
||||
public override Galaxy Generate(GalaxyStage stage) => stage.Cast(DemoTerminus.Cast);
|
||||
|
||||
public override void Stage(ScenarioStage stage)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ public sealed class FusedRounds : Scenario
|
|||
// The shooter is staged at this quality, so the damage its Cluster Cannon deals does not ride the item stream.
|
||||
public const float StagedQuality = .6f;
|
||||
|
||||
public override Galaxy Generate(GalaxyStage stage) => stage.Prelude(DemoTerminus.Cast);
|
||||
public override Galaxy Generate(GalaxyStage stage) => stage.Cast(DemoTerminus.Cast);
|
||||
|
||||
public override void Stage(ScenarioStage stage)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ public sealed class LauncherAngles : Scenario
|
|||
public override uint Seed => 105;
|
||||
public override bool Ambient => false;
|
||||
|
||||
public override Galaxy Generate(GalaxyStage stage) => stage.Prelude();
|
||||
public override Galaxy Generate(GalaxyStage stage) => stage.Cast(DemoTerminus.Cast);
|
||||
|
||||
public override void Stage(ScenarioStage stage)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ public sealed class LockOn : Scenario
|
|||
_quality = quality;
|
||||
}
|
||||
|
||||
public override Galaxy Generate(GalaxyStage stage) => stage.Prelude(DemoTerminus.Cast);
|
||||
public override Galaxy Generate(GalaxyStage stage) => stage.Cast(DemoTerminus.Cast);
|
||||
|
||||
public override void Stage(ScenarioStage stage)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ public sealed class LongHaul : Scenario
|
|||
"warp, quit and Continue keep items, tier and brand; death disables Continue.";
|
||||
public override uint Seed => 106;
|
||||
|
||||
public override Galaxy Generate(GalaxyStage stage) => stage.Prelude();
|
||||
public override Galaxy Generate(GalaxyStage stage) => stage.Cast(DemoTerminus.Cast);
|
||||
|
||||
public override void Stage(ScenarioStage stage) =>
|
||||
stage.Player(stage.Generated(stage.StartingHull), float2.zero);
|
||||
|
|
|
|||
|
|
@ -7,6 +7,8 @@ public sealed class MainGalaxy : Scenario
|
|||
public override string Id => "main-galaxy";
|
||||
public override string Brief => "The full galaxy: factions drawn at random, bosses guarding the road to the exit.";
|
||||
|
||||
public override bool EntranceStation => false;
|
||||
|
||||
public override Galaxy Generate(GalaxyStage stage) => stage.Main();
|
||||
|
||||
public override void Stage(ScenarioStage stage) =>
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ public sealed class Pursuit : Scenario
|
|||
public override uint Seed => 111;
|
||||
public override bool Ambient => false;
|
||||
|
||||
public override Galaxy Generate(GalaxyStage stage) => stage.Prelude(DemoTerminus.Cast);
|
||||
public override Galaxy Generate(GalaxyStage stage) => stage.Cast(DemoTerminus.Cast);
|
||||
|
||||
public override void Stage(ScenarioStage stage)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ public sealed class RefusedRounds : Scenario
|
|||
// The one target, ahead of the nose: inside every forward mount's arc.
|
||||
public static readonly CultMath.float2 Target = float2(0, 300);
|
||||
|
||||
public override Galaxy Generate(GalaxyStage stage) => stage.Prelude(DemoTerminus.Cast);
|
||||
public override Galaxy Generate(GalaxyStage stage) => stage.Cast(DemoTerminus.Cast);
|
||||
|
||||
public override void Stage(ScenarioStage stage)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ public static class Scenarios
|
|||
{
|
||||
public static readonly Scenario[] Modes = { new DemoTerminus() };
|
||||
|
||||
public static readonly Scenario[] Development = { new TutorialGalaxy(), new MainGalaxy() };
|
||||
public static readonly Scenario[] Development = { new MainGalaxy() };
|
||||
|
||||
public static readonly Scenario[] Tests =
|
||||
{
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ public sealed class StarvedReactor : Scenario
|
|||
public override uint Seed => 102;
|
||||
public override bool Ambient => false;
|
||||
|
||||
public override Galaxy Generate(GalaxyStage stage) => stage.Prelude();
|
||||
public override Galaxy Generate(GalaxyStage stage) => stage.Cast(DemoTerminus.Cast);
|
||||
|
||||
public override void Stage(ScenarioStage stage)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,17 +0,0 @@
|
|||
using float2 = CultMath.float2;
|
||||
|
||||
// New Game as it has always been: a prelude galaxy, entered in the starting hull of the protagonist faction.
|
||||
public sealed class TutorialGalaxy : Scenario
|
||||
{
|
||||
public override string Name => "Tutorial Galaxy";
|
||||
public override string Id => "tutorial-galaxy";
|
||||
public override string Brief => "A small galaxy of fixed factions, entered in a ship of the protagonist faction.";
|
||||
|
||||
public override Galaxy Generate(GalaxyStage stage) => stage.Prelude();
|
||||
|
||||
public override void Stage(ScenarioStage stage)
|
||||
{
|
||||
var protagonist = stage.Galaxy.ResolveFaction(stage.TutorialGenerationSettings.ProtagonistFaction);
|
||||
stage.Player(stage.Generated(stage.StartingHull, protagonist), float2.zero);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 94d688b37c5044dd9b67865c706d8918
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -14,7 +14,7 @@ public sealed class WeaponFeel : Scenario
|
|||
// The one target, ahead of the nose: inside every forward mount's arc.
|
||||
public static readonly CultMath.float2 Target = float2(0, 400);
|
||||
|
||||
public override Galaxy Generate(GalaxyStage stage) => stage.Prelude(DemoTerminus.Cast);
|
||||
public override Galaxy Generate(GalaxyStage stage) => stage.Cast(DemoTerminus.Cast);
|
||||
|
||||
public override void Stage(ScenarioStage stage)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue