code/__DEFINES/spatial_gridmap.dm

SPATIAL_GRID_CELLSIZE | each cell in a spatial_grid is this many turfs in length and width |
---|---|
GET_SPATIAL_INDEX | Takes a coordinate, and spits out the spatial grid index (x or y) it's inside |
SPATIAL_GRID_CONTENTS_TYPE_HEARING | everything that is hearing sensitive is stored in this channel |
SPATIAL_GRID_CONTENTS_TYPE_CLIENTS | every movable that has a client in it is stored in this channel |
SPATIAL_GRID_CONTENTS_TYPE_ATMOS | all atmos machines are stored in this channel (I'm sorry kyler) |
HAS_SPATIAL_GRID_CONTENTS | whether movable is itself or containing something which should be in one of the spatial grid channels. |
Define Details
GET_SPATIAL_INDEX
Takes a coordinate, and spits out the spatial grid index (x or y) it's inside
HAS_SPATIAL_GRID_CONTENTS
whether movable is itself or containing something which should be in one of the spatial grid channels.
SPATIAL_GRID_CELLSIZE
each cell in a spatial_grid is this many turfs in length and width
SPATIAL_GRID_CONTENTS_TYPE_ATMOS
all atmos machines are stored in this channel (I'm sorry kyler)
SPATIAL_GRID_CONTENTS_TYPE_CLIENTS
every movable that has a client in it is stored in this channel
SPATIAL_GRID_CONTENTS_TYPE_HEARING
everything that is hearing sensitive is stored in this channel