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>
43 lines
1.9 KiB
C#
43 lines
1.9 KiB
C#
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 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 GalaxyCast Cast = new GalaxyCast
|
|
{
|
|
ProtagonistFaction = "Pirates",
|
|
AntagonistFaction = "Zhe",
|
|
BufferFaction = "Luc",
|
|
NeutralFactions = new[] { "Aero" },
|
|
QuestFaction = null,
|
|
ZoneCount = 64,
|
|
LinkDensity = .5f,
|
|
InfluenceScale = .5f
|
|
};
|
|
|
|
public override string Name => "Terminus (Demo)";
|
|
public override string Id => "demo-terminus";
|
|
public override string Brief => "One gate, one region, one boss. Allied: the Pirates. Opposed: Zhestokost. " +
|
|
"Neutral: Lucent Media and Aeronautics Unlimited.";
|
|
|
|
public override Galaxy Generate(GalaxyStage stage)
|
|
{
|
|
var galaxy = stage.Cast(Cast);
|
|
galaxy.PlaceGate(galaxy.ResolveFaction(Cast.AntagonistFaction));
|
|
return galaxy;
|
|
}
|
|
|
|
public override void Stage(ScenarioStage stage)
|
|
{
|
|
var galaxy = stage.Galaxy;
|
|
var pirates = galaxy.ResolveFaction(Cast.ProtagonistFaction);
|
|
galaxy.FactionRelationships[pirates] = FactionRelationship.Friendly;
|
|
galaxy.FactionRelationships[galaxy.ResolveFaction(Cast.AntagonistFaction)] = FactionRelationship.Hated;
|
|
galaxy.FactionRelationships[galaxy.ResolveFaction(Cast.BufferFaction)] = FactionRelationship.Neutral;
|
|
foreach (var neutral in Cast.NeutralFactions)
|
|
galaxy.FactionRelationships[galaxy.ResolveFaction(neutral)] = FactionRelationship.Neutral;
|
|
stage.Player(stage.Generated("Longinus"), float2.zero);
|
|
}
|
|
}
|