UNPKG

sdk7-npc-utils

Version:

A collection of helpers to make it easier to build a Decentraland scene using the SDK 7.

19 lines (18 loc) 725 B
import { Entity } from "@dcl/sdk/ecs"; import { Dialog } from "./types"; export declare const npcDialogComponent: Map<Entity, any>; export declare const npcDialogTypingSystems: Map<Entity, any>; export declare enum ConfirmMode { Confirm = 0, Cancel = 1, Next = 2, Button3 = 3, Button4 = 4 } export declare function addDialog(npc: Entity, sound?: string): void; export declare function getText(): any; export declare function getFontSize(): any; export declare function displayDialog(): any; export declare function closeDialog(npc: Entity): void; export declare function talk(npc: Entity, dialog: Dialog[], startIndex?: number, duration?: number): void; export declare function handleDialogClick(): void;