Add support for NPC dialogue in runtime-host.ts
This commit is contained in:
@@ -2992,6 +2992,14 @@ export class RuntimeHost {
|
|||||||
case "controlEffect":
|
case "controlEffect":
|
||||||
this.applyControlEffect(effect.effect, null);
|
this.applyControlEffect(effect.effect, null);
|
||||||
return;
|
return;
|
||||||
|
case "makeNpcTalk":
|
||||||
|
this.openRuntimeNpcDialogue(effect.npcEntityId, effect.dialogueId, {
|
||||||
|
kind: "direct",
|
||||||
|
sourceEntityId,
|
||||||
|
linkId: null,
|
||||||
|
trigger: null
|
||||||
|
});
|
||||||
|
return;
|
||||||
case "startDialogue":
|
case "startDialogue":
|
||||||
this.openRuntimeDialogue(effect.dialogueId, {
|
this.openRuntimeDialogue(effect.dialogueId, {
|
||||||
kind: "direct",
|
kind: "direct",
|
||||||
|
|||||||
Reference in New Issue
Block a user