Skip to main content

Module action

Module action 

Source
Expand description

Two strictly separated layers (ADR-0003):

  • Intent, what the agent decides (“buy_upgrade”). Game vocabulary.
  • InputCommand, what the Core executes. Window-relative, never screen-absolute, so it survives the window being moved or the display changing.

The plugin owns the translation between them. Every action reports an ActionOutcome; an action with no verifiable post-condition is a bug.

Structs§

Intent
What the agent decided to do, in the plugin’s own vocabulary.
Key
Point
A point in window-client space, normalised to 0.0..=1.0.

Enums§

ActionOutcome
The result of executing one intent. Transactional and interruptible: without this, robustness is impossible (ADR-0003).
InputCommand
A primitive the Core knows how to execute.
MouseButton