/tg/ Station 13 - Modules - Types — Var Details - Proc Details

automapper

Vars

automapped_turfsTurfs claimed by our preloaded templates, so modular map loads from tramstation cannot race with automapper.
config_fileThe path to our TOML file
loaded_configOur loaded TOML file
pending_modular_map_loadsCount of modular map loads (see /obj/modular_map_root) that have not finished loading
preloaded_map_templatesOur preloaded map templates

Procs

finish_modular_map_loadChecks a modular map load back in. once every registered load has checked in, automapped_turfs is no longer needed and is freed.
get_turf_blacklistsThis returns a list of turfs that have been preloaded and preselected using our templates.
has_turf_noopGet whether a given turf of the map template is a /turf/template_noop.
init_contentsCentCom atoms aren't initialized but already exist, so must be properly initialized and then qdel'd. Arguments:
load_templates_from_cacheAssuming we have preloaded our templates, this will load them from the cache.
preload_templates_from_tomlThis will preload our templates into a cache ready to be loaded later.
register_modular_map_loadRegisters an in progress modular map load

Var Details

automapped_turfs

Turfs claimed by our preloaded templates, so modular map loads from tramstation cannot race with automapper.

config_file

The path to our TOML file

loaded_config

Our loaded TOML file

pending_modular_map_loads

Count of modular map loads (see /obj/modular_map_root) that have not finished loading

preloaded_map_templates

Our preloaded map templates

Proc Details

finish_modular_map_load

Checks a modular map load back in. once every registered load has checked in, automapped_turfs is no longer needed and is freed.

get_turf_blacklists

This returns a list of turfs that have been preloaded and preselected using our templates.

Not really useful outside of load groups.

has_turf_noop

Get whether a given turf of the map template is a /turf/template_noop.

You'd think there would be a better API way of doing this, but there is not.

Arguments:

init_contents

CentCom atoms aren't initialized but already exist, so must be properly initialized and then qdel'd. Arguments:

load_templates_from_cache

Assuming we have preloaded our templates, this will load them from the cache.

preload_templates_from_toml

This will preload our templates into a cache ready to be loaded later.

IMPORTANT: This requires Z levels to exist in order to function, so make sure it is preloaded AFTER that.

register_modular_map_load

Registers an in progress modular map load