Goonstation 13 - Modules - TypesProc Details

/datum/spatial_hashmap

in actual server ticks (not deciseconds)

Procs

add_targetsImplement in children. Example:
get_ids_by_coordsgets ids of buckets to check for atoms around a given x,y,z position
get_nearby_atoms_exact_by_coordsGets is of atoms that are truly within the given range as long as the range is at most cell size This will only work if we are actually tracking atoms and not something else!!
get_nearby_by_coordsget_nearby() but for arbitrary x,y positions

Proc Details

add_targets

Implement in children. Example:

for (var/atom/A in some_list_of_atoms_you_care_about)
   var/turf/T = get_turf(A)
   ADD_TO_MAP(A, T)

get_ids_by_coords

gets ids of buckets to check for atoms around a given x,y,z position

get_nearby_atoms_exact_by_coords

Gets is of atoms that are truly within the given range as long as the range is at most cell size This will only work if we are actually tracking atoms and not something else!!

get_nearby_by_coords

get_nearby() but for arbitrary x,y positions