parsed_map ![code/modules/mapping/reader.dm 72](git.png)
Vars | |
bounds | Offset bounds. Same as parsed_bounds until load(). |
---|---|
expanded_x | If we've expanded world.maxy |
expanded_y | If we've expanded world.maxx |
key_len | The length of a key in this file. This is promised by the standard to be static |
line_len | The length of a line in this file. Not promised by dmm but standard dmm uses it, so we can trust it |
loaded_areas | List of area types we've loaded AS A PART OF THIS MAP We do this to allow non unique areas, so we'll only load one per map |
loading | If we are currently loading this map |
matches_tgm | Matches key formats in TMG (IE: newline after the () |
model_path | Pulls out model paths for DMM |
parsed_bounds | Unoffset bounds. Null on parse failure. |
turf_blacklist | any turf in this list is skipped inside of build_coordinate. Lazy assoc list |
var_edits_tgm | Pulls out key value pairs for TGM |
Procs | |
New | Parse a map, possibly cropping it. |
_dmm_load | Stanrdard loading, not used in production Doesn't take advantage of any tgm optimizations, which makes it slower but also more general Use this if for some reason your map format is messy |
check_for_errors | Check a parsed but not yet loaded map for errors. |
dmm_build_cache | Builds key caches for general formats Slower then the proc above, tho it could still be optimized slightly. it's just not a priority Since we don't run DMM maps, ever. |
filter_grid_sets_based_on_z_bounds | Iterates over all grid sets and returns ones with z values within the given bounds. Inclusive |
load | Load the parsed map into the world. You probably want /proc/load_map. Keep the signature the same. |
Var Details
bounds ![code/modules/mapping/reader.dm 94](git.png)
Offset bounds. Same as parsed_bounds until load().
expanded_x ![code/modules/mapping/reader.dm 82](git.png)
If we've expanded world.maxy
expanded_y ![code/modules/mapping/reader.dm 80](git.png)
If we've expanded world.maxx
key_len ![code/modules/mapping/reader.dm 76](git.png)
The length of a key in this file. This is promised by the standard to be static
line_len ![code/modules/mapping/reader.dm 78](git.png)
The length of a line in this file. Not promised by dmm but standard dmm uses it, so we can trust it
loaded_areas ![code/modules/mapping/reader.dm 87](git.png)
List of area types we've loaded AS A PART OF THIS MAP We do this to allow non unique areas, so we'll only load one per map
loading ![code/modules/mapping/reader.dm 110](git.png)
If we are currently loading this map
matches_tgm ![code/modules/mapping/reader.dm 103](git.png)
Matches key formats in TMG (IE: newline after the ()
model_path ![code/modules/mapping/reader.dm 107](git.png)
Pulls out model paths for DMM
parsed_bounds ![code/modules/mapping/reader.dm 92](git.png)
Unoffset bounds. Null on parse failure.
turf_blacklist ![code/modules/mapping/reader.dm 97](git.png)
any turf in this list is skipped inside of build_coordinate. Lazy assoc list
var_edits_tgm ![code/modules/mapping/reader.dm 105](git.png)
Pulls out key value pairs for TGM
Proc Details
New
Parse a map, possibly cropping it.
_dmm_load
Stanrdard loading, not used in production Doesn't take advantage of any tgm optimizations, which makes it slower but also more general Use this if for some reason your map format is messy
check_for_errors
Check a parsed but not yet loaded map for errors.
Returns a /datum/map_report if there are errors or FALSE
otherwise.
dmm_build_cache
Builds key caches for general formats Slower then the proc above, tho it could still be optimized slightly. it's just not a priority Since we don't run DMM maps, ever.
filter_grid_sets_based_on_z_bounds
Iterates over all grid sets and returns ones with z values within the given bounds. Inclusive
load
Load the parsed map into the world. You probably want /proc/load_map. Keep the signature the same.