For the complete documentation index, see llms.txt. This page is also available as Markdown.

Detection/state precedence

Complex detection should specify precedence, for example:

  1. authorization/exclusive gate;

  2. disconnect/reset;

  3. menu/edit mode;

  4. reload/reset event;

  5. weapon/profile swap;

  6. firing transition;

  7. per-shot advance;

  8. idle cleanup.

A single transition function is preferable to unrelated blocks all writing current_id, shot_index, or mode.

Last updated