feat: name creature commands where the engine use is clear #469

Merged
jqueuniet merged 1 commit from feat/command-names into main 2026-11-01 08:03:58 +01:00
Owner

Refs #467

sequences() gives each creature sequence names, parallel to commands: the engine command's name where its use is clear (stand, jump, melee_attack, steal, throw, spawn, death, place_merchandise, take_merchandise, push_back, cast_spell, transform), else null. Source: SKWINSPX ccm enum (v0/dme.h); its ? guesses (walk / turn, other attacks, merchant states, …) are left null and listed in docs/formats/graphics-dat.md with their DOS usage.

  • Core: dm2_graphics::creature_command_name.
  • sequences is unreleased, so the JSON gains the field without a compatibility concern.
  • Test: creature 1 [17] → ["spawn"]; creature 0 walk [1, 2] → [null, null].

#467 stays open for the walk / turn family.

https://claude.ai/code/session_01SnENBXnZbhNNrojZT5jbJ7

Refs #467 `sequences()` gives each creature sequence `names`, parallel to `commands`: the engine command's name where its use is clear (`stand`, `jump`, `melee_attack`, `steal`, `throw`, `spawn`, `death`, `place_merchandise`, `take_merchandise`, `push_back`, `cast_spell`, `transform`), else `null`. Source: SKWINSPX `ccm` enum (`v0/dme.h`); its `?` guesses (walk / turn, other attacks, merchant states, …) are left `null` and listed in `docs/formats/graphics-dat.md` with their DOS usage. - Core: `dm2_graphics::creature_command_name`. - `sequences` is unreleased, so the JSON gains the field without a compatibility concern. - Test: creature 1 `[17]` → `["spawn"]`; creature 0 walk `[1, 2]` → `[null, null]`. #467 stays open for the walk / turn family. https://claude.ai/code/session_01SnENBXnZbhNNrojZT5jbJ7
feat(graphics): name creature commands where the engine's use is clear
All checks were successful
CI / msrv (1.90) (pull_request) Successful in 30s
CI / audit (pull_request) Successful in 20s
CI / stable (pull_request) Successful in 58s
CI / python bindings (3.11) (pull_request) Successful in 27s
CI / msrv (1.90) (push) Successful in 28s
CI / audit (push) Successful in 20s
CI / stable (push) Successful in 58s
CI / python bindings (3.11) (push) Successful in 27s
12cc98ed88
sequences() gives each command's name (spawn, death, melee_attack, …)
or null; the walk / turn family and other guessed commands stay null.

Refs #467

Claude-Session: https://claude.ai/code/session_01SnENBXnZbhNNrojZT5jbJ7
jqueuniet deleted branch feat/command-names 2026-11-01 08:03:59 +01:00
Sign in to join this conversation.
No reviewers
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!469
No description provided.