Exemplo n.º 1
0
def init():
    sub_parsers.setEffectsParsers({'save-setting': readSaveTutorialSettingSection,
     'save-account-setting': readSaveAccountSettingSection,
     'show-unlocked-chapter': chains.readShowUnlockedChapterSection})
    sub_parsers.setEntitiesParsers({'hint': chains.readHintSection,
     'tutorial-setting': readTutorialSettingSection})
    sub_parsers.setTriggersParsers({'bonus': lobby.readBonusTriggerSection,
     'premiumDiscount': lobby.readPremiumDiscountsUseTriggerSection,
     'tankmanAcademyDiscount': chains.readTankmanPriceDiscountTriggerSection,
     'allTutorialBonuses': _readAllTurorialBonusesTriggerSection,
     'randomBattlesCount': _readRandomBattlesCountTriggerSection,
     'researchModule': _readResearchModuleTriggerSection,
     'installModule': _readInstallModuleTriggerSection,
     'researchVehicle': _readResearchVehicleTriggerSection,
     'buyVehicle': _readBuyVehicleTriggerSection,
     'buySlot': lobby.readFreeVehicleSlotTriggerSection,
     'vehicleBattlesCount': _readVehicleBattlesCountTriggerSection,
     'xpExchange': _readXpExchangeTriggerSection,
     'tutorialIntSetting': readTutorialIntSettingTriggerSection,
     'chapterBonus': _readChapterBonusTriggerSection,
     'installItems': _readItemsInstallTriggerSection,
     'invalidateFlags': _readInvalidateFlagsTriggerSection,
     'timer': _readTimerTriggerSection,
     'fightBtn': chains.readFightBtnDisableTriggerSection,
     'windowClosed': _readSimpleWindowCloseTriggerSection,
     'windowProcessed': _readSimpleWindowProcessTriggerSection,
     'isInSandbox': chains.readIsInSandBoxPreQueueTriggerSection,
     'queue': chains.readQueueTrigger,
     'isInSandboxOrRandom': chains.readIsInSandBoxOrRandomPreQueueTriggerSection})
    sub_parsers.setWindowsParsers({'awardWindow': sub_parsers.readQuestAwardWindowSection})
Exemplo n.º 2
0
def init():
    sub_parsers.setEffectsParsers({
        'request-all-bonuses':
        _readRequestAllBonusesEffectSection,
        'enter-queue':
        _readEnterQueueEffectSection,
        'exit-queue':
        _readExitQueueEffectSection,
        'open-internal-browser':
        _readInternalBrowserSection
    })
    sub_parsers.setTriggersParsers({
        'bonus': lobby.readBonusTriggerSection,
        'allBonuses': _readAllBonusesTriggerSection,
        'queue': _readQueueTriggerSection
    })
    sub_parsers.setDialogsParsers({
        'greeting':
        _readGreetingDialogSection,
        'queue':
        _readQueueDialogSection,
        'confirmRefuse':
        _readConfirmRefuseDialogSection
    })
    sub_parsers.setWindowsParsers({
        'final': _readFinalWindowSection,
        'noResults': _readNoResultsWindowSection
    })
