Rust Turn Intent Systems
Use this skill to make turn-based gameplay deterministic and easy to extend. Separate decision systems from resolution systems: input and AI create intents; movement, combat, inventory, and end-turn systems resolve them.
Core Workflow
- Define the allowed turn phases in one enum.
- Run different system schedules or branches for input, player resolution, monster resolution, and terminal states.
- Convert input and AI decisions into intent components or messages.
- Resolve intents in shared systems so players and monsters use the same rules.
- Remove or mark intents after processing.
- Advance the turn state in one end-turn boundary.
Read Next
Read references/turn-intent-patterns.md for phase design, intent messages,
ordering rules, and review checks.
Source Notes
Guidance is transformed and paraphrased from Hands-On Rust Chapters 7, 8, 9, and 13 and from the official companion source repository. The patterns are generalized for Rust ECS projects and do not require using Legion.
Source: hashgraph-online/awesome-codex-plugins → plugins/LVTD-LLC/skills/skills/rust-turn-intent-systems/SKILL.md