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.

29 lines (26 loc) 886 B
import { R as RoomInterface } from '../RoomInterface-CdAM_q7P.js'; import '@drincs/nqtr'; import '@drincs/pixi-vn'; import '../interface/ActivityInterface.js'; import '../types/ExecutionType.js'; import '../interface/navigation/NavigationAbstractClass.js'; declare const registeredRooms: { [id: string]: RoomInterface; }; /** * Save a room in the registered rooms. If the room already exists, it will be overwritten. * @param room The room to save. * @returns * @example * ```ts * saveRoom([mcRoom, aliceRoom, annRoom, bathroom, lounge, terrace, gymRoom]); * ``` */ declare function saveRoom(room: RoomInterface | RoomInterface[]): void; /** * Get a room by its id. * @param id The id of the room. * @returns The room or undefined if not found. */ declare function getRoomById(id: string): RoomInterface | undefined; export { getRoomById, registeredRooms, saveRoom };