spacesvr-websessions
Version:
A standardized reality for future of the 3D Web
21 lines (20 loc) • 497 B
TypeScript
export declare type Decision = {
name: string;
action?: () => void;
utility?: number;
nextKey?: string;
onClick?: () => any;
};
export declare type Interaction = {
key: string;
effect?: () => Promise<any>;
text: string;
input?: {
value: string;
setValue: (s: string) => string | void;
type?: "text" | "password" | "email";
persist?: boolean;
};
decisions?: Decision[];
};
export declare type DialogueFSM = Interaction[];