mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
feat: code split
This commit is contained in:
1 parent
2cf0bda352
commit
0a4e696bc1
15 files changed
+308
-121
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user