auto-git:
[change] src/controls/control-surface.ts
This commit is contained in:
@@ -3,7 +3,8 @@ import { isHexColorString } from "../document/world-settings";
|
|||||||
export const CONTROL_ENTITY_TARGET_KINDS = [
|
export const CONTROL_ENTITY_TARGET_KINDS = [
|
||||||
"pointLight",
|
"pointLight",
|
||||||
"spotLight",
|
"spotLight",
|
||||||
"soundEmitter"
|
"soundEmitter",
|
||||||
|
"cameraRig"
|
||||||
] as const;
|
] as const;
|
||||||
export const CONTROL_INTERACTION_TARGET_KINDS = [
|
export const CONTROL_INTERACTION_TARGET_KINDS = [
|
||||||
"interactable"
|
"interactable"
|
||||||
@@ -17,6 +18,7 @@ export const CONTROL_CAPABILITY_KINDS = [
|
|||||||
"modelVisibility",
|
"modelVisibility",
|
||||||
"soundPlayback",
|
"soundPlayback",
|
||||||
"soundVolume",
|
"soundVolume",
|
||||||
|
"cameraRigOverride",
|
||||||
"interactionAvailability",
|
"interactionAvailability",
|
||||||
"lightEnabled",
|
"lightEnabled",
|
||||||
"lightIntensity",
|
"lightIntensity",
|
||||||
@@ -77,6 +79,7 @@ export type LightControlTargetRef = EntityControlTargetRef<
|
|||||||
>;
|
>;
|
||||||
export type SoundEmitterControlTargetRef =
|
export type SoundEmitterControlTargetRef =
|
||||||
EntityControlTargetRef<"soundEmitter">;
|
EntityControlTargetRef<"soundEmitter">;
|
||||||
|
export type CameraRigControlTargetRef = EntityControlTargetRef<"cameraRig">;
|
||||||
export type ControlTargetRef =
|
export type ControlTargetRef =
|
||||||
| ActorControlTargetRef
|
| ActorControlTargetRef
|
||||||
| EntityControlTargetRef
|
| EntityControlTargetRef
|
||||||
@@ -102,6 +105,16 @@ export interface SetProjectTimePausedControlEffect {
|
|||||||
paused: boolean;
|
paused: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface ActivateCameraRigOverrideControlEffect {
|
||||||
|
type: "activateCameraRigOverride";
|
||||||
|
target: CameraRigControlTargetRef;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ClearCameraRigOverrideControlEffect {
|
||||||
|
type: "clearCameraRigOverride";
|
||||||
|
target: CameraRigControlTargetRef;
|
||||||
|
}
|
||||||
|
|
||||||
export interface PlayActorAnimationControlEffect {
|
export interface PlayActorAnimationControlEffect {
|
||||||
type: "playActorAnimation";
|
type: "playActorAnimation";
|
||||||
target: ActorControlTargetRef;
|
target: ActorControlTargetRef;
|
||||||
@@ -203,6 +216,8 @@ export interface SetSunLightColorControlEffect {
|
|||||||
|
|
||||||
export type ControlEffect =
|
export type ControlEffect =
|
||||||
| SetProjectTimePausedControlEffect
|
| SetProjectTimePausedControlEffect
|
||||||
|
| ActivateCameraRigOverrideControlEffect
|
||||||
|
| ClearCameraRigOverrideControlEffect
|
||||||
| SetActorPresenceControlEffect
|
| SetActorPresenceControlEffect
|
||||||
| PlayActorAnimationControlEffect
|
| PlayActorAnimationControlEffect
|
||||||
| FollowActorPathControlEffect
|
| FollowActorPathControlEffect
|
||||||
@@ -293,6 +308,13 @@ export interface RuntimeResolvedProjectTimePausedState {
|
|||||||
source: RuntimeResolvedControlSource;
|
source: RuntimeResolvedControlSource;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface RuntimeResolvedCameraRigOverrideState {
|
||||||
|
type: "cameraRigOverride";
|
||||||
|
target: GlobalControlTargetRef;
|
||||||
|
entityId: string | null;
|
||||||
|
source: RuntimeResolvedControlSource;
|
||||||
|
}
|
||||||
|
|
||||||
export interface RuntimeResolvedActorPresenceState {
|
export interface RuntimeResolvedActorPresenceState {
|
||||||
type: "actorPresence";
|
type: "actorPresence";
|
||||||
target: ActorControlTargetRef;
|
target: ActorControlTargetRef;
|
||||||
@@ -371,6 +393,7 @@ export interface RuntimeResolvedSunLightColorState {
|
|||||||
|
|
||||||
export type RuntimeResolvedDiscreteControlState =
|
export type RuntimeResolvedDiscreteControlState =
|
||||||
| RuntimeResolvedProjectTimePausedState
|
| RuntimeResolvedProjectTimePausedState
|
||||||
|
| RuntimeResolvedCameraRigOverrideState
|
||||||
| RuntimeResolvedActorPresenceState
|
| RuntimeResolvedActorPresenceState
|
||||||
| RuntimeResolvedActorAnimationPlaybackState
|
| RuntimeResolvedActorAnimationPlaybackState
|
||||||
| RuntimeResolvedActorPathAssignmentState
|
| RuntimeResolvedActorPathAssignmentState
|
||||||
|
|||||||
Reference in New Issue
Block a user