Skip to content

uesp-eso-build-wrapper v0.7.0


uesp-eso-build-wrapper v0.7.0 ​

Interfaces ​

InterfaceDescription
BuffEffectA single buff effect on a stat.
BuffInfoInfo about a buff available in the engine catalog.
BuildDebugCpNodeState of a single Champion Point node during the calculation.
BuildDebugInfo-
BuildDebugInputValuesPer-category input values captured during the calculation (non-zero only).
BuildDebugStatSourceOne contribution to an input stat: which source (passive, CP, buff, set...) set it.
BuildInputComplete input for calculateBuild(): character sheet plus everything the character "has" — items, Champion Points, buffs, toggle skills, skill bars and passives.
CalculatedBuildResult of calculateBuild(): the computed stats plus metadata about the same calculation.
ChampionPointNodeOne Champion Point node in BuildInput.championPointNodes.
ComputedStatsThe key stats as named properties, plus raw with all 204 computed stats from the UESP engine.
CpClusterOne CP cluster root (cp2ClusterRoots).
CpDisciplineOne CP discipline (cp2Disciplines).
CpGateA reusable, stateless gate built from a tree's nodes and links.
CpGateNodeMinimal node fields required by the gate.
CpLinkOne CP link (cp2SkillLinks), in skillId space, for rendering the tree.
CpNodeOne CP node (cp2Skills) with the directed parent relationship resolved.
CpRawLinkRaw link row in skillId space (cp2SkillLinks).
CpTreeFull Champion Points tree consumed by the editor UI and the CP gate. Returned by getCpTree and derived from cpSkillsData + cpSkillDescData + cpDisciplinesData + cpClusterRootsData + cpLinksData.
EsoEngineFromDataOptionsOptions for initEsoEngineFromData.
PassiveSkillInfoOne passive skill at a specific rank, as returned by the list*Passives() catalog functions.
SetToggleA set toggle that applies to the calculated build.
SkillSlotOne skill slotted on an action bar (BuildInput.skillBars).
ToggleSkillInfoOne toggle skill from the UESP toggle tab, as returned by listAvailableToggleSkills().
ToggleSkillInputA 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-
UespItemApiDataItem 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 AliasDescription
BuffGroupBuff group, matching the UESP UI tabs.
CpTreeSourceSubset of UespInitData needed to assemble a CpTree.
EquipSlotEquipment slots accepted by BuildInput.items.

Functions ​

FunctionDescription
buildCpLinksMaps 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.
buildCpParentMapchildAbilityId → [parentAbilityIds] (inverse of a children map).
buildCpTreeAssembles a CpTree from extracted cp2* data. Pure and testable.
calculateBuildCalculates the Computed Character Statistics for the given build.
computePurchaseableNodesFlood-fill from every root, returning the set of purchaseable abilityIds for the current allocation.
createCpGateBuilds a reusable gate from a tree's nodes and links.
debugBuildRuns calculateBuild and returns detailed diagnostic information about the engine state. Useful for debugging discrepancies between expected and computed stats.
getCpTreeReturns the Champion Points tree, built once per process from the engine globals. Must be called after initEsoEngineFromData().
initEsoEngineFromDataInitializes the UESP math engine from a pre-parsed UespInitData object.
isCpNodePurchaseableConvenience single-node check. Prefer createCpGate / computePurchaseableNodes when checking more than one node, since this recomputes the whole flood-fill per call.
listAvailableBuffsReturns the catalog of buffs available in the loaded UESP engine.
listAvailableSkillLinesReturns all skill line names that have passive skills available. Use the returned names with listPassivesBySkillLine().
listAvailableToggleSkillsReturns all available toggle skills from the loaded UESP engine. Pass entry.name to BuildInput.toggleSkills to enable it.
listClassPassivesReturns 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.
listInherentPassivesReturns 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.
listPassivesBySkillLineReturns 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.
listRacialPassivesReturns 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.
resetCpTreeCacheClears the memoized tree — called when the engine is (re)loaded.

References ​

default ​

Renames and re-exports calculateBuild

Elder Scrolls Online is a trademark of ZeniMax Media Inc. This project is not affiliated with or endorsed by ZeniMax Media Inc.