import { MapsCreatr , PreActorLike , PreActorSettings } from "mapscreatr" ; import { MapScreenr } from "mapscreenr" ; param actor param index param commands export type CommandAdder = ( actor : string | PreActorSettings , index : number , commands : any [ ] ) => void ; /**
 * Settings to initialize a new AreaSpawnr.
 */ export interface AreaSpawnrSettings { /**
     * MapsCreatr used to store and lazily initialize Maps.
     */ mapsCreatr : MapsCreatr ; /**
     * MapScreenr used to store attributes of Areas.
     */ mapScreenr : MapScreenr ; /**
     * Function for when a PreActor's Actor should be spawned.
     */ onSpawn ? ( preactor ) : void ; /**
     * Function for when a PreActor's Actor should be un-spawned.
     */ onUnspawn ? ( preactor ) : void ; /**
     * Any property names to copy from Areas to the MapScreenr during setLocation.
     */ screenAttributes ? : string [ ] ; /**
     * Function to add an Area's provided "stretches" commands to stretch
     * across an Area.
     */ stretchAdd ? : CommandAdder ; /**
     * Function to add an Area provides an "afters" command to add PreActors
     * to the end of an Area.
     */ afterAdd ? : CommandAdder ; }