/tg/ Station 13 - Modules - TypesVar Details - Proc Details

area_spawn

Vars

area_turf_cacheCache of area turf info. [area/area][stringed of AREA_SPAWN_MODE_*][string of priority #][turf index]
failed_area_spawnsNon-optional area spawns that failed to find an area.

Procs

clear_cacheClear the cached tiles for optimization or debugging purposes.
get_turf_candidatesProcess the geometry of an area and cache the candidates.
pick_turf_candidatePick a turf candidate and remove from the list.
process_turfProcess 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:

pick_turf_candidate

Pick a turf candidate and remove from the list.

Only picks one of the highest priority ones.

Arguments:

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: