feat(match): 添加画面上下镜像、跳过准备和装甲板整局复位

This commit is contained in:
sloray committed 2026-10-31 09:27:26 +08:00
1 parent 235fb1c73b
commit 338efa5c2e
39 files changed
+1094 -54

No files matched your search

+3 -1
View File
@@ -80,7 +80,9 @@ function handleMessage(msg: WireMsg) {
return; // Consumed by StreamClient before reaching application state.
case "snapshot": {
const { t: _tag, ...snapshot } = msg;
emit({ snapshot: snapshot as Snapshot });
const reset = snapshot.matchClock.phase === "idle" && (store.snapshot?.matchClock.phase !== "idle"
|| store.snapshot?.health.some(health => health.outcome != null));
emit({ snapshot: snapshot as Snapshot, ...(reset ? { lastHit: null } : {}) });
return;
}
case "hit":