Ejemplo n.º 1
0
def onClientUpdate(diff):
    yield lambda callback: callback(None)
    if isPlayerAccount():
        yield g_itemsCache.update(CACHE_SYNC_REASON.CLIENT_UPDATE, diff)
        yield g_eventsCache.update(diff)
        yield g_clanCache.update(diff)
    g_clientUpdateManager.update(diff)
Ejemplo n.º 2
0
def onClientUpdate(diff):
    yield lambda callback: callback(None)
    if isPlayerAccount():
        yield g_itemsCache.update(CACHE_SYNC_REASON.CLIENT_UPDATE, diff)
        yield ServicesLocator.eventsCache.update(diff)
        yield g_clanCache.update(diff)
    g_lobbyContext.update(diff)
    g_clientUpdateManager.update(diff)
def onClientUpdate(diff, updateOnlyLobbyCtx):
    yield lambda callback: callback(None)
    if updateOnlyLobbyCtx:
        ServicesLocator.lobbyContext.update(diff)
    else:
        if isPlayerAccount():
            yield crewBooksViewedCache().onCrewBooksUpdated(diff)
            yield ServicesLocator.itemsCache.update(
                CACHE_SYNC_REASON.CLIENT_UPDATE, diff)
            yield ServicesLocator.eventsCache.update(diff)
            yield g_clanCache.update(diff)
        ServicesLocator.lobbyContext.update(diff)
        g_clientUpdateManager.update(diff)
    ServicesLocator.offersProvider.update(diff)