mapping ![code/controllers/subsystem/mapping.dm 3](git.png)
Vars | |
biomes | All possible biomes in assoc list as type || instance |
---|---|
critical_planes | List of plane masters that are of critical priority |
max_plane_offset | The largest plane offset we've generated so far |
obfuscation_next_id | next id for separating obfuscated ids. |
obfuscation_secret | "secret" key |
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 |
random_generated_ids_by_original | Lookup list for random generated IDs. |
render_offset_blacklist | List of render targets that do not allow for offsetting |
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_to_station_z_index | Lookup for zlevel to station z. text = num. |
Procs | |
get_obfuscated_id | Generates an obfuscated but constant id for an original id for cases where you don't want players codediving for an id. WARNING: MAKE SURE PLAYERS ARE NOT ABLE TO ACCESS THIS. To save performance, it's just secret + an incrementing number. Very guessable if you know what the secret is. |
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_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 |
Var Details
biomes ![code/controllers/subsystem/mapping.dm 59](git.png)
All possible biomes in assoc list as type || instance
critical_planes ![code/controllers/subsystem/mapping.dm 46](git.png)
List of plane masters that are of critical priority
max_plane_offset ![code/controllers/subsystem/mapping.dm 48](git.png)
The largest plane offset we've generated so far
obfuscation_next_id ![code/controllers/subsystem/mapping.dm 76](git.png)
next id for separating obfuscated ids.
obfuscation_secret ![code/controllers/subsystem/mapping.dm 81](git.png)
"secret" key
plane_offset_blacklist ![code/controllers/subsystem/mapping.dm 42](git.png)
List of planes that do not allow for offsetting
plane_offset_to_true ![code/controllers/subsystem/mapping.dm 36](git.png)
Assoc list of string plane values to their true, non offset representation
plane_to_offset ![code/controllers/subsystem/mapping.dm 40](git.png)
Assoc list of string plane to the plane's offset value
random_generated_ids_by_original ![code/controllers/subsystem/mapping.dm 74](git.png)
Lookup list for random generated IDs.
render_offset_blacklist ![code/controllers/subsystem/mapping.dm 44](git.png)
List of render targets that do not allow for offsetting
true_to_offset_planes ![code/controllers/subsystem/mapping.dm 38](git.png)
Assoc list of true string plane values to a list of all potential offset planess
z_level_to_lowest_plane_offset ![code/controllers/subsystem/mapping.dm 32](git.png)
List of z level (as number) -> The lowest plane offset in that z stack
z_level_to_plane_offset ![code/controllers/subsystem/mapping.dm 30](git.png)
List of z level (as number) -> plane offset of that z level Used to maintain the plane cube
z_to_station_z_index ![code/controllers/subsystem/mapping.dm 69](git.png)
Lookup for zlevel to station z. text = num.
Proc Details
get_obfuscated_id
Generates an obfuscated but constant id for an original id for cases where you don't want players codediving for an id. WARNING: MAKE SURE PLAYERS ARE NOT ABLE TO ACCESS THIS. To save performance, it's just secret + an incrementing number. Very guessable if you know what the secret is.
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_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