Exemplo 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)
Exemplo 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)
Exemplo n.º 3
0
def onClientUpdate(diff):
    yield lambda callback: callback(None)
    if isPlayerAccount():
        yield g_itemsCache.update(diff)
        yield g_questsCache.update()
        MusicController.g_musicController.setAccountAttrs(g_itemsCache.items.stats.attributes, True)
        MusicController.g_musicController.play(MusicController.MUSIC_EVENT_LOBBY)
        MusicController.g_musicController.play(MusicController.MUSIC_EVENT_LOBBY)
    g_clientUpdateManager.update(diff)
 def simEnableClan(self, enable):
     settings = self.lobbyContext.getServerSettings()
     clanSettings = {
         'wgcgProfile': {
             'isEnabled': enable,
             'gateUrl': settings.wgcg.getGateUrl()
         }
     }
     settings.update(clanSettings)
     g_clientUpdateManager.update({'serverSettings': clanSettings})
Exemplo n.º 5
0
def onClientUpdate(diff):
    yield lambda callback: callback(None)
    if isPlayerAccount():
        yield g_itemsCache.update(diff)
        yield g_questsCache.update()
        MusicController.g_musicController.setAccountAttrs(
            g_itemsCache.items.stats.attributes, True)
        MusicController.g_musicController.play(
            MusicController.MUSIC_EVENT_LOBBY)
        MusicController.g_musicController.play(
            MusicController.MUSIC_EVENT_LOBBY)
    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)
Exemplo n.º 7
0
 def simEnableClan(self, enable):
     settings = g_lobbyContext.getServerSettings()
     clanSettings = {'clanProfile': {'isEnabled': enable,
                      'gateUrl': settings.clanProfile.getGateUrl()}}
     settings.update(clanSettings)
     g_clientUpdateManager.update({'serverSettings': clanSettings})