demo.module
This package holds more than this page lists. See all of its files in its world.
README.md
demo
The showcase's saveKit setup and its live demos. This is this world's own showcase content, not part of saveKit.
config(): the setup the showcase plays with (profile style, steady curve, game layout version 2).V1_DEFAULTS,V2_DEFAULTS,MIGRATIONS: the two game layouts and the migration from 1 to 2 (gold becomes coins, loose fields are grouped).writeV1(): writes a real version 1 save for the local player through saveKit running the version 1 layout.upgradeV2(): loads that save with the version 2 layout, so saveKit upgrades it, keeps the old copy at<key>.v1and saves the new one;migrationState()returns the before/after for the migration board.tamper(): tries to write another player's profile card from this machine and records whether the engine refused it;tamperState()returns the last result.lines(rec): flattens a record intopath = valuelines for display.
Used by the showcase's DemoPad component and the boards module.