Files
blitzkit/packages/website/src/stores/tierList.ts
T

17 lines
458 B
TypeScript
Raw Normal View History

2025-10-22 18:42:51 -05:00
import { enableMapSet } from "immer";
2026-09-27 17:04:15 -05:00
import { Soapstone } from "soapstone";
2025-10-22 18:42:51 -05:00
import { tierListRows } from "../components/TierList/Table/constants";
2024-11-17 16:34:18 -06:00
export interface TierList {
dragging: boolean;
2024-11-26 20:44:44 -06:00
rows: { name: string; tanks: number[] }[];
2024-11-25 14:20:10 -06:00
placedTanks: Set<number>;
2024-11-17 16:34:18 -06:00
}
2026-09-27 17:04:15 -05:00
export const TierList = new Soapstone<TierList>({
2024-11-26 20:44:44 -06:00
dragging: false,
2025-09-01 18:03:07 -05:00
rows: tierListRows.map((row) => ({ name: row.name, tanks: [] })),
2024-11-26 20:44:44 -06:00
placedTanks: new Set(),
2025-09-01 18:03:07 -05:00
});
2024-11-26 20:44:44 -06:00
2025-09-01 18:03:07 -05:00
enableMapSet();