|
tess 1.0.0
Performance-first tile and path simulation substrate
|
#include <tess/ecs/flecs/flecs_adapter.h>
Public Member Functions | |
| FlecsPathAgentContext (flecs::world &world) | |
| void | reserve (std::size_t agent_capacity) |
Public Attributes | |
| PathAgentTickState | tick_state {} |
| PathAgentBatch | batch {} |
| std::vector< FlecsAgentEntry > | entries {} |
| std::uint64_t | next_agent_id = 0 |
| flecs::world_t * | world_identity = nullptr |
| flecs::query< PathState, const TilePosition, const AgentId > | agent_query |
Persistent tick state and reusable scratch for one Flecs agent system.
Reserve once to avoid warm-path allocations. Persist next_agent_id with the world so collection order remains deterministic across save and load.