saves: champion inventory read model #333

Open
opened 2026-10-24 09:45:52 +02:00 by jqueuniet · 0 comments
Owner

Read a champion's inventory from a full decode, in a shape a UI can render without knowing the record stream layout.

Scope

  • Per champion: the 30 inventory slots (hand-right, hand-left, head, torso, legs, feet, neck, pouch1, pouch2, scabbard1..4, backpack.0..16), plus the party's held (cursor) item.
  • Each occupied slot resolves to its object: ID, record type, subtype, decoded fields.
  • Each field flagged persistent / non-persistent per docs/formats/save-object-editability.md.
  • Containers flagged as such (contents come in the container issue).
  • Exposed as JSON through dm2-wasm, built on the full-decode entry points.

Acceptance

  • Output matches dm2 save inventory --show for every champion of the save fixtures.
  • Empty slots are explicit, not omitted.

Blocked by the WASM full-decode issue.

Read a champion's inventory from a full decode, in a shape a UI can render without knowing the record stream layout. ## Scope - Per champion: the 30 inventory slots (`hand-right`, `hand-left`, `head`, `torso`, `legs`, `feet`, `neck`, `pouch1`, `pouch2`, `scabbard1`..`4`, `backpack.0`..`16`), plus the party's held (`cursor`) item. - Each occupied slot resolves to its object: ID, record type, subtype, decoded fields. - Each field flagged persistent / non-persistent per `docs/formats/save-object-editability.md`. - Containers flagged as such (contents come in the container issue). - Exposed as JSON through `dm2-wasm`, built on the full-decode entry points. ## Acceptance - Output matches `dm2 save inventory --show` for every champion of the save fixtures. - Empty slots are explicit, not omitted. Blocked by the WASM full-decode issue.
jqueuniet added this to the dm2-tools project 2026-10-24 09:49:02 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
jqueuniet/dm2-tools#333
No description provided.