mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 11:39:50 +02:00
feat: some stats
This commit is contained in:
1 parent
bd412cdaa2
commit
f696c5f3c9
15 files changed
+192
-123
No files matched your search
@@ -0,0 +1,19 @@
|
||||
import { produce } from 'immer';
|
||||
import { create } from 'zustand';
|
||||
import { DuelMember } from './duel';
|
||||
|
||||
export interface CompareMember extends DuelMember {
|
||||
crewSkills: Record<string, number>;
|
||||
}
|
||||
|
||||
export interface Compare {
|
||||
tanks: CompareMember[];
|
||||
}
|
||||
|
||||
export const useCompare = create<Compare>()(() => ({
|
||||
tanks: [],
|
||||
}));
|
||||
|
||||
export default function mutateCompare(recipe: (draft: Compare) => void) {
|
||||
useCompare.setState(produce(recipe));
|
||||
}
|
||||
@@ -29,7 +29,7 @@ export interface DuelMember {
|
||||
gun: GunDefinition;
|
||||
shell: ShellDefinition;
|
||||
track: TrackDefinition;
|
||||
equipment: EquipmentMatrix;
|
||||
equipmentMatrix: EquipmentMatrix;
|
||||
pitch: number;
|
||||
yaw: number;
|
||||
consumables: number[];
|
||||
|
||||
Reference in new issue
Block a user