funman300
d1e87765af
refactor(engine): split card_plugin runtime code into submodules
...
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 >
2026-07-06 14:01:10 -07:00
funman300
0797e9a993
refactor(engine): move card_plugin tests into card_plugin/tests.rs
...
First increment of the module-split plan: card_plugin.rs becomes
card_plugin/{mod.rs, tests.rs} (2,536 + 1,592 lines), following the
replay_overlay/ pattern. Pure mechanical move via git mv — no runtime
code changes; all 70 tests preserved and passing.
Refs #118
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-07-06 13:16:21 -07:00