EncyclopediaData Module
BarData-derived per-unit encyclopedia entries. Shared between the Hub's Units-tab encyclopedia (`FSBar.Hub.App.Tabs.EncyclopediaTab`) and the feature-038 `UnitDisplayAdapter.ofEncyclopediaEntry` that builds static `UnitDisplay` previews from these entries. The record is intentionally flat / immutable so both the Hub UI and downstream adapters can consume it without threading a `BarData.UnitDef` pointer through their render paths.
Types
| Type | Description |
|
Pre-classified summary of one unit from `BarData.AllUnitDefs`. Classification uses the same `UnitGlyph.classifyShape` / `classifyTier` / `classifyFaction` helpers the live `GameViz` path uses, so an encyclopedia entry and an in-session glyph for the same internal name always agree on faction / tier / shape (feature 038 FR-002). |
Functions and values
| Function or value |
Description
|
|
Materialises every `BarData.AllUnitDefs.all` entry into an `EncyclopediaEntry`. Runs once per Hub startup; takes ~10–20 ms on a typical dev box.
|
FSBarV1_Archived