Exemplo n.º 1
0
def readItemUnlockedTriggerSection(xmlCtx, section, _, triggerID):
    return sub_parsers.readValidateVarTriggerSection(
        xmlCtx,
        section,
        triggerID,
        triggers.ItemUnlockedTrigger,
        validateUpdateOnly='validate-update-only' in section.keys())
Exemplo n.º 2
0
def _readSimpleWindowProcessTriggerSection(xmlCtx, section, _, triggerID):
    return sub_parsers.readValidateVarTriggerSection(
        xmlCtx,
        section,
        triggerID,
        triggers.SimpleWindowProcessTrigger,
        validateUpdateOnly='validate-update-only' in section.keys())
Exemplo n.º 3
0
def _readVehicleRequiredLevelTriggerSection(xmlCtx, section, _, triggerID):
    return sub_parsers.readValidateVarTriggerSection(
        xmlCtx,
        section,
        triggerID,
        triggers.CurrentVehicleRequiredLevelTrigger,
        validateUpdateOnly='validate-update-only' in section.keys())
Exemplo n.º 4
0
def readTankmanPriceDiscountTriggerSection(xmlCtx, section, _, triggerID):
    return sub_parsers.readValidateVarTriggerSection(
        xmlCtx,
        section,
        triggerID,
        triggers.TankmanPriceDiscountTrigger,
        validateUpdateOnly='validate-update-only' in section.keys())
Exemplo n.º 5
0
def _readBuyNextLevelVehicleTriggerSection(xmlCtx, section, _, triggerID):
    return sub_parsers.readValidateVarTriggerSection(
        xmlCtx,
        section,
        triggerID,
        triggers.BuyNextLevelVehicleTrigger,
        validateUpdateOnly='validate-update-only' in section.keys())
Exemplo n.º 6
0
def _readDispatchableTriggerSection(xmlCtx, section, triggerID, clazz,
                                    **kwargs):
    stateFlagID = section.readString('init-state-flag')
    if not stateFlagID:
        stateFlagID = None
    return sub_parsers.readValidateVarTriggerSection(xmlCtx,
                                                     section,
                                                     triggerID,
                                                     clazz,
                                                     stateFlagID=stateFlagID,
                                                     **kwargs)
Exemplo n.º 7
0
def _readLinearCheckpointControllerTriggerSection(xmlCtx, section, _,
                                                  triggerID):
    checkpointsSequence = [
        sub_parsers.parseID(xmlCtx, subSec,
                            'missing checkpoint ID in sequence')
        for _, subSec in _xml.getChildren(xmlCtx, section, 'sequence')
    ]
    return sub_parsers.readValidateVarTriggerSection(
        xmlCtx,
        section,
        triggerID,
        bc_triggers.LinearCheckpointControllerTrigger,
        checkpointsSequence=checkpointsSequence)
Exemplo n.º 8
0
def _readUseItemsTriggerSection(xmlCtx, section, chapter, triggerID):
    return sub_parsers.readValidateVarTriggerSection(xmlCtx, section, triggerID, triggers.UseItemsTrigger)
Exemplo n.º 9
0
def readTankmanPriceDiscountTriggerSection(xmlCtx, section, _, triggerID):
    return sub_parsers.readValidateVarTriggerSection(xmlCtx, section, triggerID, triggers.TankmanPriceDiscountTrigger, validateUpdateOnly='validate-update-only' in section.keys())
Exemplo n.º 10
0
def _readPermanentVehicleOwnTriggerSection(xmlCtx, section, chapter, triggerID):
    return sub_parsers.readValidateVarTriggerSection(xmlCtx, section, triggerID, triggers.PermanentVehicleOwnTrigger)
def readBattleCountTriggerSection(xmlCtx, section, _, triggerID):
    return sub_parsers.readValidateVarTriggerSection(xmlCtx, section, triggerID, triggers.BattleCountRequester)
Exemplo n.º 12
0
def _readItemsInstallTriggerSection(xmlCtx, section, _, triggerID):
    return sub_parsers.readValidateVarTriggerSection(xmlCtx, section, triggerID, triggers.InstallItemsTrigger)
Exemplo n.º 13
0
def readTutorialIntSettingTriggerSection(xmlCtx, section, _, triggerID):
    return sub_parsers.readValidateVarTriggerSection(xmlCtx, section, triggerID, triggers.TutorialIntSettingsTrigger)
