public AilmentTriggerInfo(AilmentTriggerSubDefinition ailmentTrigger) { TriggerType = ailmentTrigger.triggerType; FocusMatters = ailmentTrigger.focusMatters; OnUnfocused = ailmentTrigger.onUnfocused; ExhaustionMatters = ailmentTrigger.exhaustionMatters; OnExhausted = ailmentTrigger.onExhausted; UpsetMatters = ailmentTrigger.upsetMatters; OnUpset = ailmentTrigger.onUpset; ThresholdValue = ailmentTrigger.thresholdValue; ThresholdPersistent = ailmentTrigger.thresholdPersistent; PerentChance = ailmentTrigger.perentChance; ExecuteLimit = ailmentTrigger.executeLimit; DefaultDisabled = ailmentTrigger.defaultDisabled; Audibalized = ailmentTrigger.audibalized; Verbalized = ailmentTrigger.verbalized; VerbalizedIndex = ailmentTrigger.verbalizedIndex; StepsProcessType = ailmentTrigger.stepsProcessType; if (ailmentTrigger.steps != null) { StepInfos = ailmentTrigger.steps.Select(x => new AilmentStepInfo(x)).ToList(); } }
public AilmentTriggerInfo(AilmentTriggerType triggerType, AilmentTriggerStepsProcessType stepsProcessType, float perentChance, int thresholdValue, int executeLimit, int verbalizedIndex, bool focusMatters, bool onUnfocused, bool exhaustionMatters, bool onExhausted, bool upsetMatters, bool onUpset, bool thresholdPersistent, bool defaultDisabled, bool audibalized, bool verbalized, List <AilmentStepInfo> stepInfos) { TriggerType = triggerType; FocusMatters = focusMatters; OnUnfocused = onUnfocused; ExhaustionMatters = exhaustionMatters; OnExhausted = onExhausted; UpsetMatters = upsetMatters; OnUpset = onUpset; ThresholdValue = thresholdValue; ThresholdPersistent = thresholdPersistent; PerentChance = perentChance; ExecuteLimit = executeLimit; DefaultDisabled = defaultDisabled; Audibalized = audibalized; Verbalized = verbalized; VerbalizedIndex = verbalizedIndex; StepsProcessType = stepsProcessType; StepInfos = stepInfos; }