def requestInitialDataFromServer(self, callback=None): if g_replayCtrl.isRecording and not self.__replayConfigStored: g_replayCtrl.serializeCallbackData( CallbackDataNames.MT_CONFIG_CALLBACK, (self.__config, )) self.__replayConfigStored = True if self.__config and not self.__configIsOld and callback: return callback() if g_replayCtrl.isPlaying: self.__replayCallbacks.append(callback) else: self.__lastRequestTime = BigWorld.time() account = BigWorld.player() account.requestMapsTrainingInitialConfiguration( account.databaseID, partial(self.__processConfiguration, callback)) self.__configIsOld = False
def _onRejectInviteToSquad(self, callbackId, userId): g_replayCtrl.serializeCallbackData('DynSquad.RejectInvitationToSquad', (callbackId, userId)) super(RecordDynSquadViewListener, self)._onRejectInviteToSquad(callbackId, userId)