// The packs this build ships with. // // A setting is a content pack, and this is the only list of them. Adding one // is an import and an entry — no engine change, no interface change, and // nothing anywhere else that names it. `packs[0]` is what a first-time player // starts in. // // The bundler follows static imports from the entry module, so appearing in // this file is also what gets a pack into `dist/theladder.html`. import { corporateLadder } from './corporateladder/index.js'; import { frontier } from './frontier/index.js'; import { countingHouse } from './countinghouse/index.js'; export const packs = [corporateLadder, frontier, countingHouse]; /** A pack by id, or undefined. Used to resume into whatever was last played. */ export function packById(id) { return packs.find((pack) => pack.id === id); } export const defaultPack = packs[0]; export default packs;