feat(match): 添加画面上下镜像、跳过准备和装甲板整局复位
This commit is contained in:
39 files changed
+1094
-54
No files matched your search
@@ -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":
|
||||
|
||||
Reference in new issue
Block a user