feat: add grid-inventory

This commit is contained in:
2026-04-13 11:07:57 +08:00
parent 4bfc6db60f
commit 2a4383ff10
6 changed files with 779 additions and 3 deletions
@@ -0,0 +1,13 @@
export type { CellCoordinate, GridInventory, InventoryItem, PlacementResult } from './types';
export {
createGridInventory,
flipItem,
getAdjacentItems,
getItemAtCell,
getOccupiedCellSet,
moveItem,
placeItem,
removeItem,
rotateItem,
validatePlacement,
} from './transform';