boardgame-core/src/index.ts

28 lines
1.2 KiB
TypeScript
Raw Normal View History

/**
* boardgame-core
* Preact Signals
*/
// Core types
2026-04-02 10:48:20 +08:00
export type { IGameContext } from './core/game';
2026-04-02 15:36:32 +08:00
export { createGameContext, createGameCommandRegistry } from './core/game';
2026-04-01 17:34:21 +08:00
export type { Part } from './core/part';
export { flip, flipTo, roll } from './core/part';
2026-04-01 17:34:21 +08:00
export type { Region, RegionAxis } from './core/region';
export { applyAlign, shuffle } from './core/region';
2026-04-01 17:34:21 +08:00
// Utils
2026-04-01 18:54:02 +08:00
export type { Command, CommandSchema, CommandParamSchema, CommandOptionSchema, CommandFlagSchema } from './utils/command';
2026-04-02 00:14:43 +08:00
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';
2026-04-02 08:58:11 +08:00
2026-04-02 15:16:30 +08:00
export type { Entity } from './utils/entity';
2026-04-02 15:36:32 +08:00
export { createEntityCollection, entity } from './utils/entity';
2026-04-01 17:34:21 +08:00
export type { RNG } from './utils/rng';
export { createRNG, Mulberry32RNG } from './utils/rng';