Skip to main content

Module state

Module state 

Source
Expand description

Persistent state for the upgrade tree.

Saved between sessions: bought, cursor, last_bought. Reconstructed on load: the TreeAggregate cache (lives on GameState, #[serde(skip)], rebuilt by migrate_runtime).

Structsยง

UpgradeTreeState
Player-owned tree state. Small on disk: a set of i64-sized coords, a cursor coord, and the lot of the most recently bought node.