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

lazy_template

Datum used to designate certain areas that do not need to exist nor be loaded at world start but do want to be loaded under certain circumstances. Use this for stuff like the nukie base or wizden, aka stuff that only matters when their antag is rolled.

Vars

keyKey to identify this template - used in caching
map_dirDirectory of maps to prefix to the filename
map_nameThe filename (without extension) of the map to load
place_on_topplace_on_top: Whether to use /turf/proc/PlaceOnTop rather than /turf/proc/ChangeTurf
reservationsIf this is true each load will increment an index keyed to the type and it will load [map_name]_[index]
turf_reservation_typetype of turf reservation

Procs

lazy_loadDoes the grunt work of loading the template.

Var Details

key

Key to identify this template - used in caching

map_dir

Directory of maps to prefix to the filename

map_name

The filename (without extension) of the map to load

place_on_top

place_on_top: Whether to use /turf/proc/PlaceOnTop rather than /turf/proc/ChangeTurf

reservations

If this is true each load will increment an index keyed to the type and it will load [map_name]_[index]

turf_reservation_type

type of turf reservation

Proc Details

lazy_load

Does the grunt work of loading the template.