示例#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
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
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
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
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
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
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
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
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
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
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
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)