mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 11:39:50 +02:00
feat: optimized state handling x2
This commit is contained in:
1 parent
230b2df5fd
commit
586cd84349
13 files changed
+138
-149
No files matched your search
+20
-12
@@ -28,12 +28,16 @@ type Tankopedia = {
|
||||
test: TankopediaTestTankDisplay;
|
||||
};
|
||||
model: {
|
||||
hullYaw: number;
|
||||
turretYaw: number;
|
||||
gunPitch: number;
|
||||
controlsEnabled: boolean;
|
||||
showGrid: boolean;
|
||||
showSpacedArmor: boolean;
|
||||
physical: {
|
||||
hullYaw: number;
|
||||
turretYaw: number;
|
||||
gunPitch: number;
|
||||
};
|
||||
visual: {
|
||||
controlsEnabled: boolean;
|
||||
showGrid: boolean;
|
||||
showSpacedArmor: boolean;
|
||||
};
|
||||
};
|
||||
mode: TankopediaMode;
|
||||
} & (
|
||||
@@ -69,12 +73,16 @@ export const useTankopedia = create<Tankopedia>()(
|
||||
test: 'include',
|
||||
},
|
||||
model: {
|
||||
gunPitch: 0,
|
||||
hullYaw: 0,
|
||||
turretYaw: 0,
|
||||
controlsEnabled: true,
|
||||
showGrid: true,
|
||||
showSpacedArmor: true,
|
||||
physical: {
|
||||
gunPitch: 0,
|
||||
hullYaw: 0,
|
||||
turretYaw: 0,
|
||||
},
|
||||
visual: {
|
||||
controlsEnabled: true,
|
||||
showGrid: true,
|
||||
showSpacedArmor: true,
|
||||
},
|
||||
},
|
||||
areTanksAssigned: false,
|
||||
mode: 'model',
|
||||
|
||||
Reference in new issue
Block a user