Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const rootSaga = function*() {
yield all([
yield fork(battle, _this.turnSimulator, _this.turnCount, _this.turnDuration),
yield takeEvery(
BATTLE_FINISHED,
function*() {
_this.onServerFinishMatch();
}
)
]);
};
const rootSaga = function*() {
yield all([
yield fork(evolutionSagaFactory())
]);
};
export const notifications = function*() {
yield all([
yield fork(sendNotifications),
yield fork(clearNotifications)
]);
};
yield put(joinLobbyAction(
response.playerId,
response.lobbyId,
response.players,
response.startTimestamp,
response.isHost
));
break;
}
yield put(joinGameError(error));
action = yield take([FIND_GAME, JOIN_GAME, CREATE_GAME]);
}
yield fork(writeActionsToPackets);
yield fork(writePacketsToSocket, socket);
};
if (!error) {
yield put(joinLobbyAction(
response.playerId,
response.lobbyId,
response.players,
response.startTimestamp,
response.isHost
));
break;
}
yield put(joinGameError(error));
action = yield take([FIND_GAME, JOIN_GAME, CREATE_GAME]);
}
yield fork(writeActionsToPackets);
yield fork(writePacketsToSocket, socket);
};
export const rootSaga = function*() {
yield all([
yield fork(networking),
yield fork(phaseTimer),
yield fork(lobbyTimer),
yield fork(announcement),
yield fork(gamePhase),
yield fork(preventAccidentalClose),
yield fork(cardShop),
yield fork(evolutionSagaFactory()),
yield fork(battle, new TurnSimulator(new DefinitionProvider()), DEFAULT_TURN_COUNT, DEFAULT_TURN_DURATION)
]);
};
export const rootSaga = function*() {
yield all([
yield fork(networking),
yield fork(phaseTimer),
yield fork(lobbyTimer),
yield fork(announcement),
yield fork(gamePhase),
yield fork(preventAccidentalClose),
yield fork(cardShop),
yield fork(evolutionSagaFactory()),
yield fork(battle, new TurnSimulator(new DefinitionProvider()), DEFAULT_TURN_COUNT, DEFAULT_TURN_DURATION)
]);
};
export const notifications = function*() {
yield all([
yield fork(sendNotifications),
yield fork(clearNotifications)
]);
};
export const rootSaga = function*() {
yield all([
yield fork(networking),
yield fork(phaseTimer),
yield fork(lobbyTimer),
yield fork(announcement),
yield fork(gamePhase),
yield fork(preventAccidentalClose),
yield fork(cardShop),
yield fork(evolutionSagaFactory()),
yield fork(battle, new TurnSimulator(new DefinitionProvider()), DEFAULT_TURN_COUNT, DEFAULT_TURN_DURATION)
]);
};
export const rootSaga = function*() {
yield all([
yield fork(networking),
yield fork(phaseTimer),
yield fork(lobbyTimer),
yield fork(announcement),
yield fork(gamePhase),
yield fork(preventAccidentalClose),
yield fork(cardShop),
yield fork(evolutionSagaFactory()),
yield fork(battle, new TurnSimulator(new DefinitionProvider()), DEFAULT_TURN_COUNT, DEFAULT_TURN_DURATION)
]);
};