Add 'click' trigger kind to interaction links

This commit is contained in:
2026-03-31 06:45:15 +02:00
parent fd5bb86bc8
commit 4f2dc0d8c0

View File

@@ -1,6 +1,6 @@
import { createOpaqueId } from "../core/ids";
export const INTERACTION_TRIGGER_KINDS = ["enter", "exit"] as const;
export const INTERACTION_TRIGGER_KINDS = ["enter", "exit", "click"] as const;
export type InteractionTriggerKind = (typeof INTERACTION_TRIGGER_KINDS)[number];
export interface TeleportPlayerAction {
@@ -61,7 +61,7 @@ function cloneAction(action: InteractionAction): InteractionAction {
}
export function isInteractionTriggerKind(value: unknown): value is InteractionTriggerKind {
return value === "enter" || value === "exit";
return value === "enter" || value === "exit" || value === "click";
}
export function createTeleportPlayerInteractionLink(options: CreateTeleportPlayerInteractionLinkOptions): InteractionLink {