Ejemplo n.º 1
0
def _readItemUnlockedTriggerSection(xmlCtx, section, _, triggerID):
    return sub_parsers._readValidateVarTriggerSection(
        xmlCtx,
        section,
        triggerID,
        triggers.ItemUnlockedTrigger,
        validateUpdateOnly='validate-update-only' in section.keys())
Ejemplo n.º 2
0
def _readCurrentVehicleTriggerSection(xmlCtx, section, _, triggerID):
    isLockedFlagID = section.readString('locked')
    if not len(isLockedFlagID):
        isLockedFlagID = None
    isCrewFullFlagID = section.readString('crew-full')
    if not len(isCrewFullFlagID):
        isCrewFullFlagID = None
    return sub_parsers._readValidateVarTriggerSection(xmlCtx, section, triggerID, triggers.CurrentVehicleTrigger, isLockedFlagID=isLockedFlagID, isCrewFullFlagID=isCrewFullFlagID)
Ejemplo n.º 3
0
def _readInventoryItemTriggerSection(xmlCtx, section, _, triggerID):
    itemTypeID = _xml.readInt(xmlCtx, section, 'item-type-id')
    return sub_parsers._readValidateVarTriggerSection(
        xmlCtx,
        section,
        triggerID,
        triggers.InventoryItemTrigger,
        itemTypeID=itemTypeID)
Ejemplo n.º 4
0
def _readItemXPTriggerSection(xmlCtx, section, _, triggerID):
    vehicleVarID = _xml.readString(xmlCtx, section, 'vehicle-var')
    return sub_parsers._readValidateVarTriggerSection(
        xmlCtx,
        section,
        triggerID,
        triggers.ItemExperienceTrigger,
        vehicleVarID=vehicleVarID)
Ejemplo n.º 5
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)
Ejemplo n.º 6
0
def _readCurrentVehicleTriggerSection(xmlCtx, section, _, triggerID):
    isLockedFlagID = section.readString('locked')
    if not len(isLockedFlagID):
        isLockedFlagID = None
    isCrewFullFlagID = section.readString('crew-full')
    if not len(isCrewFullFlagID):
        isCrewFullFlagID = None
    return sub_parsers._readValidateVarTriggerSection(
        xmlCtx,
        section,
        triggerID,
        triggers.CurrentVehicleTrigger,
        isLockedFlagID=isLockedFlagID,
        isCrewFullFlagID=isCrewFullFlagID)
Ejemplo n.º 7
0
def _readAccountCreditsTriggerSection(xmlCtx, section, chapter, triggerID):
    return sub_parsers._readValidateVarTriggerSection(
        xmlCtx, section, triggerID, triggers.AccountCreditsTrigger)
Ejemplo n.º 8
0
def _readEliteVehicleTriggerSection(xmlCtx, section, chapter, triggerID):
    return sub_parsers._readValidateVarTriggerSection(
        xmlCtx, section, triggerID, triggers.EliteVehicleTrigger)
Ejemplo n.º 9
0
def _readVehicleSettingTriggerSection(xmlCtx, section, chapter, triggerID):
    return sub_parsers._readValidateVarTriggerSection(
        xmlCtx, section, triggerID, triggers.VehicleSettingTrigger)
Ejemplo n.º 10
0
def _readItemUnlockedTriggerSection(xmlCtx, section, _, triggerID):
    return sub_parsers._readValidateVarTriggerSection(xmlCtx, section, triggerID, triggers.ItemUnlockedTrigger, validateUpdateOnly='validate-update-only' in section.keys())
Ejemplo n.º 11
0
def _readAccountCreditsTriggerSection(xmlCtx, section, chapter, triggerID):
    return sub_parsers._readValidateVarTriggerSection(xmlCtx, section, triggerID, triggers.AccountCreditsTrigger)
Ejemplo n.º 12
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)
Ejemplo n.º 13
0
def _readBattleCountTriggerSection(xmlCtx, section, chapter, triggerID):
    return sub_parsers._readValidateVarTriggerSection(xmlCtx, section, triggerID, triggers.BattleCountRequester)
Ejemplo n.º 14
0
def _readTankmanSkillTriggerSection(xmlCtx, section, chapter, triggerID):
    return sub_parsers._readValidateVarTriggerSection(xmlCtx, section, triggerID, triggers.TankmanSkillTrigger)
Ejemplo n.º 15
0
def _readItemXPTriggerSection(xmlCtx, section, _, triggerID):
    vehicleVarID = _xml.readString(xmlCtx, section, 'vehicle-var')
    return sub_parsers._readValidateVarTriggerSection(xmlCtx, section, triggerID, triggers.ItemExperienceTrigger, vehicleVarID=vehicleVarID)
Ejemplo n.º 16
0
def _readVehicleSettingTriggerSection(xmlCtx, section, chapter, triggerID):
    return sub_parsers._readValidateVarTriggerSection(xmlCtx, section, triggerID, triggers.VehicleSettingTrigger)
Ejemplo n.º 17
0
def _readInventoryItemTriggerSection(xmlCtx, section, _, triggerID):
    itemTypeID = _xml.readInt(xmlCtx, section, 'item-type-id')
    return sub_parsers._readValidateVarTriggerSection(xmlCtx, section, triggerID, triggers.InventoryItemTrigger, itemTypeID=itemTypeID)
Ejemplo n.º 18
0
def _readEqInstalledTriggerSection(xmlCtx, section, chapter, triggerID):
    return sub_parsers._readValidateVarTriggerSection(xmlCtx, section, triggerID, triggers.EquipmentInstalledTrigger)
Ejemplo n.º 19
0
def _readItemPriceTriggerSection(xmlCtx, section, chapter, triggerID):
    return sub_parsers._readValidateVarTriggerSection(xmlCtx, section, triggerID, triggers.ItemPriceTrigger)
Ejemplo n.º 20
0
def _readItemPriceTriggerSection(xmlCtx, section, chapter, triggerID):
    return sub_parsers._readValidateVarTriggerSection(
        xmlCtx, section, triggerID, triggers.ItemPriceTrigger)
Ejemplo n.º 21
0
def _readEqInstalledTriggerSection(xmlCtx, section, chapter, triggerID):
    return sub_parsers._readValidateVarTriggerSection(
        xmlCtx, section, triggerID, triggers.EquipmentInstalledTrigger)
Ejemplo n.º 22
0
def _readVehicleOnArenaTriggerSection(xmlCtx, section, _, triggerID):
    return sub_parsers._readValidateVarTriggerSection(
        xmlCtx, section, triggerID, triggers.VehicleOnArenaTrigger)
Ejemplo n.º 23
0
def _readTankmanSkillTriggerSection(xmlCtx, section, chapter, triggerID):
    return sub_parsers._readValidateVarTriggerSection(
        xmlCtx, section, triggerID, triggers.TankmanSkillTrigger)
Ejemplo n.º 24
0
def _readBattleCountTriggerSection(xmlCtx, section, chapter, triggerID):
    return sub_parsers._readValidateVarTriggerSection(
        xmlCtx, section, triggerID, triggers.BattleCountRequester)
Ejemplo n.º 25
0
def _readVehicleOnArenaTriggerSection(xmlCtx, section, _, triggerID):
    return sub_parsers._readValidateVarTriggerSection(xmlCtx, section, triggerID, triggers.VehicleOnArenaTrigger)
Ejemplo n.º 26
0
def _readEliteVehicleTriggerSection(xmlCtx, section, chapter, triggerID):
    return sub_parsers._readValidateVarTriggerSection(xmlCtx, section, triggerID, triggers.EliteVehicleTrigger)