IFL scenario handoff: New Game boots an unsaved simulation, its wormhole starts the run, death returns to it
Scenario.Saved declares a simulation; RunSave.Beside starts one beside the saved run and its Simulation token discards what it wrote. ActionGameManager.Simulation is the one derived fact: SaveRun skips, EndRun discards, StartGame discards first. Infinite Fun Land is the only release mode; Terminus is launched by LeaveSimulation (wormhole dialog, console leave) and listed under Development. Death anywhere relaunches the simulation; the death fade now completes (TakeWhile) so its completion callback runs. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
e3301069d6
commit
c2faa7cfc6
9 changed files with 227 additions and 10 deletions
|
|
@ -147,6 +147,20 @@ public sealed partial class RunStartTests
|
|||
Assert.Contains(main.arena.Pack.Entities, entity => entity is ShipPack { IsPlayerShip: false });
|
||||
}
|
||||
|
||||
// New Game boots Nibu's simulation, which is never saved; the run its exit launches is a development entry, and
|
||||
// every other scenario is a run that saves.
|
||||
[Fact]
|
||||
public void InfiniteFunLandIsASimulation()
|
||||
{
|
||||
Assert.False(Scenarios.Simulation.Saved);
|
||||
Assert.False(Scenarios.Simulation.Ambient);
|
||||
Assert.NotEqual(0u, Scenarios.Simulation.Seed);
|
||||
Assert.Equal(new[] { Scenarios.Simulation }, Scenarios.Modes);
|
||||
Assert.Contains(Scenarios.Terminus, Scenarios.Development);
|
||||
Assert.All(Scenarios.Modes.Concat(Scenarios.Development).Concat(Scenarios.Tests).Where(scenario => scenario != Scenarios.Simulation),
|
||||
scenario => Assert.True(scenario.Saved, scenario.Id));
|
||||
}
|
||||
|
||||
// Everything a galaxy's layout fixes: each zone's name, position, owner, factions and links, the homes, the
|
||||
// entrance, the exit and the background.
|
||||
private static string Layout(Galaxy galaxy) =>
|
||||
|
|
|
|||
Loading…
Reference in a new issue