|
tess 0.4.0
Performance-first tile and path simulation substrate
|
#include <tess/ecs/adapter.h>
Public Member Functions | |
| void | reserve (std::size_t agent_capacity) |
| void | clear () noexcept |
| void | push (EntityHandle handle, const PathAgentState &agent) |
| auto | size () const noexcept -> std::size_t |
| auto | agents () noexcept -> std::span< PathAgentState > |
| auto | agents () const noexcept -> std::span< const PathAgentState > |
| auto | handles () const noexcept -> std::span< const EntityHandle > |
Reusable parallel arrays of entity handles and agent lifecycle states.
Reserve during setup; clear and refill each tick to avoid warm-path heap traffic. Entries at the same index always identify the same agent.