feat: hull origins

This commit is contained in:
TrèsAbhi committed 2024-01-22 16:54:07 -06:00
1 parent 3e12d6bb9d
commit 5295aa37be
14 files changed
+225 -259

No files matched your search

+22 -18
View File
@@ -21,6 +21,17 @@ export interface DuelMember {
shell: ShellDefinition;
}
interface TankopediaPersistent {
model: {
equipment: {
enhancedArmor: boolean;
calibratedShells: boolean;
};
visual: {
controlsEnabled: boolean;
showGrid: boolean;
greenPenetration: boolean;
};
};
sort: {
by: TankopediaSortBy;
direction: TankopediaSortDirection;
@@ -43,15 +54,6 @@ interface TankopediaTemporary {
yaw: number;
pitch: number;
};
equipment: {
enhancedArmor: boolean;
calibratedShells: boolean;
};
visual: {
controlsEnabled: boolean;
showGrid: boolean;
greenPenetration: boolean;
};
};
equipmentMatrix: EquipmentMatrix;
mode: TankopediaMode;
@@ -60,6 +62,17 @@ interface TankopediaTemporary {
export const useTankopediaPersistent = create<TankopediaPersistent>()(
persist(
subscribeWithSelector<TankopediaPersistent>(() => ({
model: {
equipment: {
enhancedArmor: false,
calibratedShells: false,
},
visual: {
controlsEnabled: true,
showGrid: true,
greenPenetration: false,
},
},
sort: {
by: 'tier',
direction: 'descending',
@@ -84,15 +97,6 @@ export const useTankopediaTemporary = create<TankopediaTemporary>()(
yaw: 0,
pitch: 0,
},
equipment: {
enhancedArmor: false,
calibratedShells: false,
},
visual: {
controlsEnabled: true,
showGrid: true,
greenPenetration: false,
},
},
equipmentMatrix: [
[1, 0, 0],