Interface ISpatialIndex
- Namespace
- SurvivorsMaker.Simulation
- Assembly
- SurvivorsMaker.Simulation.dll
Finds enemies near a point. Results include candidates outside the radius; apply exact distance and shape tests. Candidates appear in Enemies order, so systems give the same results as a full scan. Rebuilt by the tick loop after enemies move and spawns are admitted.
public interface ISpatialIndex
Methods
QueryEnemies(Vec2, float, List<Enemy>)
Clears results, then adds living enemy candidates near radius of center.
void QueryEnemies(Vec2 center, float radius, List<Enemy> results)
Parameters
Rebuild(SimWorld)
void Rebuild(SimWorld world)
Parameters
worldSimWorld