// The bundle's entry (referee/sgs.mjs): the upstream engine with this project's table, check, room and the upstream AI. import { allCharacters } from '../src/engine/data/characters'; import { skillInfo } from './table'; export { play } from './play'; export { room } from './room'; export { Heuristic, Table, skillInfo } from './table'; /** Every general with its faction, health and skills (the upstream's own skill texts): referee/generals.json. */ export async function catalog(): Promise> { const out: Record = {}; for (const c of allCharacters) { out[c.name] = { faction: c.faction, maxHealth: c.maxHealth, gender: c.gender, skills: await skillInfo(c.skills.map((s) => s.name)) }; } return out; }