房间1v1流程完善

This commit is contained in:
kron
2025-06-13 14:05:30 +08:00
parent dce1806f97
commit 2c7eb5a737
9 changed files with 290 additions and 70 deletions

View File

@@ -85,13 +85,13 @@ async function onReceiveMessage(content) {
battleId.value = msg.id;
redTeam.value = msg.groupUserStatus.redTeam;
blueTeam.value = msg.groupUserStatus.blueTeam;
totalRounds.value = msg.groupUserStatus.config.maxRounds;
}
if (msg.id !== battleId.value) return;
if (msg.constructor === MESSAGETYPES.AllReady) {
start.value = true;
timerSeq.value = 0;
scores.value = [];
totalRounds.value = msg.groupUserStatus.config.maxRounds;
}
if (msg.constructor === MESSAGETYPES.ToSomeoneShoot) {
scores.value = [];