dcl-npc-toolkit-ai-version
Version:
A collection of tools for creating Non-Player-Characters (NPCs). These are capable of having conversations with the player, and play different animations. AI usage is added atop of it
11 lines (10 loc) • 603 B
TypeScript
import { Entity } from '@dcl/sdk/ecs';
import { Dialog } from './types';
export declare let bubblesTexture: string;
export declare let bubbles: Map<Entity, any>;
export declare function createDialogBubble(npc: Entity, height?: number, sound?: string): void;
export declare function openBubble(npc: Entity, dialog: Dialog[], startIndex?: number | string): void;
export declare function closeBubble(npc: Entity): void;
export declare function closeBubbleEndAll(npc: Entity): void;
export declare function next(npc: Entity): void;
export declare function getBubbleTextLength(text: string): 40 | undefined;