This commit is contained in:
ntr
2019-04-24 19:54:45 +10:00
parent b839810815
commit e00e819ca9
6 changed files with 146 additions and 108 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ const addState = connect(
function sendInstanceJoin() {
if (selectedCryps.length) {
return ws.sendInstanceJoin(selectedCryps);
return ws.sendInstanceLobby(selectedCryps);
}
return false;
}
+5
View File
@@ -148,6 +148,10 @@ function createSocket(events) {
send({ method: 'instance_join', params: { cryp_ids: cryps, pve: true } });
}
function sendInstanceLobby(cryps) {
send({ method: 'instance_lobby', params: { cryp_ids: cryps, name: 'dota apem', players: 2 } });
}
function sendInstanceReady(instanceId) {
send({ method: 'instance_ready', params: { instance_id: instanceId } });
}
@@ -323,6 +327,7 @@ function createSocket(events) {
sendZoneClose,
sendInstanceJoin,
sendInstanceReady,
sendInstanceLobby,
sendInstanceScores,
sendPlayerMmCrypsSet,
sendPlayerState,