Integrate and manage runtime schedule synchronization context in RuntimeHost

This commit is contained in:
2026-04-27 16:28:46 +02:00
parent 3f3f64f507
commit 4fbdcc73f8
2 changed files with 11 additions and 14 deletions

View File

@@ -16,7 +16,7 @@ import {
export interface RuntimeScheduleSyncContext {
readonly runtimeScene: RuntimeSceneDefinition;
readonly pathsById: ReadonlyMap<string, RuntimeSceneDefinition["paths"][number]>;
readonly actorIds: readonly string[];
readonly actorIds: string[];
readonly actorStatesByActorId: ReadonlyMap<
string,
RuntimeResolvedActorScheduleState
@@ -214,7 +214,7 @@ export function syncRuntimeSceneScheduleToClock(options: {
const resolvedScheduler = resolveRuntimeProjectScheduleState({
scheduler: runtimeScene.scheduler.document,
sequences: runtimeScene.sequences,
actorIds: [...context.actorIds],
actorIds: context.actorIds,
dayNumber: clock.dayCount + 1,
timeOfDayHours: clock.timeOfDayHours,
pathsById: context.pathsById