细节优化

This commit is contained in:
kron
2025-11-10 13:43:25 +08:00
parent 2cf55dcdde
commit 7e1a3be510
8 changed files with 39 additions and 415 deletions

View File

@@ -191,6 +191,10 @@ function recoverData(battleInfo) {
async function onReceiveMessage(messages = []) {
messages.forEach((msg) => {
if (msg.constructor === MESSAGETYPES.WaitForAllReady) {
redTeam.value = msg.groupUserStatus.redTeam;
blueTeam.value = msg.groupUserStatus.blueTeam;
}
if (msg.constructor === MESSAGETYPES.AllReady) {
start.value = true;
}