Skip to main content

Module v2

Module v2 

Source
Expand description

Save schema V2 — adds the version field, per-fingerer modifiers, and Green-Coin spawn pity counter.

FROZEN. Subsequent schema changes go in v3.rs together with a From<GameStateV2> for GameStateV3 conversion and a unit test. The only edit allowed here after freeze is making into_current chain through the next version, which we do because the live GameState shape no longer has goldens_since_green_coin.

Each persisted enum/struct has a frozen V2 copy here so future changes to the live types in crate::game::modifier and crate::game::state can’t retroactively reshape what V2 means on disk.

Structs§

FingererStateV2
GameStateV2
ModifierV2

Enums§

BuffV2
V2 mirror of Buff. After Phase 3 of #21 the live Buff carries only click-side variants — per-fingerer multipliers live on the modifier system instead. V2’s frozen shape matches that: the V1→V2 conversion absorbs BuffV1::FingererBoost into per-fingerer modifiers before BuffV2 ever sees them.
ModifierDurationV2
ModifierEffectV2
ModifierSourceV2