feat: align legacy operator and playout behavior

This commit is contained in:
2026-07-15 21:04:05 +09:00
parent 06a16e5741
commit 83398044c6
77 changed files with 6377 additions and 391 deletions

View File

@@ -82,6 +82,26 @@ public sealed class LegacyIndustrySelectionWorkflow
public LegacyIndustrySelectionSnapshot Current => CreateSnapshot();
/// <summary>
/// Recreates the observable UC2 state for one tab activation. The generation
/// increment prevents a request started by the discarded control from restoring
/// its rows after the operator has re-entered the tab.
/// </summary>
public LegacyIndustrySelectionSnapshot ResetForTabActivation(IndustryMarket market)
{
ValidateMarket(market);
Interlocked.Increment(ref _loadGeneration);
_market = market;
_industries = NoIndustries;
_actions = LegacyIndustryActionCatalog.GetActions(market);
_selectedIndex = null;
_selectedIndustry = null;
_firstIndustry = null;
_secondIndustry = null;
Touch();
return CreateSnapshot();
}
public async Task<LegacyIndustrySelectionSnapshot> LoadMarketAsync(
IndustryMarket market,
CancellationToken cancellationToken = default)