Add support for cone and torus brushes in geometry module and introduce MakeNpcTalk sequence effect
This commit is contained in:
@@ -27,6 +27,13 @@ export interface StartDialogueSequenceEffect {
|
||||
dialogueId: string;
|
||||
}
|
||||
|
||||
export interface MakeNpcTalkSequenceEffect {
|
||||
stepClass: "impulse";
|
||||
type: "makeNpcTalk";
|
||||
npcEntityId: string;
|
||||
dialogueId: string | null;
|
||||
}
|
||||
|
||||
export interface TeleportPlayerSequenceEffect {
|
||||
stepClass: "impulse";
|
||||
type: "teleportPlayer";
|
||||
@@ -77,6 +84,7 @@ export type HeldSequenceStep = HeldControlSequenceEffect;
|
||||
|
||||
export type ImpulseSequenceStep =
|
||||
| ImpulseControlSequenceEffect
|
||||
| MakeNpcTalkSequenceEffect
|
||||
| StartDialogueSequenceEffect
|
||||
| TeleportPlayerSequenceEffect
|
||||
| StartSceneTransitionSequenceEffect
|
||||
@@ -100,6 +108,13 @@ export function cloneSequenceEffect(effect: SequenceEffect): SequenceEffect {
|
||||
type: "startDialogue",
|
||||
dialogueId: effect.dialogueId
|
||||
};
|
||||
case "makeNpcTalk":
|
||||
return {
|
||||
stepClass: "impulse",
|
||||
type: "makeNpcTalk",
|
||||
npcEntityId: effect.npcEntityId,
|
||||
dialogueId: effect.dialogueId
|
||||
};
|
||||
case "teleportPlayer":
|
||||
return {
|
||||
stepClass: "impulse",
|
||||
@@ -158,6 +173,8 @@ export function getSequenceEffectLabel(effect: SequenceEffect): string {
|
||||
return getControlEffectLabel(effect.effect);
|
||||
case "startDialogue":
|
||||
return "Start Dialogue";
|
||||
case "makeNpcTalk":
|
||||
return "Make NPC Talk";
|
||||
case "teleportPlayer":
|
||||
return "Teleport Player";
|
||||
case "startSceneTransition":
|
||||
|
||||
Reference in New Issue
Block a user