Exemplo n.º 14
0
def _readVehicleOnArenaTriggerSection(xmlCtx, section, _, triggerID):
    return sub_parsers.readValidateVarTriggerSection(
        xmlCtx, section, triggerID, triggers.VehicleOnArenaTrigger)
Exemplo n.º 15
0
def _readSimpleWindowCloseTriggerSection(xmlCtx, section, _, triggerID):
    return sub_parsers.readValidateVarTriggerSection(xmlCtx, section, triggerID, triggers.SimpleWindowCloseTrigger, validateUpdateOnly='validate-update-only' in section.keys())
Exemplo n.º 16
0
def _makeSimpleValidateVarTriggerReader(clazz):
    return lambda xmlCtx, section, _, triggerID: sub_parsers.readValidateVarTriggerSection(
        xmlCtx, section, triggerID, clazz)
Exemplo n.º 17
0
def readBattleCountTriggerSection(xmlCtx, section, _, triggerID):
    return sub_parsers.readValidateVarTriggerSection(xmlCtx, section, triggerID, triggers.BattleCountRequester)
Exemplo n.º 18
0
def readItemUnlockedTriggerSection(xmlCtx, section, _, triggerID):
    return sub_parsers.readValidateVarTriggerSection(xmlCtx, section, triggerID, triggers.ItemUnlockedTrigger, validateUpdateOnly='validate-update-only' in section.keys())
Exemplo n.º 19
0
def _readBuyVehicleTriggerSection(xmlCtx, section, chapter, triggerID):
    return sub_parsers.readValidateVarTriggerSection(xmlCtx, section, triggerID, triggers.BuyVehicleTrigger)
Exemplo n.º 20
0
def _readAllTurorialBonusesTriggerSection(xmlCtx, section, chapter, triggerID):
    return sub_parsers.readValidateVarTriggerSection(xmlCtx, section, triggerID, triggers.AllTutorialBonusesTrigger)
Exemplo n.º 21
0
def _readDispatchableTriggerSection(xmlCtx, section, triggerID, clazz, **kwargs):
    stateFlagID = section.readString('init-state-flag')
    if not len(stateFlagID):
        stateFlagID = None
    return sub_parsers.readValidateVarTriggerSection(xmlCtx, section, triggerID, clazz, stateFlagID=stateFlagID, **kwargs)
Exemplo n.º 22
0
def _readVehicleBattlesCountTriggerSection(xmlCtx, section, chapter, triggerID):
    return sub_parsers.readValidateVarTriggerSection(xmlCtx, section, triggerID, triggers.VehicleBattleCountTrigger)
Exemplo n.º 23
0
def _readVehicleOnArenaTriggerSection(xmlCtx, section, _, triggerID):
    return sub_parsers.readValidateVarTriggerSection(xmlCtx, section, triggerID, triggers.VehicleOnArenaTrigger)
Exemplo n.º 24
0
def _readChapterBonusTriggerSection(xmlCtx, section, _, triggerID):
    return sub_parsers.readValidateVarTriggerSection(xmlCtx, section, triggerID, triggers.ChapterBonusTrigger)
Exemplo n.º 25
0
def _readUseItemsTriggerSection(xmlCtx, section, chapter, triggerID):
    return sub_parsers.readValidateVarTriggerSection(xmlCtx, section,
                                                     triggerID,
                                                     triggers.UseItemsTrigger)
Exemplo n.º 26
0
def _readTimerTriggerSection(xmlCtx, section, _, triggerID):
    return sub_parsers.readValidateVarTriggerSection(xmlCtx, section, triggerID, triggers.TimerTrigger)
Exemplo n.º 27
0
def _readBuyNextLevelVehicleTriggerSection(xmlCtx, section, _, triggerID):
    return sub_parsers.readValidateVarTriggerSection(xmlCtx, section, triggerID, triggers.BuyNextLevelVehicleTrigger, validateUpdateOnly='validate-update-only' in section.keys())
def readTimerTriggerSection(xmlCtx, section, _, triggerID):
    return sub_parsers.readValidateVarTriggerSection(xmlCtx, section, triggerID, triggers.TimerTrigger)
Exemplo n.º 29
0
def _readVehicleRequiredLevelTriggerSection(xmlCtx, section, _, triggerID):
    return sub_parsers.readValidateVarTriggerSection(xmlCtx, section, triggerID, triggers.CurrentVehicleRequiredLevelTrigger, validateUpdateOnly='validate-update-only' in section.keys())