tess 0.4.0
Performance-first tile and path simulation substrate
Loading...
Searching...
No Matches
tess::TileOccupancyIndex Class Reference

#include <tess/ecs/adapter.h>

Public Member Functions

void reserve (std::size_t entity_capacity)
auto insert (Coord3 tile, EntityHandle entity) -> bool
auto erase (Coord3 tile) noexcept -> EntityHandle
void move (Coord3 from, Coord3 to, EntityHandle entity) noexcept
auto entity_at (Coord3 tile) const noexcept -> EntityHandle
auto size () const noexcept -> std::size_t
void clear () noexcept

Detailed Description

Injective tile-to-entity index mirroring ECS agent occupancy.

Reserve for the maximum population to keep steady-state insertions allocation-free. The index enforces one mapped entity per non-negative tile; mapped tiles must also be marked in the world's occupancy field.


The documentation for this class was generated from the following file: