socket fns for vbox

This commit is contained in:
ntr 2019-02-16 19:46:00 +11:00
parent 04714dfdfd
commit 08e48d983e

View File

@ -89,6 +89,13 @@ function createSocket(events) {
send({ method: 'vbox_state', params: { game_id: gameId } });
}
function sendVboxDiscard(gameId) {
send({ method: 'vbox_discard', params: { game_id: gameId } });
}
function sendVboxAccept(gameId, i) {
send({ method: 'vbox_discard', params: { game_id: gameId, index: i } });
}
function sendPressR() {
send({ method: 'press_r', params: { } });
@ -275,6 +282,8 @@ function createSocket(events) {
sendZoneJoin,
sendZoneClose,
sendVboxState,
sendVboxAccept,
sendVboxDiscard,
connect,
};
}