prendy
Version:
Make games with prerendered backdrops using babylonjs and repond
26 lines (25 loc) • 1.51 kB
TypeScript
import { CharacterName, DollName, PickupName, PlaceName, StoryCallback, TriggerNameByPlace } from "../../types";
export declare function initPickupsEffects({ onUsePickupAtTrigger, onUsePickupToTalk, onUsePickupGenerally, }: {
onUsePickupAtTrigger: ReturnType<typeof makeOnUsePickupAtTrigger>;
onUsePickupToTalk: ReturnType<typeof makeOnUsePickupToTalk>;
onUsePickupGenerally: ReturnType<typeof makeOnUsePickupGenerally>;
}): void;
type OnUsePickupAtTriggerOptions = Partial<{
[P_PlaceName in PlaceName]: Partial<{
[P_TriggerName in TriggerNameByPlace[P_PlaceName]]: Partial<{
[P_PickupName in PickupName]: StoryCallback;
}>;
}>;
}>;
export declare function makeOnUsePickupAtTrigger(callBacksObject: OnUsePickupAtTriggerOptions, characterNameParam?: CharacterName): <T_PickupName extends string>(pickupName: T_PickupName) => false | undefined;
type OnUsePickupGenerallyOptions = Partial<{
[P_PickupName in PickupName]: StoryCallback;
}>;
export declare function makeOnUsePickupGenerally(callBacksObject: OnUsePickupGenerallyOptions): <T_PickupName extends string>(pickupName: T_PickupName) => void;
type OnUsePickupToTalkOptions = Partial<{
[P_DollName in DollName]: Partial<{
[P_PickupName in PickupName]: StoryCallback;
}>;
}>;
export declare function makeOnUsePickupToTalk(callBacksObject: OnUsePickupToTalkOptions, characterNameParam?: CharacterName): <T_PickupName extends string>(pickupName: T_PickupName) => false | undefined;
export {};