コード例 #1
0
def _readShowGreetingSection(xmlCtx, section, _, conditions):
    greetingID = sub_parsers.parseID(xmlCtx, section, 'Specify a greeting ID')
    return effects.HasTargetEffect(greetingID,
                                   _EFFECT_TYPE.SHOW_GREETING,
                                   conditions=conditions)
コード例 #2
0
ファイル: sub_parsersquests.py プロジェクト: Difrex/wotsdk
def _readSelectVehicleInHangarSection(xmlCtx, section, flags, conditions):
    targetID = section.asString
    return effects.HasTargetEffect(
        targetID,
        effects.EFFECT_TYPE.SELECT_VEHICLE_IN_HANGAR,
        conditions=conditions)
コード例 #3
0
def _readTeleportSection(xmlCtx, section, _, conditions):
    pointID = sub_parsers.parseID(xmlCtx, section, 'Specify a point ID')
    return effects.HasTargetEffect(pointID,
                                   _EFFECT_TYPE.TELEPORT,
                                   conditions=conditions)
コード例 #4
0
def _readRequestBonusEffectSection(xmlCtx, section, _, conditions):
    chapterID = section.asString
    return effects.HasTargetEffect(chapterID,
                                   _EFFECT_TYPE.REQUEST_BONUS,
                                   conditions=conditions)
コード例 #5
0
def _readShowDialogSection(xmlCtx, section, _, conditions):
    dialogID = parseID(xmlCtx, section, 'Specify a dialog ID')
    return effects.HasTargetEffect(dialogID,
                                   _EFFECT_TYPE.SHOW_DIALOG,
                                   conditions=conditions)
コード例 #6
0
def _readInternalBrowserSection(xmlCtx, section, flags, conditions):
    flagID = sub_parsers.parseID(xmlCtx, section, 'Specify a flag ID')
    if flagID not in flags:
        flags.append(flagID)
    return effects.HasTargetEffect(flagID, _EFFECT_TYPE.OPEN_INTERNAL_BROWSER, conditions=conditions)
コード例 #7
0
def _readNextChapterEffectSection(xmlCtx, section, _, conditions):
    targetID = section.asString
    return effects.HasTargetEffect(targetID,
                                   _EFFECT_TYPE.NEXT_CHAPTER,
                                   conditions=conditions)
コード例 #8
0
ファイル: __init__.py プロジェクト: kusaku/wot_scripts
def _readGuiItemCriteria(xmlCtx, section, _, conditions):
    criteriaID = parseID(xmlCtx, section, 'Specify a music ID')
    return effects.HasTargetEffect(criteriaID, _EFFECT_TYPE.SET_GUI_ITEM_CRITERIA, conditions=conditions)
コード例 #9
0
ファイル: __init__.py プロジェクト: kusaku/wot_scripts
def _readRemoveActionSection(xmlCtx, section, _, conditions):
    actionID = parseID(xmlCtx, section, 'Specify a action ID')
    return effects.HasTargetEffect(actionID, _EFFECT_TYPE.REMOVE_ACTION, conditions=conditions)
コード例 #10
0
ファイル: __init__.py プロジェクト: kusaku/wot_scripts
def _readShowMessageSection(xmlCtx, section, _, conditions):
    messageID = parseID(xmlCtx, section, 'Specify a message ID')
    return effects.HasTargetEffect(messageID, _EFFECT_TYPE.SHOW_MESSAGE, conditions=conditions)
コード例 #11
0
ファイル: __init__.py プロジェクト: kusaku/wot_scripts
def _readPlayMusicSection(xmlCtx, section, _, conditions):
    messageID = parseID(xmlCtx, section, 'Specify a music ID')
    return effects.HasTargetEffect(messageID, _EFFECT_TYPE.PLAY_MUSIC, conditions=conditions)
コード例 #12
0
ファイル: __init__.py プロジェクト: kusaku/wot_scripts
def _readDeactivateEffectSection(xmlCtx, section, flags, conditions):
    flagID = parseID(xmlCtx, section, 'Specify a flag ID')
    if flagID not in flags:
        flags.append(flagID)
    return effects.HasTargetEffect(flagID, _EFFECT_TYPE.DEACTIVATE, conditions=conditions)
コード例 #13
0
ファイル: sub_parsersquests.py プロジェクト: Difrex/wotsdk
def readSaveAccountSettingSection(xmlCtx, section, _, conditions):
    settingID = sub_parsers.parseID(xmlCtx, section, 'Specify a setting ID')
    return effects.HasTargetEffect(settingID,
                                   _EFFECT_TYPE.SAVE_ACCOUNT_SETTING,
                                   conditions=conditions)
