feat: ea and cs

This commit is contained in:
TrèsAbhi committed 2024-01-21 22:11:01 -06:00
1 parent a0c9895122
commit 9488602f5b
17 files changed
+134 -43

No files matched your search

+13 -3
View File
@@ -35,19 +35,25 @@ interface TankopediaPersistent {
};
}
export type EquipmentMatrix = (0 | 1)[][];
interface TankopediaTemporary {
model: {
physical: {
pose: {
yaw: number;
pitch: number;
};
equipment: {
enhancedArmor: boolean;
calibratedShells: boolean;
};
visual: {
controlsEnabled: boolean;
showGrid: boolean;
greenPenetration: boolean;
};
};
equipmentMatrix: (0 | 1)[][];
equipmentMatrix: EquipmentMatrix;
mode: TankopediaMode;
}
@@ -74,10 +80,14 @@ export const useTankopediaPersistent = create<TankopediaPersistent>()(
export const useTankopediaTemporary = create<TankopediaTemporary>()(
subscribeWithSelector<TankopediaTemporary>(() => ({
model: {
physical: {
pose: {
yaw: 0,
pitch: 0,
},
equipment: {
enhancedArmor: false,
calibratedShells: false,
},
visual: {
controlsEnabled: true,
showGrid: true,