byond - Modules - TypesVar Details - Proc Details

minimaps

Vars

drawn_imagesassoc list of hash = image of images drawn by players
earlyaddslist of callbacks we need to invoke late because Initialize happens early, or a Z-level was loaded after init
hashed_minimapsassoc list of minimap objects that are hashed so we have to update as few as possible
images_by_sourceAssoc list of images we hold by their source
minimaps_by_zMinimap hud display datums sorted by zlevel
removal_cbsAssoc list of removal callbacks to invoke to remove images from the raw lists
update_targetsthe update target datums, sorted by update flag type
update_targets_unsortedNonassoc list of updators we want to have their overlays reapplied
updators_by_datumlist of holders for data relating to tracked zlevel and tracked atum

Procs

add_markerAdds an atom we want to track with blips to the subsystem Arguments:
add_to_updatersAdds an atom to the processing updators that will have blips drawn on them Arguments:
fetch_minimap_objectFetches a /atom/movable/screen/minimap instance or creates on if none exists Note this does not destroy them when the map is unused, might be a potential thing to do? Arguments:
get_drawing_imagefetches the drawing icon for a minimap flag and returns it, creating it if needed. assumes minimap_flag is ONE flag
load_new_zCreates a minimap for a particular z level
on_z_changeCalled on zlevel change of a blip-atom so we can update the image lists as needed
remove_earlyaddRemoves the object from the earlyadds list, in case it was qdel'd before the z-level was fully loaded
remove_markerRemoves an atom and it's blip from the subsystem
remove_updatorRemoves a atom from the subsystems updating overlays
removeimageremoves an image from raw tracked lists, invoked by callback

Var Details

drawn_images

assoc list of hash = image of images drawn by players

earlyadds

list of callbacks we need to invoke late because Initialize happens early, or a Z-level was loaded after init

hashed_minimaps

assoc list of minimap objects that are hashed so we have to update as few as possible

images_by_source

Assoc list of images we hold by their source

minimaps_by_z

Minimap hud display datums sorted by zlevel

removal_cbs

Assoc list of removal callbacks to invoke to remove images from the raw lists

update_targets

the update target datums, sorted by update flag type

update_targets_unsorted

Nonassoc list of updators we want to have their overlays reapplied

updators_by_datum

list of holders for data relating to tracked zlevel and tracked atum

Proc Details

add_marker

Adds an atom we want to track with blips to the subsystem Arguments:

add_to_updaters

Adds an atom to the processing updators that will have blips drawn on them Arguments:

fetch_minimap_object

Fetches a /atom/movable/screen/minimap instance or creates on if none exists Note this does not destroy them when the map is unused, might be a potential thing to do? Arguments:

get_drawing_image

fetches the drawing icon for a minimap flag and returns it, creating it if needed. assumes minimap_flag is ONE flag

load_new_z

Creates a minimap for a particular z level

on_z_change

Called on zlevel change of a blip-atom so we can update the image lists as needed

TODO gross amount of assoc usage and unneeded ALL FLAGS iteration

remove_earlyadd

Removes the object from the earlyadds list, in case it was qdel'd before the z-level was fully loaded

remove_marker

Removes an atom and it's blip from the subsystem

remove_updator

Removes a atom from the subsystems updating overlays

removeimage

removes an image from raw tracked lists, invoked by callback