Spatial Grid Cell ![code/controllers/subsystem/spatial_gridmap.dm 11](git.png)
used by /datum/controller/subsystem/spatial_grid to cover every z level so that the coordinates of every turf in the world corresponds to one of these in the subsystems list of grid cells by z level. each one of these contains content lists holding all atoms meeting a certain criteria that is in our borders. these datums shouldnt have significant behavior, they should just hold data. the lists are filled and emptied by the subsystem.
Vars | |
atmos_contents | every atmos machine inside this cell |
---|---|
cell_x | our x index in the list of cells. this is our index inside of our row list |
cell_y | our y index in the list of cells. this is the index of our row list inside of our z level grid |
cell_z | which z level we belong to, corresponding to the index of our gridmap in SSspatial_grid.grids_by_z_level |
client_contents | every client possessed mob inside this cell |
hearing_contents | every hearing sensitive movable inside this cell |
Var Details
atmos_contents ![code/controllers/subsystem/spatial_gridmap.dm 32](git.png)
every atmos machine inside this cell
cell_x ![code/controllers/subsystem/spatial_gridmap.dm 13](git.png)
our x index in the list of cells. this is our index inside of our row list
cell_y ![code/controllers/subsystem/spatial_gridmap.dm 15](git.png)
our y index in the list of cells. this is the index of our row list inside of our z level grid
cell_z ![code/controllers/subsystem/spatial_gridmap.dm 17](git.png)
which z level we belong to, corresponding to the index of our gridmap in SSspatial_grid.grids_by_z_level
client_contents ![code/controllers/subsystem/spatial_gridmap.dm 28](git.png)
every client possessed mob inside this cell
hearing_contents ![code/controllers/subsystem/spatial_gridmap.dm 26](git.png)
every hearing sensitive movable inside this cell