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ยง
Structsยง
- Decoded
Trait Loadout - A decoded trait-loadout header and its position-ordered node selections.
- Decoded
Trait Node - Selection state for one positional talent node.
- Enriched
Loadout - Enriched talent loadout with resolved spell info and point summary.
- Enriched
Talent - A single resolved talent with spell info and tree classification.
- Enriched
Talent Effect Override - Rank-specific adjustment for one effect on a selected talent spell.
- Talent
Point Summary - Point totals broken down by tree section.
- Trait
Error - Errors produced while decoding a trait loadout string.
Functionsยง
- apply_
decoded_ traits - Applies decoded positional selections to a trait tree using
all_node_idsas 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.