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.

42 lines (39 loc) 1.32 kB
import MapBaseModelProps from '../../interface/navigation/MapBaseModelProps.js'; import { c as MapBaseInternalInterface } from '../../RoomInterface-CdAM_q7P.js'; import MapStoredClass from './MapStoredClass.js'; import '../../interface/ActivityInterface.js'; import '@drincs/nqtr'; import '@drincs/pixi-vn'; import '../../types/ExecutionType.js'; import '../../interface/navigation/NavigationAbstractClass.js'; import './NavigationAbstractClass.js'; /** * The base model of a map. I suggest you extend this class to create your own map model. * @example * ```typescript * export const mainMap = new MapBaseModel('main_map', { * name: 'Main Map', * image: "https://image.jpg", * }); * ``` */ declare class MapBaseModel extends MapStoredClass implements MapBaseInternalInterface { /** * @param id The id of the map, it must be unique. * @param props The properties of the map. */ constructor(id: string, props?: MapBaseModelProps); private defaultName; /** * The name of the map. * If you set undefined, it will return the initial value of name. */ get name(): string; set name(value: string | undefined); private _image?; /** * The image of the map. */ get image(): string | undefined; } export { MapBaseModel as default };