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

parsed_map

Vars

boundsOffset bounds. Same as parsed_bounds until load().
expanded_xIf we've expanded world.maxy
expanded_yIf we've expanded world.maxx
key_lenThe length of a key in this file. This is promised by the standard to be static
line_lenThe length of a line in this file. Not promised by dmm but standard dmm uses it, so we can trust it
loaded_areasList 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
loadingIf we are currently loading this map
matches_tgmMatches key formats in TMG (IE: newline after the ()
model_pathPulls out model paths for DMM
parsed_boundsUnoffset bounds. Null on parse failure.
turf_blacklistany turf in this list is skipped inside of build_coordinate. Lazy assoc list
var_edits_tgmPulls out key value pairs for TGM

Procs

NewParse a map, possibly cropping it.
_dmm_loadStanrdard 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_errorsCheck a parsed but not yet loaded map for errors.
dmm_build_cacheBuilds 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_boundsIterates over all grid sets and returns ones with z values within the given bounds. Inclusive
loadLoad 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. Lazy assoc list

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.