import { put , call , CallEffect } from "redux-saga/effects" ; import getArenaReducerDictEntry from "./getArenaReducerDictEntry" ; import ActionTypes from "../core/ActionTypes" ; function * _setSceneState ( state , key ) { let entry = yield getArenaReducerDictEntry ( key ) ; yield put ( { type : ActionTypes . ARENA_SCENE_SET_STATE , _sceneReducerKey : entry . reducerKey , state } ) ; } export default function setSceneState ( state , key ? ) { return call ( _setSceneState , state , key ? key : "_arenaScene" ) ; }