UNPKG

prendy

Version:

Make games with prerendered backdrops using babylonjs and repond

17 lines (16 loc) 980 B
import { CharacterName, DollName, PlaceName, StoryCallback, TriggerNameByPlace } from "../../types"; export declare function makeInteractButtonEffects({ onInteractAtTrigger, onInteractAtTalk, }: { onInteractAtTrigger: ReturnType<typeof makeOnInteractAtTrigger>; onInteractAtTalk: ReturnType<typeof makeOnInteractToTalk>; }): Record<"whenInteractButtonClicked", import("repond").Effect>; type OnInteractAtTriggerOptions = Partial<{ [P_PlaceName in PlaceName]: Partial<{ [P_TriggerName in TriggerNameByPlace[P_PlaceName]]: StoryCallback; }>; }>; export declare function makeOnInteractAtTrigger(callBacksObject: OnInteractAtTriggerOptions, characterNameParam?: CharacterName): () => void; type OnInteractToTalkOptions = Partial<{ [P_DollName in DollName]: StoryCallback; }>; export declare function makeOnInteractToTalk(callBacksObject: OnInteractToTalkOptions, distanceType?: "touch" | "talk", characterNameParam?: CharacterName): () => void; export {};