/** * boardgame-core * 基于 Preact Signals 的桌游状态管理库 */ // Core types export type { IGameContext } from './core/game'; export { createGameCommandRegistry } from './core/game'; export type { GameHost, GameHostStatus, GameModule } from './core/game-host'; export { createGameHost } from './core/game-host'; export type { Part } from './core/part'; export { flip, flipTo, roll } from './core/part'; export { createParts, createPartsFromTable } from './core/part-factory'; export type { Region, RegionAxis } from './core/region'; export { createRegion, createRegionAxis, applyAlign, shuffle, moveToRegion } from './core/region'; // Utils export type { Command, CommandResult, CommandSchema, CommandParamSchema, CommandOptionSchema, CommandFlagSchema } from './utils/command'; export { parseCommand, parseCommandSchema, validateCommand, parseCommandWithSchema, applyCommandSchema } from './utils/command'; export type { CommandRunner, CommandRunnerHandler, CommandRunnerContext, PromptEvent, CommandRunnerEvents } from './utils/command'; export { createCommandRegistry, registerCommand, unregisterCommand, hasCommand, getCommand, runCommand, runCommandParsed, createCommandRunnerContext, type CommandRegistry, type CommandRunnerContextExport } from './utils/command'; export type { MutableSignal } from './utils/mutable-signal'; export { mutableSignal } from './utils/mutable-signal'; export type { RNG } from './utils/rng'; export { createRNG, Mulberry32RNG } from './utils/rng';