mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: some more stuff
This commit is contained in:
1 parent
d7e556e136
commit
7a3bdd8f35
7 files changed
+58
-25
No files matched your search
@@ -11,6 +11,7 @@ import type { ExternalModuleVariant } from '../components/Armor/components/Space
|
||||
import type { XP_MULTIPLIERS } from '../components/Tankopedia/TechTreeSection';
|
||||
import { awaitableSkillDefinitions } from '../core/awaitables/skillDefinitions';
|
||||
import { createContextualStore } from '../core/zustand/createContextualStore';
|
||||
import { TankopediaDisplay } from './tankopediaPersistent/constants';
|
||||
|
||||
export interface ShotLayerBase {
|
||||
index: number;
|
||||
@@ -100,6 +101,7 @@ interface TankopediaEphemeral {
|
||||
);
|
||||
xpMultiplier: (typeof XP_MULTIPLIERS)[number];
|
||||
customShell?: ShellDefinition;
|
||||
display: TankopediaDisplay;
|
||||
}
|
||||
|
||||
const skillDefinitions = await awaitableSkillDefinitions;
|
||||
@@ -114,6 +116,7 @@ export const TankopediaEphemeral = createContextualStore(
|
||||
model,
|
||||
controlsEnabled: true,
|
||||
xpMultiplier: 1,
|
||||
display: TankopediaDisplay.Model,
|
||||
})),
|
||||
);
|
||||
},
|
||||
|
||||
@@ -3,7 +3,7 @@ import { create } from 'zustand';
|
||||
import { persist, subscribeWithSelector } from 'zustand/middleware';
|
||||
import { ENVIRONMENTS } from '../../constants/lightingEnvironments';
|
||||
import { createContextualStore } from '../../core/zustand/createContextualStore';
|
||||
import { SORT_NAMES, TankopediaDisplay } from './constants';
|
||||
import { SORT_NAMES } from './constants';
|
||||
|
||||
export type TankopediaSortBy = keyof typeof SORT_NAMES;
|
||||
export type TankopediaSortDirection = 'ascending' | 'descending';
|
||||
@@ -25,8 +25,6 @@ export interface TankopediaPersistentStore {
|
||||
by: TankopediaSortBy;
|
||||
direction: TankopediaSortDirection;
|
||||
};
|
||||
|
||||
display: TankopediaDisplay;
|
||||
}
|
||||
|
||||
export const TankopediaPersistent = createContextualStore(() =>
|
||||
@@ -47,7 +45,6 @@ export const TankopediaPersistent = createContextualStore(() =>
|
||||
by: 'meta.none',
|
||||
direction: 'ascending',
|
||||
},
|
||||
display: TankopediaDisplay.Model,
|
||||
})),
|
||||
{ name: 'tankopedia', merge: (a, b) => lodash.merge(b, a) },
|
||||
),
|
||||
|
||||
Reference in new issue
Block a user