refactor(engine): split hud_plugin runtime code into submodules #128

Merged
funman300 merged 1 commits from refactor/hud-plugin-submodules into master 2026-07-06 20:54:18 +00:00
Owner

Continues #118 after PR #127: hud_plugin/mod.rs (2,725 lines) becomes five focused submodules.

File Lines Contents
mod.rs 553 markers, resources, popover enums, plugin build
spawn.rs 552 band / columns / avatar / action-bar construction
interaction.rs 616 button handlers, Modes/Menu popovers, tap-to-toggle gesture
fx.rs 430 action fades, score pulses/floaters, streak flourishes
updates.rs 612 HUD text / typography / visibility updaters

Moved items are pub(super); fx is re-exported pub because HudActionFade and format_time_limit have consumers outside the module. Code moved verbatim — no behaviour change; all 44 hud tests pass unchanged (one test import added after the move).

  • cargo clippy --workspace -- -D warnings clean
  • cargo test --workspace green

Remaining on #118: card_plugin (2,536) runtime split.

Refs #118

🤖 Generated with Claude Code

Continues #118 after PR #127: `hud_plugin/mod.rs` (2,725 lines) becomes five focused submodules. | File | Lines | Contents | |---|---|---| | mod.rs | 553 | markers, resources, popover enums, plugin build | | spawn.rs | 552 | band / columns / avatar / action-bar construction | | interaction.rs | 616 | button handlers, Modes/Menu popovers, tap-to-toggle gesture | | fx.rs | 430 | action fades, score pulses/floaters, streak flourishes | | updates.rs | 612 | HUD text / typography / visibility updaters | Moved items are `pub(super)`; `fx` is re-exported `pub` because `HudActionFade` and `format_time_limit` have consumers outside the module. Code moved verbatim — no behaviour change; all 44 hud tests pass unchanged (one test import added after the move). - `cargo clippy --workspace -- -D warnings` clean - `cargo test --workspace` green Remaining on #118: card_plugin (2,536) runtime split. Refs #118 🤖 Generated with [Claude Code](https://claude.com/claude-code)
funman300 added 1 commit 2026-07-06 20:54:17 +00:00
Continues #118 after settings_plugin (PR #127): the 2,725-line mod.rs
becomes five focused submodules along existing system boundaries —

  mod.rs        553  markers, resources, popover enums, plugin build
  spawn.rs      552  band / columns / avatar / action-bar construction
  interaction.rs 616 button handlers, Modes/Menu popovers, tap gesture
  fx.rs         430  action fades, score pulses/floaters, streak flourish
  updates.rs    612  HUD text / typography / visibility updaters

Moved items are pub(super) (fx re-exported pub for HudActionFade and
format_time_limit consumers). Code moved verbatim; no behaviour change;
all 44 hud tests pass unchanged.

Refs #118

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
funman300 merged commit b3b53c4adf into master 2026-07-06 20:54:18 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: funman300/Ferrous-Solitaire#128