From 7449faddfac6daabd4a8b7f08d376a58e39497aa Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Tue, 14 Apr 2026 01:56:50 +0200 Subject: [PATCH] Add activeRoutineTitle and activeRoutineId to RuntimeNpc and RuntimeSceneDefinition --- src/runtime-three/runtime-scene-build.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/runtime-three/runtime-scene-build.ts b/src/runtime-three/runtime-scene-build.ts index e515de98..d74fcdb2 100644 --- a/src/runtime-three/runtime-scene-build.ts +++ b/src/runtime-three/runtime-scene-build.ts @@ -208,11 +208,12 @@ export interface RuntimeNpc { yawDegrees: number; modelAssetId: string | null; collider: FirstPersonPlayerShape; + activeRoutineTitle: string | null; } export interface RuntimeNpcDefinition extends RuntimeNpc { - presence: NpcPresence; active: boolean; + activeRoutineId: string | null; } export interface RuntimeSoundEmitter { @@ -341,6 +342,7 @@ export interface RuntimeSpawnPoint { export interface RuntimeSceneDefinition { time: ProjectTimeSettings; + scheduler: RuntimeProjectSchedulerState; world: WorldSettings; control: RuntimeControlSurfaceDefinition; localLights: RuntimeLocalLightCollection; @@ -449,7 +451,8 @@ export function createRuntimeNpcFromDefinition( position: cloneVec3(npc.position), yawDegrees: npc.yawDegrees, modelAssetId: npc.modelAssetId, - collider: cloneRuntimeCharacterShape(npc.collider) + collider: cloneRuntimeCharacterShape(npc.collider), + activeRoutineTitle: npc.activeRoutineTitle }; }