Português (BR)
uesp-eso-build-wrapper v0.7.0
uesp-eso-build-wrapper v0.7.0
Interfaces
| Interface | Description |
|---|---|
| BuffEffect | A single buff effect on a stat. |
| BuffInfo | Info about a buff available in the engine catalog. |
| BuildDebugCpNode | State of a single Champion Point node during the calculation. |
| BuildDebugInfo | - |
| BuildDebugInputValues | Per-category input values captured during the calculation (non-zero only). |
| BuildDebugStatSource | One contribution to an input stat: which source (passive, CP, buff, set...) set it. |
| BuildInput | Complete input for calculateBuild(): character sheet plus everything the character "has" — items, Champion Points, buffs, toggle skills, skill bars and passives. |
| CalculatedBuild | Result of calculateBuild(): the computed stats plus metadata about the same calculation. |
| ChampionPointNode | One Champion Point node in BuildInput.championPointNodes. |
| ComputedStats | The key stats as named properties, plus raw with all 204 computed stats from the UESP engine. |
| CpCluster | One CP cluster root (cp2ClusterRoots). |
| CpDiscipline | One CP discipline (cp2Disciplines). |
| CpGate | A reusable, stateless gate built from a tree's nodes and links. |
| CpGateNode | Minimal node fields required by the gate. |
| CpLink | One CP link (cp2SkillLinks), in skillId space, for rendering the tree. |
| CpNode | One CP node (cp2Skills) with the directed parent relationship resolved. |
| CpRawLink | Raw link row in skillId space (cp2SkillLinks). |
| CpTree | Full Champion Points tree consumed by the editor UI and the CP gate. Returned by getCpTree and derived from cpSkillsData + cpSkillDescData + cpDisciplinesData + cpClusterRootsData + cpLinksData. |
| EsoEngineFromDataOptions | Options for initEsoEngineFromData. |
| PassiveSkillInfo | One passive skill at a specific rank, as returned by the list*Passives() catalog functions. |
| SetToggle | A set toggle that applies to the calculated build. |
| SkillSlot | One skill slotted on an action bar (BuildInput.skillBars). |
| ToggleSkillInfo | One toggle skill from the UESP toggle tab, as returned by listAvailableToggleSkills(). |
| ToggleSkillInput | A toggle skill to enable, with an optional stack count. Use this form in BuildInput.toggleSkills for toggles with maxTimes (e.g. Grim Focus, Amplitude, Undeath). |
| UespInitData | - |
| UespItemApiData | Item data as returned by the UESP public item API (esolog.uesp.net/exportJson.php?table=minedItem). Pass the object straight into BuildInput.items[slot] — no transformation needed. All fields are strings, exactly as the API returns them. |
Type Aliases
| Type Alias | Description |
|---|---|
| BuffGroup | Buff group, matching the UESP UI tabs. |
| CpTreeSource | Subset of UespInitData needed to assemble a CpTree. |
| EquipSlot | Equipment slots accepted by BuildInput.items. |
Functions
| Function | Description |
|---|---|
| buildCpLinks | Maps raw cp2SkillLinks rows (skillId space) to the abilityId adjacency graph — the equivalent of the UESP g_EsoCpLinks global (CreateCp2LinksData). Kept symmetric: each edge appears in both directions, exactly as the dump provides it. |
| buildCpParentMap | childAbilityId → [parentAbilityIds] (inverse of a children map). |
| buildCpTree | Assembles a CpTree from extracted cp2* data. Pure and testable. |
| calculateBuild | Calculates the Computed Character Statistics for the given build. |
| computePurchaseableNodes | Flood-fill from every root, returning the set of purchaseable abilityIds for the current allocation. |
| createCpGate | Builds a reusable gate from a tree's nodes and links. |
| debugBuild | Runs calculateBuild and returns detailed diagnostic information about the engine state. Useful for debugging discrepancies between expected and computed stats. |
| getCpTree | Returns the Champion Points tree, built once per process from the engine globals. Must be called after initEsoEngineFromData(). |
| initEsoEngineFromData | Initializes the UESP math engine from a pre-parsed UespInitData object. |
| isCpNodePurchaseable | Convenience single-node check. Prefer createCpGate / computePurchaseableNodes when checking more than one node, since this recomputes the whole flood-fill per call. |
| listAvailableBuffs | Returns the catalog of buffs available in the loaded UESP engine. |
| listAvailableSkillLines | Returns all skill line names that have passive skills available. Use the returned names with listPassivesBySkillLine(). |
| listAvailableToggleSkills | Returns all available toggle skills from the loaded UESP engine. Pass entry.name to BuildInput.toggleSkills to enable it. |
| listClassPassives | Returns all class passive skills for the given class. Each passive may appear in multiple ranks (rank 1, 2, 3). Pass the abilityId of the desired rank to BuildInput.passiveSkills. |
| listInherentPassives | Returns the game's inherent passives — the entries of the UESP ESO_FREE_PASSIVES list that are passives (Light/Medium/Heavy Armor Bonuses and Penalties, racial, craft). The UESP Build Editor loads them by itself; pass BuildInput.autoInherentPassives: true to apply them here, or use this list to mark them as owned in a UI. |
| listPassivesBySkillLine | Returns all passive skills for the given skill line. Each passive may appear in multiple ranks (rank 1, 2, 3). Pass the abilityId of the desired rank to BuildInput.passiveSkills. |
| listRacialPassives | Returns all racial passive skills for the given race. Each passive may appear in multiple ranks (rank 1, 2, 3). Pass the abilityId of the desired rank to BuildInput.passiveSkills. |
| resetCpTreeCache | Clears the memoized tree — called when the engine is (re)loaded. |
References
default
Renames and re-exports calculateBuild