Add activeRoutineTitle and activeRoutineId to RuntimeNpc and RuntimeSceneDefinition
This commit is contained in:
@@ -208,11 +208,12 @@ export interface RuntimeNpc {
|
|||||||
yawDegrees: number;
|
yawDegrees: number;
|
||||||
modelAssetId: string | null;
|
modelAssetId: string | null;
|
||||||
collider: FirstPersonPlayerShape;
|
collider: FirstPersonPlayerShape;
|
||||||
|
activeRoutineTitle: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface RuntimeNpcDefinition extends RuntimeNpc {
|
export interface RuntimeNpcDefinition extends RuntimeNpc {
|
||||||
presence: NpcPresence;
|
|
||||||
active: boolean;
|
active: boolean;
|
||||||
|
activeRoutineId: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface RuntimeSoundEmitter {
|
export interface RuntimeSoundEmitter {
|
||||||
@@ -341,6 +342,7 @@ export interface RuntimeSpawnPoint {
|
|||||||
|
|
||||||
export interface RuntimeSceneDefinition {
|
export interface RuntimeSceneDefinition {
|
||||||
time: ProjectTimeSettings;
|
time: ProjectTimeSettings;
|
||||||
|
scheduler: RuntimeProjectSchedulerState;
|
||||||
world: WorldSettings;
|
world: WorldSettings;
|
||||||
control: RuntimeControlSurfaceDefinition;
|
control: RuntimeControlSurfaceDefinition;
|
||||||
localLights: RuntimeLocalLightCollection;
|
localLights: RuntimeLocalLightCollection;
|
||||||
@@ -449,7 +451,8 @@ export function createRuntimeNpcFromDefinition(
|
|||||||
position: cloneVec3(npc.position),
|
position: cloneVec3(npc.position),
|
||||||
yawDegrees: npc.yawDegrees,
|
yawDegrees: npc.yawDegrees,
|
||||||
modelAssetId: npc.modelAssetId,
|
modelAssetId: npc.modelAssetId,
|
||||||
collider: cloneRuntimeCharacterShape(npc.collider)
|
collider: cloneRuntimeCharacterShape(npc.collider),
|
||||||
|
activeRoutineTitle: npc.activeRoutineTitle
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user