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

mapping

Vars

adding_new_zlevelTrue when in the process of adding a new Z-level, global locking
biomesAll possible biomes in assoc list as type || instance
critical_planesList of plane masters that are of critical priority
gravity_by_z_levelshows the default gravity value for each z level. recalculated when gravity generators change. associative list of the form: list("[z level num]" = max generator gravity in that z level OR the gravity level trait)
lists_to_reserveList of lists of turfs to reserve
loaded_lazy_templateslist of lazy templates that have been loaded
map_force_chosenHas the map for the next round been deliberately chosen by an admin?
map_vote_rockedHas the map vote been rocked?
map_votedHas the map for the next round been voted for already?
max_plane_offsetThe largest plane offset we've generated so far
multiz_levelslist of all z level indices that form multiz connections and whether theyre linked up or down. list of lists, inner lists are of the form: list("up or down link direction" = TRUE)
plane_offset_blacklistList of planes that do not allow for offsetting
plane_offset_to_trueAssoc list of string plane values to their true, non offset representation
plane_to_offsetAssoc list of string plane to the plane's offset value
render_offset_blacklistList of render targets that do not allow for offsetting
themed_ruinsList of ruins, separated by their theme
true_to_offset_planesAssoc list of true string plane values to a list of all potential offset planess
z_level_to_lowest_plane_offsetList of z level (as number) -> The lowest plane offset in that z stack
z_level_to_plane_offsetList of z level (as number) -> plane offset of that z level Used to maintain the plane cube
z_listlist of all z level datums in the order of their z (z level 1 is at index 1, etc.)
z_trait_levelslist of traits and their associated z leves

Procs

generate_offset_listsUpdates the lowest offset value Takes an offset to generate misc lists to, and a base to start from Use this to react globally to maintain parity with plane offsets
get_station_centerPrefer not to use this one too often
get_turf_aboveAttempt to get the turf above the provided one according to Z traits
get_turf_belowAttempt to get the turf below the provided one according to Z traits
initialize_biomesInitialize all biomes, assoc as type || instance
level_has_all_traitsCheck if levels[z] has all of the specified traits
level_has_any_traitCheck if levels[z] has any of the specified traits
level_traitLook up levels[z].traits[trait]
levels_by_all_traitsGet a list of all z which have all of the specified traits
levels_by_any_traitGet a list of all z which have any of the specified traits
levels_by_traitGet a list of all z which have the specified trait
manage_z_levelTakes a z level datum, and tells the mapping subsystem to manage it Also handles things like plane offset generation, and other things that happen on a z level to z level basis
reserve_turfsSchedules a group of turfs to be handed back to the reservation system's control If await is true, will sleep until the turfs are finished work
setup_ruins##setup_ruins

Var Details

adding_new_zlevel

True when in the process of adding a new Z-level, global locking

biomes

All possible biomes in assoc list as type || instance

critical_planes

List of plane masters that are of critical priority

gravity_by_z_level

shows the default gravity value for each z level. recalculated when gravity generators change. associative list of the form: list("[z level num]" = max generator gravity in that z level OR the gravity level trait)

lists_to_reserve

List of lists of turfs to reserve

loaded_lazy_templates

list of lazy templates that have been loaded

map_force_chosen

Has the map for the next round been deliberately chosen by an admin?

map_vote_rocked

Has the map vote been rocked?

map_voted

Has the map for the next round been voted for already?

max_plane_offset

The largest plane offset we've generated so far

multiz_levels

list of all z level indices that form multiz connections and whether theyre linked up or down. list of lists, inner lists are of the form: list("up or down link direction" = TRUE)

plane_offset_blacklist

List of planes that do not allow for offsetting

plane_offset_to_true

Assoc list of string plane values to their true, non offset representation

plane_to_offset

Assoc list of string plane to the plane's offset value

render_offset_blacklist

List of render targets that do not allow for offsetting

themed_ruins

List of ruins, separated by their theme

true_to_offset_planes

Assoc list of true string plane values to a list of all potential offset planess

z_level_to_lowest_plane_offset

List of z level (as number) -> The lowest plane offset in that z stack

z_level_to_plane_offset

List of z level (as number) -> plane offset of that z level Used to maintain the plane cube

z_list

list of all z level datums in the order of their z (z level 1 is at index 1, etc.)

z_trait_levels

list of traits and their associated z leves

Proc Details

generate_offset_lists

Updates the lowest offset value Takes an offset to generate misc lists to, and a base to start from Use this to react globally to maintain parity with plane offsets

get_station_center

Prefer not to use this one too often

get_turf_above

Attempt to get the turf above the provided one according to Z traits

get_turf_below

Attempt to get the turf below the provided one according to Z traits

initialize_biomes

Initialize all biomes, assoc as type || instance

level_has_all_traits

Check if levels[z] has all of the specified traits

level_has_any_trait

Check if levels[z] has any of the specified traits

level_trait

Look up levels[z].traits[trait]

levels_by_all_traits

Get a list of all z which have all of the specified traits

levels_by_any_trait

Get a list of all z which have any of the specified traits

levels_by_trait

Get a list of all z which have the specified trait

manage_z_level

Takes a z level datum, and tells the mapping subsystem to manage it Also handles things like plane offset generation, and other things that happen on a z level to z level basis

reserve_turfs

Schedules a group of turfs to be handed back to the reservation system's control If await is true, will sleep until the turfs are finished work

setup_ruins

##setup_ruins

Sets up all of the ruins to be spawned