Class LinearSpatialIndex
- Namespace
- SurvivorsMaker.Simulation
- Assembly
- SurvivorsMaker.Simulation.dll
A full scan; the reference behaviour and the fallback before a grid is set.
public sealed class LinearSpatialIndex : ISpatialIndex
- Inheritance
-
LinearSpatialIndex
- Implements
- Inherited Members
Constructors
LinearSpatialIndex()
public LinearSpatialIndex()
Methods
QueryEnemies(Vec2, float, List<Enemy>)
Clears results, then adds living enemy candidates near radius of center.
public void QueryEnemies(Vec2 center, float radius, List<Enemy> results)
Parameters
Rebuild(SimWorld)
public void Rebuild(SimWorld world)
Parameters
worldSimWorld