コード例 #1
0
ファイル: personality.py プロジェクト: krzcho/WOTDecompiled
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)
コード例 #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)
コード例 #3
0
ファイル: personality.py プロジェクト: 19colt87/WOTDecompiled
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)
コード例 #4
0
 def simEnableClan(self, enable):
     settings = self.lobbyContext.getServerSettings()
     clanSettings = {
         'wgcgProfile': {
             'isEnabled': enable,
             'gateUrl': settings.wgcg.getGateUrl()
         }
     }
     settings.update(clanSettings)
     g_clientUpdateManager.update({'serverSettings': clanSettings})
コード例 #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)
コード例 #6
0
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)
コード例 #7
0
ファイル: clan_controller.py プロジェクト: webiumsk/WOT0.10.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})