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

#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 >

Detailed Description

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.


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