Exemplo n.º 3
0
def init():
    sub_parsers.setEntitiesParsers({'hint': readHintSection})
    sub_parsers.setEffectsParsers({'switch-to-random': lobby.readSwitchToRandomSection,
     'show-unlocked-chapter': readShowUnlockedChapterSection})
    sub_parsers.setTriggersParsers({'simpleDialog': _readSimpleDialogTriggerSection,
     'unlocked': lobby.readItemUnlockedTriggerSection,
     'inventory': lobby.readInventoryItemTriggerSection,
     'installed': lobby.readItemInstalledTriggerSection,
     'eqInstalled': lobby.readEquipmentInstalledTriggerSection,
     'freeSlot': lobby.readFreeVehicleSlotTriggerSection,
     'currentVehicle': lobby.readCurrentVehicleChangedTriggerSection,
     'premiumDiscount': lobby.readPremiumDiscountsUseTriggerSection,
     'freeXP': lobby.readFreeXPChangedTriggerSection,
     'bonus': lobby.readBonusTriggerSection,
     'buyNextLevelVehicle': _readBuyNextLevelVehicleTriggerSection,
     'vehicleRequiredLevel': _readVehicleRequiredLevelTriggerSection,
     'tankmanDiscount': readTankmanPriceDiscountTriggerSection,
     'rentedVehicles': _readRentedVehiclesTriggerSection,
     'maintenanceState': _readMaintenanceStateTrigger,
     'optionalDevicesState': _readOptionalDevicesStateTrigger,
     'lockedState': _readLockedStateTrigger,
     'isInSandbox': readIsInSandBoxPreQueueTriggerSection,
     'isInSandboxOrRandom': readIsInSandBoxOrRandomPreQueueTriggerSection,
     'fightBtn': readFightBtnDisableTriggerSection,
     'needChangeCurrentVehicle': _readNeedChangeCurrentVehicleTrigger})
    sub_parsers.setWindowsParsers({'awardWindow': sub_parsers.readQuestAwardWindowSection})
Exemplo n.º 4
0
def init():
    sub_parsers.setEntitiesParsers({'hint': readHintSection})
    sub_parsers.setEffectsParsers({'switch-to-random': lobby.readSwitchToRandomSection,
     'show-unlocked-chapter': readShowUnlockedChapterSection})
    sub_parsers.setTriggersParsers({'simpleDialog': _readSimpleDialogTriggerSection,
     'unlocked': lobby.readItemUnlockedTriggerSection,
     'inventory': lobby.readInventoryItemTriggerSection,
     'installed': lobby.readItemInstalledTriggerSection,
     'eqInstalled': lobby.readEquipmentInstalledTriggerSection,
     'freeSlot': lobby.readFreeVehicleSlotTriggerSection,
     'currentVehicle': lobby.readCurrentVehicleChangedTriggerSection,
     'premiumDiscount': lobby.readPremiumDiscountsUseTriggerSection,
     'freeXP': lobby.readFreeXPChangedTriggerSection,
     'bonus': lobby.readBonusTriggerSection,
     'buyNextLevelVehicle': _readBuyNextLevelVehicleTriggerSection,
     'vehicleRequiredLevel': _readVehicleRequiredLevelTriggerSection,
     'tankmanDiscount': readTankmanPriceDiscountTriggerSection,
     'rentedVehicles': _readRentedVehiclesTriggerSection,
     'maintenanceState': _readMaintenanceStateTrigger,
     'optionalDevicesState': _readOptionalDevicesStateTrigger,
     'lockedState': _readLockedStateTrigger,
     'isInSandbox': readIsInSandBoxPreQueueTriggerSection,
     'isInSandboxOrRandom': readIsInSandBoxOrRandomPreQueueTriggerSection,
     'fightBtn': readFightBtnDisableTriggerSection,
     'needChangeCurrentVehicle': _readNeedChangeCurrentVehicleTrigger})
    sub_parsers.setWindowsParsers({'awardWindow': sub_parsers.readQuestAwardWindowSection})
