wip
This commit is contained in:
@@ -9,7 +9,7 @@ const addState = connect(
|
||||
|
||||
function sendInstanceJoin() {
|
||||
if (selectedCryps.length) {
|
||||
return ws.sendInstanceJoin(selectedCryps);
|
||||
return ws.sendInstanceLobby(selectedCryps);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user