mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-26 13:37:58 +01:00
3 lines
5.2 KiB
HTML
3 lines
5.2 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><base href="../"><link rel="stylesheet" href="dmdoc.css"><title>/datum/spatial_grid_cell - Space Station 13</title></head><body><header><a href="index.html">Space Station 13</a> - <a href="index.html#modules">Modules</a> - <a href="index.html#types">Types</a> — <a href="datum/spatial_grid_cell.html#var">Var Details</a></header><main><h1>Spatial Grid Cell <aside>/<a href="datum.html">datum</a>/<a href="datum/spatial_grid_cell.html">spatial_grid_cell</a></aside> <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/controllers/subsystem/non_firing/SSspatial_grid.dm#L11"><img src="git.png" width="16" height="16" title="code/controllers/subsystem/non_firing/SSspatial_grid.dm 11"></a></h1><p>used by <a href="datum/controller/subsystem/spatial_grid.html" title="/datum/controller/subsystem/spatial_grid">/datum/controller/subsystem/spatial_grid</a> 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.</p><table class="summary" cellspacing="0"><tr><td colspan="2"><h2>Vars</h2></td></tr><tr><th><a href="datum/spatial_grid_cell.html#var/atmos_contents">atmos_contents</a></th><td>every atmos machine inside this cell</td></tr><tr><th><a href="datum/spatial_grid_cell.html#var/cell_x">cell_x</a></th><td>our x index in the list of cells. this is our index inside of our row list</td></tr><tr><th><a href="datum/spatial_grid_cell.html#var/cell_y">cell_y</a></th><td>our y index in the list of cells. this is the index of our row list inside of our z level grid</td></tr><tr><th><a href="datum/spatial_grid_cell.html#var/cell_z">cell_z</a></th><td>which z level we belong to, corresponding to the index of our gridmap in SSspatial_grid.grids_by_z_level</td></tr><tr><th><a href="datum/spatial_grid_cell.html#var/client_contents">client_contents</a></th><td>every client possessed mob inside this cell</td></tr><tr><th><a href="datum/spatial_grid_cell.html#var/hearing_contents">hearing_contents</a></th><td>every hearing sensitive movable inside this cell</td></tr></table><h2 id="var">Var Details</h2><h3 id="var/atmos_contents"><aside class="declaration">var </aside>atmos_contents <aside>– /list</aside> <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/controllers/subsystem/non_firing/SSspatial_grid.dm#L30"><img src="git.png" width="16" height="16" title="code/controllers/subsystem/non_firing/SSspatial_grid.dm 30"></a></h3><p>every atmos machine inside this cell</p><h3 id="var/cell_x"><aside class="declaration">var </aside>cell_x <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/controllers/subsystem/non_firing/SSspatial_grid.dm#L13"><img src="git.png" width="16" height="16" title="code/controllers/subsystem/non_firing/SSspatial_grid.dm 13"></a></h3><p>our x index in the list of cells. this is our index inside of our row list</p><h3 id="var/cell_y"><aside class="declaration">var </aside>cell_y <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/controllers/subsystem/non_firing/SSspatial_grid.dm#L15"><img src="git.png" width="16" height="16" title="code/controllers/subsystem/non_firing/SSspatial_grid.dm 15"></a></h3><p>our y index in the list of cells. this is the index of our row list inside of our z level grid</p><h3 id="var/cell_z"><aside class="declaration">var </aside>cell_z <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/controllers/subsystem/non_firing/SSspatial_grid.dm#L17"><img src="git.png" width="16" height="16" title="code/controllers/subsystem/non_firing/SSspatial_grid.dm 17"></a></h3><p>which z level we belong to, corresponding to the index of our gridmap in SSspatial_grid.grids_by_z_level</p><h3 id="var/client_contents"><aside class="declaration">var </aside>client_contents <aside>– /list</aside> <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/controllers/subsystem/non_firing/SSspatial_grid.dm#L28"><img src="git.png" width="16" height="16" title="code/controllers/subsystem/non_firing/SSspatial_grid.dm 28"></a></h3><p>every client possessed mob inside this cell</p><h3 id="var/hearing_contents"><aside class="declaration">var </aside>hearing_contents <aside>– /list</aside> <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/controllers/subsystem/non_firing/SSspatial_grid.dm#L26"><img src="git.png" width="16" height="16" title="code/controllers/subsystem/non_firing/SSspatial_grid.dm 26"></a></h3><p>every hearing sensitive movable inside this cell</p></main><footer>paradise.dme <a href="https://github.com/ParadiseSS13/Paradise/tree/8a8a00a2a9bec485351e5f219982b7315d3504fa">8a8a00a</a> (master) — <a href="https://github.com/SpaceManiac/SpacemanDMM/blob/master/crates/dmdoc/README.md">dmdoc 1.11.0</a></footer></body></html> |