UNPKG

@drincs/nqtr

Version:

A complete system introducing the concepts of location, time and event, producing the framework of a not-quite-point-and-click adventure game.

23 lines (20 loc) 747 B
import { Q as QuestInterface } from '../StageInterface-DX74DUxG.mjs'; import '@drincs/nqtr'; declare const registeredQuests: { [id: string]: QuestInterface; }; /** * Save a quest in the registered quests. If the quest already exists, it will be overwritten. * @param id The id of the quest, it must be unique * @param stages The stages of the quest * @param props The quest properties * @returns The created quest */ declare function saveQuest(quest: QuestInterface | QuestInterface[]): void; /** * Get a quest by its id. * @param id The id of the quest. * @returns The quest or undefined if not found. */ declare function getQuestById(id: string): QuestInterface | undefined; export { getQuestById, registeredQuests, saveQuest };