area_spawn
Vars | |
area_turf_cache | Cache of area turf info. [area/area][stringed of AREA_SPAWN_MODE_*][string of priority #][turf index] |
---|---|
failed_area_spawns | Non-optional area spawns that failed to find an area. |
Procs | |
clear_cache | Clear the cached tiles for optimization or debugging purposes. |
get_turf_candidates | Process the geometry of an area and cache the candidates. |
pick_turf_candidate | Pick a turf candidate and remove from the list. |
process_turf | Process a specific turf and return priority number from 0 to infinity. |
Var Details
area_turf_cache
Cache of area turf info. [area/area][stringed of AREA_SPAWN_MODE_*][string of priority #][turf index]
failed_area_spawns
Non-optional area spawns that failed to find an area.
Proc Details
clear_cache
Clear the cached tiles for optimization or debugging purposes.
get_turf_candidates
Process the geometry of an area and cache the candidates.
Returns turf candidate list. "[priority]" =
Arguments:
- area - the area to process
- mode - The area_spawn_mode we're getting turfs for.
pick_turf_candidate
Pick a turf candidate and remove from the list.
Only picks one of the highest priority ones.
Arguments:
- turf_candidates - Turf candidate list produced by
process_turf
Process a specific turf and return priority number from 0 to infinity.
Turfs with highest priority will be picked. Priority 0 means NEVER.
Arguments:
- turf - The turf to process
- mode - The area_spawn_mode we're getting turfs for.