boardgame-core/src/index.ts

28 lines
983 B
TypeScript

/**
* boardgame-core
* 基于 Preact Signals 的桌游状态管理库
*/
// Core types
export type { Context } from './core/context';
export { GameContext, createGameContext } from './core/context';
export type { Part } from './core/part';
export { flip, flipTo, roll } from './core/part';
export type { Region, RegionAxis } from './core/region';
export { applyAlign, shuffle } from './core/region';
export type { RuleContext, RuleState, RuleDef, RuleRegistry } from './core/rule';
export { createRule, dispatchCommand } from './core/rule';
// Utils
export type { Command, CommandSchema, CommandParamSchema, CommandOptionSchema, CommandFlagSchema } from './utils/command';
export { parseCommand, parseCommandSchema, validateCommand } from './utils/command';
export type { Entity, EntityAccessor } from './utils/entity';
export { createEntityCollection } from './utils/entity';
export type { RNG } from './utils/rng';
export { createRNG, Mulberry32RNG } from './utils/rng';