import { CommandAdder } from "areaspawnr"; import { Location, PreActorLike } from "mapscreatr"; import { EightBittr } from "../EightBittr"; import { Section } from "./Section"; /** * Enters and spawns map areas. */ export declare class Maps extends Section { /** * Function to add an Area provides an "afters" command to add PreActors * to the end of an Area. */ readonly addAfter?: CommandAdder; /** * Function for when a PreActor's Actor should be spawned. */ readonly addPreActor?: (preActor: PreActorLike) => void; /** * Entrance Functions that may be used as the openings for Locations. */ readonly entrances?: any; /** * Macros that can be used to automate common operations. */ readonly macros?: any; /** * Maps that should be immediately stored via a storeMaps call, keyed by name. */ readonly maps?: any; /** * Property names to copy from Areas to the MapScreenr during setLocation. */ readonly screenAttributes?: string[]; /** * Sets the current map. * * @param name Name of the new map, if not the current one. * @param location Name of a location in the map to go to. * @returns The newly set map. */ setMap(name?: string, location?: string): Location; /** * Sets the current location. * * @param name Name of the new location. * @returns The newly set location. */ setLocation(name: string): Location; /** * Spawns all Actors within a given area that should be there. * * @param direction The direction spawning comes from. * @param top A top boundary to spawn within. * @param right A right boundary to spawn within. * @param bottom A bottom boundary to spawn within. * @param left A left boundary to spawn within. * @remarks This is generally called by a QuadsKeepr during a screen update. */ onAreaSpawn(direction: string, top: number, right: number, bottom: number, left: number): void; /** * "Unspawns" all Actors within a given area that should be gone by marking * their PreActors as not in game. * * @param direction The direction spawning comes from. * @param top A top boundary to spawn within. * @param right A right boundary to spawn within. * @param bottom A bottom boundary to spawn within. * @param left A left boundary to spawn within. * @remarks This is generally called by a QuadsKeepr during a screen update. */ onAreaUnspawn(direction: string, top: number, right: number, bottom: number, left: number): void; } //# sourceMappingURL=Maps.d.ts.map