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)
def _readSelectVehicleInHangarSection(xmlCtx, section, flags, conditions): targetID = section.asString return effects.HasTargetEffect( targetID, effects.EFFECT_TYPE.SELECT_VEHICLE_IN_HANGAR, conditions=conditions)
def _readTeleportSection(xmlCtx, section, _, conditions): pointID = sub_parsers.parseID(xmlCtx, section, 'Specify a point ID') return effects.HasTargetEffect(pointID, _EFFECT_TYPE.TELEPORT, conditions=conditions)
def _readRequestBonusEffectSection(xmlCtx, section, _, conditions): chapterID = section.asString return effects.HasTargetEffect(chapterID, _EFFECT_TYPE.REQUEST_BONUS, conditions=conditions)
def _readShowDialogSection(xmlCtx, section, _, conditions): dialogID = parseID(xmlCtx, section, 'Specify a dialog ID') return effects.HasTargetEffect(dialogID, _EFFECT_TYPE.SHOW_DIALOG, conditions=conditions)
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)
def _readNextChapterEffectSection(xmlCtx, section, _, conditions): targetID = section.asString return effects.HasTargetEffect(targetID, _EFFECT_TYPE.NEXT_CHAPTER, conditions=conditions)
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)
def _readRemoveActionSection(xmlCtx, section, _, conditions): actionID = parseID(xmlCtx, section, 'Specify a action ID') return effects.HasTargetEffect(actionID, _EFFECT_TYPE.REMOVE_ACTION, conditions=conditions)
def _readShowMessageSection(xmlCtx, section, _, conditions): messageID = parseID(xmlCtx, section, 'Specify a message ID') return effects.HasTargetEffect(messageID, _EFFECT_TYPE.SHOW_MESSAGE, conditions=conditions)
def _readPlayMusicSection(xmlCtx, section, _, conditions): messageID = parseID(xmlCtx, section, 'Specify a music ID') return effects.HasTargetEffect(messageID, _EFFECT_TYPE.PLAY_MUSIC, conditions=conditions)
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)
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)
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)
def readShowUnlockedChapterSection(xmlCtx, section, flags, conditions): targetID = section.asString return effects.HasTargetEffect(targetID, effects.EFFECT_TYPE.SHOW_UNLOCKED_CHAPTER, conditions=conditions)
def _readSetVarSection(xmlCtx, section, _, conditions): varID = parseID(xmlCtx, section, 'Specify a var ID') return effects.HasTargetEffect(varID, _EFFECT_TYPE.SET_VAR, conditions=conditions)
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)
def _readInvokePlayerCmdSection(xmlCtx, section, _, conditions): commandID = parseID(xmlCtx, section, 'Specify a command ID') return effects.HasTargetEffect(commandID, _EFFECT_TYPE.INVOKE_PLAYER_CMD, conditions=conditions)
def _readGlobalDeactivateEffectSection(xmlCtx, section, _, conditions): flagID = parseID(xmlCtx, section, 'Specify a flag ID') return effects.HasTargetEffect(flagID, _EFFECT_TYPE.GLOBAL_DEACTIVATE, conditions=conditions)
def _readGoSceneSection(xmlCtx, section, _, conditions): sceneID = parseID(xmlCtx, section, 'Specify a setting ID') return effects.HasTargetEffect(sceneID, _EFFECT_TYPE.GO_SCENE, conditions=conditions)
def _readRunTriggerEffectSection(xmlCtx, section, _, conditions): triggerID = parseID(xmlCtx, section, 'Specify a trigger ID') return effects.HasTargetEffect(triggerID, _EFFECT_TYPE.RUN_TRIGGER, conditions=conditions)
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)
def _readCloseHintSection(xmlCtx, section, _, conditions): hintID = parseID(xmlCtx, section, 'Specify a hint ID') return effects.HasTargetEffect(hintID, _EFFECT_TYPE.CLOSE_HINT, conditions=conditions)
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)
def _readShowAwardWindowSection(xmlCtx, section, _, conditions): windowID = parseID(xmlCtx, section, 'Specify a window ID') return effects.HasTargetEffect(windowID, _EFFECT_TYPE.SHOW_AWARD_WINDOW, conditions=conditions)
def _reaLoadViewSection(xmlCtx, section, _, conditions): viewID = parseID(xmlCtx, section, 'Specify a view ID') return effects.HasTargetEffect(viewID, effects.EFFECT_TYPE.LOAD_VIEW, conditions=conditions)