Exemplo n.º 5
0
def init():
    sub_parsers.setEffectsParsers({'save-setting': readSaveTutorialSettingSection,
     'save-account-setting': readSaveAccountSettingSection,
     'show-unlocked-chapter': chains.readShowUnlockedChapterSection,
     'switch-to-random': lobby.readSwitchToRandomSection,
     'select-in-hangar': _readSelectVehicleInHangarSection})
    sub_parsers.setEntitiesParsers({'hint': chains.readHintSection,
     'tutorial-setting': readTutorialSettingSection})
    sub_parsers.setTriggersParsers({'bonus': lobby.readBonusTriggerSection,
     'premiumDiscount': lobby.readPremiumDiscountsUseTriggerSection,
     'timer': lobby.readTimerTriggerSection,
     'tankmanAcademyDiscount': chains.readTankmanPriceDiscountTriggerSection,
     'allTutorialBonuses': _readAllTurorialBonusesTriggerSection,
     'randomBattlesCount': _readRandomBattlesCountTriggerSection,
     'researchModule': _readResearchModuleTriggerSection,
     'installModule': _readInstallModuleTriggerSection,
     'researchVehicle': _readResearchVehicleTriggerSection,
     'buyVehicle': _readBuyVehicleTriggerSection,
     'inventoryVehicle': _readInventoryVehicleTriggerSection,
     'permanentOwnVehicle': _readPermanentVehicleOwnTriggerSection,
     'buySlot': lobby.readFreeVehicleSlotTriggerSection,
     'vehicleBattlesCount': _readVehicleBattlesCountTriggerSection,
     'xpExchange': _readXpExchangeTriggerSection,
     'tutorialIntSetting': readTutorialIntSettingTriggerSection,
     'tutorialAccountSetting': readTutorialAccountSettingTriggerSection,
     'chapterBonus': _readChapterBonusTriggerSection,
     'installItems': _readItemsInstallTriggerSection,
     'invalidateFlags': _readInvalidateFlagsTriggerSection,
     'fightBtn': chains.readFightBtnDisableTriggerSection,
     'windowClosed': _readSimpleWindowCloseTriggerSection,
     'windowProcessed': _readSimpleWindowProcessTriggerSection,
     'isInSandbox': chains.readIsInSandBoxPreQueueTriggerSection,
     'queue': chains.readQueueTrigger,
     'isInSandboxOrRandom': chains.readIsInSandBoxOrRandomPreQueueTriggerSection})
    sub_parsers.setWindowsParsers({'awardWindow': sub_parsers.readQuestAwardWindowSection})
Exemplo n.º 6
0
def init():
    sub_parsers.setEffectsParsers({'request-all-bonuses': _readRequestAllBonusesEffectSection,
     'enter-queue': _readEnterQueueEffectSection,
     'exit-queue': _readExitQueueEffectSection})
    sub_parsers.setTriggersParsers({'bonus': lobby._readBonusTriggerSection,
     'allBonuses': _readAllBonusesTriggerSection,
     'queue': _readQueueTriggerSection})
    sub_parsers.setDialogsParsers({'greeting': _readGreetingDialogSection,
     'queue': _readQueueDialogSection,
     'video': _readVideoDialogSection})
    sub_parsers.setWindowsParsers({'final': _readFinalWindowSection,
     'noResults': _readNoResultsWindowSection})
Exemplo n.º 7
0
def init():
    sub_parsers.setEffectsParsers({'request-all-bonuses': _readRequestAllBonusesEffectSection,
     'enter-queue': _readEnterQueueEffectSection,
     'exit-queue': _readExitQueueEffectSection,
     'open-internal-browser': _readInternalBrowserSection})
    sub_parsers.setTriggersParsers({'bonus': lobby.readBonusTriggerSection,
     'allBonuses': _readAllBonusesTriggerSection,
     'queue': _readQueueTriggerSection})
    sub_parsers.setDialogsParsers({'greeting': _readGreetingDialogSection,
     'queue': _readQueueDialogSection,
     'confirmRefuse': _readConfirmRefuseDialogSection})
    sub_parsers.setWindowsParsers({'final': _readFinalWindowSection,
     'noResults': _readNoResultsWindowSection})
