feat(card-master): add ICardMasterPayloadProvider singleton, load blob at startup

This commit is contained in:
gamer147
2026-06-12 11:59:35 -04:00
parent c65ec14544
commit 02cc8537f2
2 changed files with 46 additions and 0 deletions

View File

@@ -130,6 +130,10 @@ public class Program
// Restart re-fires once per viewer — documented trade in the design spec.
builder.Services.AddSingleton<IHomeDialogSessionTracker, HomeDialogSessionTracker>();
// Loads the static card-master base64 blob from Data/ once at startup; served by
// ImmutableDataController. Singleton because the file is ~1.27 MB.
builder.Services.AddSingleton<ICardMasterPayloadProvider, CardMasterPayloadProvider>();
#endregion
builder.Services.AddBattleNode(opt =>