房间比赛流程同步

This commit is contained in:
kron
2025-06-26 22:54:17 +08:00
parent ad7f919d52
commit c730088764
6 changed files with 80 additions and 40 deletions

View File

@@ -107,13 +107,10 @@ async function onReceiveMessage(messages = []) {
blueScores.value = [msg.target];
}
}
if (msg.constructor === MESSAGETYPES.RoundPoint) {
// bluePoints.value += msg.blueScore;
// redPoints.value += msg.redScore;
}
if (msg.constructor === MESSAGETYPES.CurrentRoundEnded) {
const result = msg.preRoundResult;
scores.value = [];
blueScores.value = [];
currentShooterId.value = 0;
currentBluePoint.value = result.blueScore;
currentRedPoint.value = result.redScore;