Skip to main content

Module ui_agent

Module ui_agent 

Source
Expand description

Defines the UiAgent โ€” owns LaneKind::Ui lanes only.

Per CLAD, an Agent owns exactly one LaneKind and stores only its own GORNA/strategy state. All shared services (graphics device, render system, fonts, text renderer, texture assets, the per-frame UiScene, the UI image atlas) are looked up from the engine Runtime each frame.

The persistent AssetUUID โ†’ AtlasRect cache and the GPU TextureAtlas used to live on this agent as image_cache and image_atlas fields. They now both live in UiImageAtlas (a Resource). The agent owns no GPU state and no buffered output.

Structsยง

UiAgent
The agent responsible for the UI subsystem (LaneKind::Ui).