boardgame-core/src/index.ts

28 lines
839 B
TypeScript
Raw Normal View History

/**
* boardgame-core
* Preact Signals
*/
// Core types
2026-04-01 17:34:21 +08:00
export type { Context } from './core/context';
export { GameContext, createGameContext } from './core/context';
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
export type { RuleContext } from './core/rule';
export { invokeRuleContext, createRule } from './core/rule';
2026-04-01 17:34:21 +08:00
// Utils
export type { Command } from './utils/command';
export { parseCommand } from './utils/command';
2026-04-01 17:34:21 +08:00
export type { Entity, EntityAccessor } from './utils/entity';
export { createEntityCollection } from './utils/entity';
2026-04-01 17:34:21 +08:00
export type { RNG } from './utils/rng';
export { createRNG, Mulberry32RNG } from './utils/rng';