Add trigger field to RuntimeDialogueStartSource and update usage
This commit is contained in:
@@ -21,6 +21,7 @@ export interface RuntimeDialogueStartSource {
|
|||||||
kind: "interactionLink" | "npc" | "direct";
|
kind: "interactionLink" | "npc" | "direct";
|
||||||
sourceEntityId: string | null;
|
sourceEntityId: string | null;
|
||||||
linkId: string | null;
|
linkId: string | null;
|
||||||
|
trigger: InteractionLink["trigger"] | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface RuntimeInteractionDispatcher {
|
export interface RuntimeInteractionDispatcher {
|
||||||
@@ -642,7 +643,8 @@ export class RuntimeInteractionSystem {
|
|||||||
dispatcher.startDialogue(npc.dialogueId, {
|
dispatcher.startDialogue(npc.dialogueId, {
|
||||||
kind: "npc",
|
kind: "npc",
|
||||||
sourceEntityId: npc.entityId,
|
sourceEntityId: npc.entityId,
|
||||||
linkId: null
|
linkId: null,
|
||||||
|
trigger: "click"
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -712,7 +714,8 @@ export class RuntimeInteractionSystem {
|
|||||||
dispatcher.startDialogue(link.action.dialogueId, {
|
dispatcher.startDialogue(link.action.dialogueId, {
|
||||||
kind: "interactionLink",
|
kind: "interactionLink",
|
||||||
sourceEntityId: link.sourceEntityId,
|
sourceEntityId: link.sourceEntityId,
|
||||||
linkId: link.id
|
linkId: link.id,
|
||||||
|
trigger: link.trigger
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
case "control":
|
case "control":
|
||||||
|
|||||||
Reference in New Issue
Block a user