tess 1.0.0
Performance-first tile and path simulation substrate
Loading...
Searching...
No Matches
tess::PathAgentTickState Struct Reference

#include <tess/sim/path_agent_tick.h>

Public Member Functions

 PathAgentTickState (const PathAgentTickState &other)
auto operator= (const PathAgentTickState &other) -> PathAgentTickState &
 PathAgentTickState (PathAgentTickState &&other) noexcept
auto operator= (PathAgentTickState &&other) noexcept -> PathAgentTickState &

Public Attributes

SimClock clock {}
bool pathing_dirty = true
PathAgentRoutes routes {}
diagnostics::FlowAccountingflow_accounting = nullptr

Detailed Description

Owns the shared clock, pathing-dirty marker, and retained routes across ticks.

Member Data Documentation

◆ flow_accounting

diagnostics::FlowAccounting* tess::PathAgentTickState::flow_accounting = nullptr

Optional caller-owned goal-lifecycle accounting (see FlowCounters). The accountant must outlive the tick state's use of it. Attach or detach only while no accounted goal is outstanding, and never duplicate an attached tick state: two states updating one accountant double-terminalize lifecycles. Copies therefore start unattached and moves transfer the attachment.


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