コード例 #14
0
ファイル: sub_parsersquests.py プロジェクト: Difrex/wotsdk
def readSaveTutorialSettingSection(xmlCtx, section, _, conditions):
    settingID = sub_parsers.parseID(xmlCtx, section, 'Specify a setting ID')
    return effects.HasTargetEffect(settingID,
                                   _EFFECT_TYPE.SAVE_TUTORIAL_SETTING,
                                   conditions=conditions)
コード例 #15
0
def readShowUnlockedChapterSection(xmlCtx, section, flags, conditions):
    targetID = section.asString
    return effects.HasTargetEffect(targetID,
                                   effects.EFFECT_TYPE.SHOW_UNLOCKED_CHAPTER,
                                   conditions=conditions)
コード例 #16
0
ファイル: __init__.py プロジェクト: kusaku/wot_scripts
def _readSetVarSection(xmlCtx, section, _, conditions):
    varID = parseID(xmlCtx, section, 'Specify a var ID')
    return effects.HasTargetEffect(varID, _EFFECT_TYPE.SET_VAR, conditions=conditions)
コード例 #17
0
def _readExitQueueEffectSection(xmlCtx, section, flags, conditions):
    flagID = sub_parsers.parseID(xmlCtx, section, 'Specify a flag ID')
    if flagID not in flags:
        flags.append(flagID)
    return effects.HasTargetEffect(flagID, _EFFECT_TYPE.EXIT_QUEUE, conditions=conditions)
コード例 #18
0
ファイル: __init__.py プロジェクト: kusaku/wot_scripts
def _readInvokePlayerCmdSection(xmlCtx, section, _, conditions):
    commandID = parseID(xmlCtx, section, 'Specify a command ID')
    return effects.HasTargetEffect(commandID, _EFFECT_TYPE.INVOKE_PLAYER_CMD, conditions=conditions)
コード例 #19
0
def _readGlobalDeactivateEffectSection(xmlCtx, section, _, conditions):
    flagID = parseID(xmlCtx, section, 'Specify a flag ID')
    return effects.HasTargetEffect(flagID,
                                   _EFFECT_TYPE.GLOBAL_DEACTIVATE,
                                   conditions=conditions)
コード例 #20
0
ファイル: __init__.py プロジェクト: kusaku/wot_scripts
def _readGoSceneSection(xmlCtx, section, _, conditions):
    sceneID = parseID(xmlCtx, section, 'Specify a setting ID')
    return effects.HasTargetEffect(sceneID, _EFFECT_TYPE.GO_SCENE, conditions=conditions)
コード例 #21
0
def _readRunTriggerEffectSection(xmlCtx, section, _, conditions):
    triggerID = parseID(xmlCtx, section, 'Specify a trigger ID')
    return effects.HasTargetEffect(triggerID,
                                   _EFFECT_TYPE.RUN_TRIGGER,
                                   conditions=conditions)
コード例 #22
0
def _readRemoveMarkerSection(xmlCtx, section, _, conditions):
    markerID = sub_parsers.parseID(xmlCtx, section, 'Specify a marker ID')
    return effects.HasTargetEffect(markerID,
                                   _EFFECT_TYPE.REMOVE_MARKER,
                                   conditions=conditions)
コード例 #23
0
def _readCloseHintSection(xmlCtx, section, _, conditions):
    hintID = parseID(xmlCtx, section, 'Specify a hint ID')
    return effects.HasTargetEffect(hintID,
                                   _EFFECT_TYPE.CLOSE_HINT,
                                   conditions=conditions)
コード例 #24
0
def _readNextTaskSection(xmlCtx, section, _, conditions):
    taskID = sub_parsers.parseID(xmlCtx, section, 'Specify a next task ID')
    return effects.HasTargetEffect(taskID,
                                   _EFFECT_TYPE.NEXT_TASK,
                                   conditions=conditions)
コード例 #25
0
def _readShowAwardWindowSection(xmlCtx, section, _, conditions):
    windowID = parseID(xmlCtx, section, 'Specify a window ID')
    return effects.HasTargetEffect(windowID,
                                   _EFFECT_TYPE.SHOW_AWARD_WINDOW,
                                   conditions=conditions)
コード例 #26
0
def _reaLoadViewSection(xmlCtx, section, _, conditions):
    viewID = parseID(xmlCtx, section, 'Specify a view ID')
    return effects.HasTargetEffect(viewID, effects.EFFECT_TYPE.LOAD_VIEW, conditions=conditions)