/datum/spatial_hashmap
Vars | |
update_cooldown | in actual server ticks (not deciseconds) |
---|---|
Procs | |
add_targets | Implement in children. Example: |
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 |
Var Details
update_cooldown
in actual server ticks (not deciseconds)
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