mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-12 20:26:10 +01:00
sorting
This commit is contained in:
1 parent
8ec7fcb90a
commit
b00a63a9f8
19 files changed
+340
-736
No files matched your search
@@ -1,7 +1,11 @@
|
||||
import type { CaseType } from "@blitzkit/core";
|
||||
import type { GunDefinition } from "@blitzkit/protos";
|
||||
import { CharacteristicRanking } from "../types/characteristics";
|
||||
import type { CharacteristicsGroup } from "../types/characteristics";
|
||||
import {
|
||||
CharacteristicRanking,
|
||||
type CharacteristicName,
|
||||
type CharacteristicRenderConfig,
|
||||
type CharacteristicsGroup,
|
||||
} from "../types/characteristics";
|
||||
|
||||
export const characteristicsGroups: CharacteristicsGroup[] = [
|
||||
// {
|
||||
@@ -299,3 +303,15 @@ export const characteristicsGroups: CharacteristicsGroup[] = [
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
export const characteristicRenderConfigs = new Map<
|
||||
CharacteristicName,
|
||||
CharacteristicRenderConfig
|
||||
>();
|
||||
|
||||
for (const group of characteristicsGroups) {
|
||||
for (const config of group.order) {
|
||||
if (!("name" in config)) continue;
|
||||
characteristicRenderConfigs.set(config.name, config);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user