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

17 lines
449 B
TypeScript
Raw Normal View History

2024-11-25 14:20:10 -06:00
import { enableMapSet } from 'immer';
2025-09-01 18:03:07 -05:00
import { Varuna } from 'varuna';
2024-11-17 16:34:18 -06:00
import { tierListRows } from '../components/TierList/Table/constants';
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
}
2025-09-01 18:03:07 -05:00
export const TierList = new Varuna<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();