auto-git:

[change] src/scheduler/project-schedule-control-options.ts
This commit is contained in:
2026-04-23 08:05:56 +02:00
parent 720ae35d99
commit c0deee2dad

View File

@@ -255,6 +255,11 @@ const PROJECT_SCHEDULE_EFFECT_OPTIONS: Record<
}
};
const INTERACTION_UNSUPPORTED_PROJECT_SCHEDULE_EFFECT_OPTION_IDS = new Set<ProjectScheduleEffectOptionId>([
"actor.playAnimation",
"actor.followPath"
]);
function compareProjectScheduleTargetOptions(
left: ProjectScheduleTargetOption,
right: ProjectScheduleTargetOption
@@ -585,6 +590,24 @@ export function listProjectScheduleEffectOptions(
}
}
export function listProjectInteractionControlEffectOptions(
targetOption: ProjectScheduleTargetOption
): ProjectScheduleEffectOption[] {
return listProjectScheduleEffectOptions(targetOption).filter(
(option) =>
!INTERACTION_UNSUPPORTED_PROJECT_SCHEDULE_EFFECT_OPTION_IDS.has(option.id)
);
}
export function listProjectInteractionControlTargetOptions(
targetOptions: ProjectScheduleTargetOption[]
): ProjectScheduleTargetOption[] {
return targetOptions.filter(
(targetOption) =>
listProjectInteractionControlEffectOptions(targetOption).length > 0
);
}
export function getProjectSequenceControlStepClassForEffectOptionId(
effectOptionId: ProjectScheduleEffectOptionId
): "held" | "impulse" {