feat: code split

This commit is contained in:
TrèsAbhi committed 2024-01-04 13:06:40 -06:00
1 parent 2cf0bda352
commit 0a4e696bc1
15 files changed
+308 -121

No files matched your search

+12
View File
@@ -19,6 +19,12 @@ type Tankopedia = {
nations: string[];
test: TankopediaTestTankDisplay;
};
model: {
hullYaw: number;
turretYaw: number;
gunPitch: number;
controlsEnabled: boolean;
};
};
export const useTankopedia = create<Tankopedia>()(() => ({
@@ -33,6 +39,12 @@ export const useTankopedia = create<Tankopedia>()(() => ({
nations: [],
test: 'include',
},
model: {
gunPitch: 0,
hullYaw: 0,
turretYaw: 0,
controlsEnabled: true,
},
}));
export default function mutateTankopedia(recipe: (draft: Tankopedia) => void) {