Exemplo n.º 8
0
def init():
    sub_parsers.setEffectsParsers({
        'request-exclusive-hint':
        _readRequestExclusiveHintEffectSection,
        'update-exclusive-hints':
        sub_parsers.makeSimpleEffectReader(
            _EFFECT_TYPE.UPDATE_EXCLUSIVE_HINTS),
        'start-vse-plan':
        _readStartPlanSection,
        'restore-checkpoint':
        sub_parsers.makeSimpleEffectReader(_EFFECT_TYPE.RESTORE_CHECKPOINT),
        'save-checkpoint':
        sub_parsers.makeSimpleEffectReader(_EFFECT_TYPE.SAVE_CHECKPOINT),
        'set-bootcamp-nation':
        _readSetBootcampNationEffectSection,
        'play-final-video':
        sub_parsers.makeSimpleEffectReader(_EFFECT_TYPE.PLAY_VIDEO),
        'show-demo-acc-renaming':
        sub_parsers.makeSimpleEffectReader(
            _EFFECT_TYPE.SHOW_DEMO_ACCOUNT_RENAMING)
    })
    sub_parsers.setEntitiesParsers({'checkpoint': _readCheckpointSection})
    sub_parsers.setTriggersParsers({
        'linear-checkpoint-controller':
        _readLinearCheckpointControllerTriggerSection,
        'current-vehicle-changed':
        _makeSimpleValidateVarTriggerReader(
            triggers.CurrentVehicleChangedTrigger),
        'items-cache-sync':
        _makeSimpleValidateVarTriggerReader(triggers.ItemsCacheSyncTrigger)
    })
    sub_parsers.setDialogsParsers({
        'bootcampMessage': _readBootcampMessageDialogSection,
        'bootcampSelectNation': _readBootcampSelectNationDialogSection,
        'bootcampVideo': _readVideoWindowSection
    })
    sub_parsers.setConditionsParsers({
        'checkpoint-reached':
        lambda xmlCtx, section, flags: _readCheckpointReachedCondition(
            xmlCtx, section, _COND_STATE.ACTIVE),
        'checkpoint-not-reached':
        lambda xmlCtx, section, flags: _readCheckpointReachedCondition(
            xmlCtx, section, ~_COND_STATE.ACTIVE)
    })
    sub_parsers.setWindowsParsers(
        {'bootcampSubtitle': _readSubtitleWindowSection})
Exemplo n.º 9
0
def init():
    sub_parsers.setEffectsParsers({
        'request-all-bonuses': _readRequestAllBonusesEffectSection,
        'enter-queue': _readEnterQueueEffectSection,
        'exit-queue': _readExitQueueEffectSection
    })
    sub_parsers.setTriggersParsers({
        'bonus': lobby._readBonusTriggerSection,
        'allBonuses': _readAllBonusesTriggerSection,
        'queue': _readQueueTriggerSection
    })
    sub_parsers.setDialogsParsers({
        'greeting': _readGreetingDialogSection,
        'queue': _readQueueDialogSection,
        'video': _readVideoDialogSection
    })
    sub_parsers.setWindowsParsers({
        'final': _readFinalWindowSection,
        'noResults': _readNoResultsWindowSection
    })
Exemplo n.º 10
0
def init():
    sub_parsers.setEffectsParsers({'save-setting': readSaveTutorialSettingSection,
     'save-account-setting': readSaveAccountSettingSection})
    sub_parsers.setEntitiesParsers({'hint': chains._readHintSection,
     'tutorial-setting': readTutorialSettingSection})
    sub_parsers.setTriggersParsers({'bonus': lobby.readBonusTriggerSection,
     'premiumDiscount': lobby.readPremiumDiscountsUseTriggerSection,
     'allTutorialBonuses': _readAllTurorialBonusesTriggerSection,
     'randomBattlesCount': _readRandomBattlesCountTriggerSection,
     'researchModule': _readResearchModuleTriggerSection,
     'installModule': _readInstallModuleTriggerSection,
     'researchVehicle': _readResearchVehicleTriggerSection,
     'buyVehicle': _readBuyVehicleTriggerSection,
     'buySlot': lobby.readFreeVehicleSlotTriggerSection,
     'vehicleBattlesCount': _readVehicleBattlesCountTriggerSection,
     'xpExchange': _readXpExchangeTriggerSection,
     'tutorialIntSetting': readTutorialIntSettingTriggerSection,
     'chapterBonus': _readChapterBonusTriggerSection,
     'installItems': _readItemsInstallTriggerSection,
     'invalidateFlags': _readInvalidateFlagsTriggerSection,
     'timer': _readTimerTriggerSection,
     'queue': chains.readQueueTrigger})
    sub_parsers.setWindowsParsers({'awardWindow': sub_parsers.readQuestAwardWindowSection})