auto-git:
[change] src/scheduler/project-schedule-control-options.ts
This commit is contained in:
@@ -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(
|
function compareProjectScheduleTargetOptions(
|
||||||
left: ProjectScheduleTargetOption,
|
left: ProjectScheduleTargetOption,
|
||||||
right: 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(
|
export function getProjectSequenceControlStepClassForEffectOptionId(
|
||||||
effectOptionId: ProjectScheduleEffectOptionId
|
effectOptionId: ProjectScheduleEffectOptionId
|
||||||
): "held" | "impulse" {
|
): "held" | "impulse" {
|
||||||
|
|||||||
Reference in New Issue
Block a user