refactor(engine): split card_plugin runtime code into submodules #129

Merged
funman300 merged 1 commits from refactor/card-plugin-submodules into master 2026-07-06 21:01:25 +00:00
Owner

Final runtime split for #118: card_plugin/mod.rs (2,536 lines) becomes seven focused submodules.

File Lines Contents
mod.rs 574 fan-step helpers, CardImageSet, markers, plugin build
sync.rs 748 asset loading + card entity lifecycle
layout.rs 351 resize snapping, in-place resize, tableau fan spread
stock.rs 291 empty-stock recycle hint + count badge
highlights.rs 276 hint/right-click highlights, cursor hit-testing
labels.rs 208 desktop text labels + Android corner labels
anim.rs 200 flip animation, drag shadows

Code moved verbatim apart from relocating two stock colour constants next to their consumers. No behaviour change; all 70 card tests pass unchanged.

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

With this, every file in the workspace is under 800 runtime lines — closes #118.

Closes #118

🤖 Generated with Claude Code

Final runtime split for #118: `card_plugin/mod.rs` (2,536 lines) becomes seven focused submodules. | File | Lines | Contents | |---|---|---| | mod.rs | 574 | fan-step helpers, `CardImageSet`, markers, plugin build | | sync.rs | 748 | asset loading + card entity lifecycle | | layout.rs | 351 | resize snapping, in-place resize, tableau fan spread | | stock.rs | 291 | empty-stock recycle hint + count badge | | highlights.rs | 276 | hint/right-click highlights, cursor hit-testing | | labels.rs | 208 | desktop text labels + Android corner labels | | anim.rs | 200 | flip animation, drag shadows | Code moved verbatim apart from relocating two stock colour constants next to their consumers. No behaviour change; all 70 card tests pass unchanged. - `cargo clippy --workspace --all-targets -- -D warnings` clean - `cargo test --workspace` green With this, every file in the workspace is under 800 runtime lines — closes #118. Closes #118 🤖 Generated with [Claude Code](https://claude.com/claude-code)
funman300 added 1 commit 2026-07-06 21:01:24 +00:00
Final runtime split for #118: the 2,536-line mod.rs becomes seven
focused submodules along existing system boundaries —

  mod.rs      574  fan-step helpers, CardImageSet, markers, plugin build
  sync.rs     748  asset loading + card entity lifecycle (spawn/update/position)
  layout.rs   351  resize snapping, in-place resize, tableau fan spread
  stock.rs    291  empty-stock recycle hint + count badge
  highlights.rs 276 hint/right-click highlights, cursor hit-testing
  labels.rs   208  desktop text labels + Android corner labels
  anim.rs     200  flip animation, drag shadows

Moved items are pub(super); code moved verbatim apart from relocating
the two stock colour constants next to their consumers. No behaviour
change; all 70 card tests pass unchanged.

Refs #118

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
funman300 merged commit 5b37f35eb8 into master 2026-07-06 21:01:25 +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#129