Update NPC definition and add path state
This commit is contained in:
@@ -13,6 +13,8 @@ import {
|
|||||||
createLightIntensityControlChannelDescriptor,
|
createLightIntensityControlChannelDescriptor,
|
||||||
createModelInstanceControlTargetRef,
|
createModelInstanceControlTargetRef,
|
||||||
createResolvedAmbientLightColorState,
|
createResolvedAmbientLightColorState,
|
||||||
|
createResolvedActorAnimationPlaybackState,
|
||||||
|
createResolvedActorPathAssignmentState,
|
||||||
createResolvedAmbientLightIntensityChannelValue,
|
createResolvedAmbientLightIntensityChannelValue,
|
||||||
createResolvedInteractionEnabledState,
|
createResolvedInteractionEnabledState,
|
||||||
createResolvedLightColorState,
|
createResolvedLightColorState,
|
||||||
@@ -222,11 +224,29 @@ export interface RuntimeNpc {
|
|||||||
modelAssetId: string | null;
|
modelAssetId: string | null;
|
||||||
collider: FirstPersonPlayerShape;
|
collider: FirstPersonPlayerShape;
|
||||||
activeRoutineTitle: string | null;
|
activeRoutineTitle: string | null;
|
||||||
|
animationClipName: string | null;
|
||||||
|
animationLoop: boolean | undefined;
|
||||||
|
resolvedPath: RuntimeResolvedNpcPathState | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface RuntimeNpcDefinition extends RuntimeNpc {
|
export interface RuntimeNpcDefinition extends RuntimeNpc {
|
||||||
active: boolean;
|
active: boolean;
|
||||||
activeRoutineId: string | null;
|
activeRoutineId: string | null;
|
||||||
|
authoredPosition: Vec3;
|
||||||
|
authoredYawDegrees: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RuntimeResolvedNpcPathState {
|
||||||
|
pathId: string;
|
||||||
|
progressMode: "deriveFromTime";
|
||||||
|
speed: number;
|
||||||
|
loop: boolean;
|
||||||
|
elapsedHours: number;
|
||||||
|
distance: number;
|
||||||
|
progress: number;
|
||||||
|
position: Vec3;
|
||||||
|
tangent: Vec3;
|
||||||
|
yawDegrees: number | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface RuntimeSoundEmitter {
|
export interface RuntimeSoundEmitter {
|
||||||
|
|||||||
Reference in New Issue
Block a user