Skip to main content

Crate wowlab_loadout

Crate wowlab_loadout 

Source
Expand description

Trait-loadout codec, tree application, and enrichment for game-client/Wowhead strings.

ยงExample

use wowlab_loadout::{decode_trait_loadout, encode_minimal_loadout};

let encoded = encode_minimal_loadout(255);
let decoded = decode_trait_loadout(&encoded)?;
assert_eq!(decoded.spec_id, 255);

Modulesยง

apply ๐Ÿ”’
codec ๐Ÿ”’
enrich ๐Ÿ”’

Structsยง

DecodedTraitLoadout
A decoded trait-loadout header and its position-ordered node selections.
DecodedTraitNode
Selection state for one positional talent node.
EnrichedLoadout
Enriched talent loadout with resolved spell info and point summary.
EnrichedTalent
A single resolved talent with spell info and tree classification.
EnrichedTalentEffectOverride
Rank-specific adjustment for one effect on a selected talent spell.
TalentPointSummary
Point totals broken down by tree section.
TraitError
Errors produced while decoding a trait loadout string.

Functionsยง

apply_decoded_traits
Applies decoded positional selections to a trait tree using all_node_ids as the wire order.
decode_trait_loadout
Decode a trait loadout string into structured data.
encode_minimal_loadout
Creates the version-1 loadout header for a spec with a zero tree hash and no explicit nodes.
encode_trait_loadout
Encodes a trait loadout with the URL-safe Base64 alphabet.
enrich_loadout
Enriches a decoded loadout with spell metadata and point totals.