fix: some linting for new proto 2

This commit is contained in:
TrèsAbhi committed 2024-10-05 15:57:34 -05:00
1 parent 94f67e30f1
commit 79bc259565
22 files changed
+183 -163

No files matched your search

+9 -8
View File
@@ -52,17 +52,18 @@
},
"tank_class_short": {
"lightTank": "Light",
"mediumTank": "Medium",
"heavyTank": "Heavy",
"AT-SPG": "TD"
"0": "Light",
"1": "Medium",
"2": "Heavy",
"3": "TD"
},
"tank_class_medium": {
"lightTank": "Light",
"mediumTank": "Medium",
"heavyTank": "Heavy",
"AT-SPG": "Tank destroyer"
"-1": "unrecognized",
"0": "Light",
"1": "Medium",
"2": "Heavy",
"3": "Tank destroyer"
},
"tree_type": {
+4 -4
View File
@@ -4,10 +4,10 @@ import { BlitzStats } from '../statistics';
export const TREE_TYPES = ['researchable', 'premium', 'collector'] as const;
export const TANK_CLASSES = [
TankClass.TANK_CLASS_LIGHT,
TankClass.TANK_CLASS_MEDIUM,
TankClass.TANK_CLASS_HEAVY,
TankClass.TANK_CLASS_TANK_DESTROYER,
TankClass.LIGHT,
TankClass.MEDIUM,
TankClass.HEAVY,
TankClass.TANK_DESTROYER,
TankClass.UNRECOGNIZED,
] as const;
@@ -6,6 +6,7 @@ export interface DiscoveredIdsDefinitions {
count: number;
}
export const discoveredIdsDefinitions = fetch(asset('ids/manifest.json')).then(
(response) => response.json() as Promise<DiscoveredIdsDefinitions>,
);
export async function fetchDiscoveredIdsDefinitions() {
const response = await fetch(asset('ids/manifest.json'));
return response.json() as Promise<DiscoveredIdsDefinitions>;
}
+1 -1
View File
@@ -9,7 +9,7 @@ export * from './consumableDefinitions';
// export * from './context';
export * from './createDefaultSkills';
export * from './degressiveStat';
// export * from './discoveredIdDefinitions';
export * from './discoveredIdDefinitions';
// export * from './emblemURL';
export * from './equipmentDefinitions';
export * from './eventManager';
@@ -2,12 +2,15 @@ import { BoundingBox } from '@blitzkit/core';
export function unionBoundingBox(a: BoundingBox, b: BoundingBox) {
return {
// min: a.min.map((a, index) => Math.min(a, b.min[index])) as Vector3Tuple,
// max: a.max.map((a, index) => Math.max(a, b.max[index])) as Vector3Tuple,
min: {
x: Math.min(a.min.x, b.min.x),
y: Math.min(a.min.y, b.min.y),
z: Math.min(a.min.z, b.min.z),
},
max: {
x: Math.max(a.max.x, b.max.x),
y: Math.max(a.max.y, b.max.y),
z: Math.max(a.max.z, b.max.z),
},
} satisfies BoundingBox;
}