/datum/parsed_map
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 |
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
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
var_edits_tgm
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.