mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-04 16:30:37 +01:00
feat: ea and cs
This commit is contained in:
1 parent
a0c9895122
commit
9488602f5b
17 files changed
+134
-43
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user