feat(S9): persist simulation statistics and logs to SQLite, retire zip archive

This commit is contained in:
2026-11-10 01:44:27 +08:00
parent c69fa53d37
commit e838c9566f
13 changed files with 500 additions and 23 deletions
@@ -22,6 +22,9 @@ public sealed class SimulationRunContext
public Random Random { get; set; } = new();
public GameMap Map { get; set; } = new FastAutoMap();
/// <summary>S9:本局是否额外写 rounds_archive.zip(默认关闭,结果统一入库)。</summary>
public bool ArchiveRounds { get; set; }
/// <summary>绑定到本实例的日志回调:不依赖 AsyncLocal,跨线程回调也不会串局。</summary>
public void WriteLine(string text)
{