add the tournament id
This commit is contained in:
parent
9bb0af358c
commit
8602b60b02
3 changed files with 8 additions and 8 deletions
8
package-lock.json
generated
8
package-lock.json
generated
|
|
@ -16,7 +16,7 @@
|
||||||
"d3": "^7.9.0",
|
"d3": "^7.9.0",
|
||||||
"file-saver": "^2.0.5",
|
"file-saver": "^2.0.5",
|
||||||
"marked": "^14.1.4",
|
"marked": "^14.1.4",
|
||||||
"moons-ta-client": "^1.1.14",
|
"moons-ta-client": "^1.2.0",
|
||||||
"pako": "^2.1.0",
|
"pako": "^2.1.0",
|
||||||
"prismjs": "^1.30.0",
|
"prismjs": "^1.30.0",
|
||||||
"uuid": "^11.1.0",
|
"uuid": "^11.1.0",
|
||||||
|
|
@ -3235,9 +3235,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/moons-ta-client": {
|
"node_modules/moons-ta-client": {
|
||||||
"version": "1.1.14",
|
"version": "1.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/moons-ta-client/-/moons-ta-client-1.1.14.tgz",
|
"resolved": "https://registry.npmjs.org/moons-ta-client/-/moons-ta-client-1.2.0.tgz",
|
||||||
"integrity": "sha512-vHN0/j9qMj8GVgXaxkA/BXsCK5BybpqZ1xtl3Sz2a5zzjIOOUzKuXMRy4+/kpFnSn6R8QgkMmmNU+EorPRH9Eg==",
|
"integrity": "sha512-QB/rXVrA4/2JOybg1pVB1qVHH4n3ZbtbQuTi2VpC8+TQLDgOcpbqQE+GsEof6PD2/utIwau+e/qlJQm8bcE2Fw==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@protobuf-ts/plugin": "^2.6.0",
|
"@protobuf-ts/plugin": "^2.6.0",
|
||||||
"events": "^3.3.0",
|
"events": "^3.3.0",
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@
|
||||||
"d3": "^7.9.0",
|
"d3": "^7.9.0",
|
||||||
"file-saver": "^2.0.5",
|
"file-saver": "^2.0.5",
|
||||||
"marked": "^14.1.4",
|
"marked": "^14.1.4",
|
||||||
"moons-ta-client": "^1.1.14",
|
"moons-ta-client": "^1.2.0",
|
||||||
"pako": "^2.1.0",
|
"pako": "^2.1.0",
|
||||||
"prismjs": "^1.30.0",
|
"prismjs": "^1.30.0",
|
||||||
"uuid": "^11.1.0",
|
"uuid": "^11.1.0",
|
||||||
|
|
|
||||||
|
|
@ -509,7 +509,7 @@
|
||||||
activeSongPlayers.add(`${playerGuid}-${levelId.toLowerCase()}`);
|
activeSongPlayers.add(`${playerGuid}-${levelId.toLowerCase()}`);
|
||||||
});
|
});
|
||||||
|
|
||||||
const response = await client.playSong(currentSong, playingPlayerIds);
|
const response = await client.playSong(tournamentGuid, currentSong, playingPlayerIds);
|
||||||
console.log('startMap', response);
|
console.log('startMap', response);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -519,7 +519,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
async function sendPlayersBackToMenu() {
|
async function sendPlayersBackToMenu() {
|
||||||
const backToMenuResponse = await client.returnToMenu(matchPlayers.filter(x => x.playState == User_PlayStates.InGame).map(x => x.guid));
|
const backToMenuResponse = await client.returnToMenu(tournamentGuid, matchPlayers.filter(x => x.playState == User_PlayStates.InGame).map(x => x.guid));
|
||||||
console.log("Sent players back to menu!", backToMenuResponse)
|
console.log("Sent players back to menu!", backToMenuResponse)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -775,7 +775,7 @@
|
||||||
loadingSongForPlayers = true;
|
loadingSongForPlayers = true;
|
||||||
const matchResponse = await client.setMatchMap(tournamentGuid, matchGuid, map.taData);
|
const matchResponse = await client.setMatchMap(tournamentGuid, matchGuid, map.taData);
|
||||||
if(matchResponse.type == Response_ResponseType.Fail) return;
|
if(matchResponse.type == Response_ResponseType.Fail) return;
|
||||||
const loadResponse = await client.loadSong(map.taData.gameplayParameters!.beatmap!.levelId.toUpperCase().replace('CUSTOM_LEVEL_', 'custom_level_'), playingPlayerIds, 3 * 60 * 1000);
|
const loadResponse = await client.loadSong(tournamentGuid, map.taData.gameplayParameters!.beatmap!.levelId.toUpperCase().replace('CUSTOM_LEVEL_', 'custom_level_'), playingPlayerIds, 3 * 60 * 1000);
|
||||||
failedToLoadSongForPlayers = false;
|
failedToLoadSongForPlayers = false;
|
||||||
|
|
||||||
const failedLoads = loadResponse.filter(x => x.response.type == Response_ResponseType.Fail);
|
const failedLoads = loadResponse.filter(x => x.response.type == Response_ResponseType.Fail);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue