feat: equipment icons

This commit is contained in:
TrèsAbhi committed 2024-01-16 16:58:00 -06:00
1 parent a741cc305a
commit 5adc69977b
20 files changed
+428 -218

No files matched your search

@@ -0,0 +1,22 @@
import { asset } from './asset';
type EquipmentOptions = [number, number];
type EquipmentRow = [EquipmentOptions, EquipmentOptions, EquipmentOptions];
type EquipmentRows = [EquipmentRow, EquipmentRow, EquipmentRow];
interface EquipmentDefinitions {
presets: {
[key: string]: EquipmentRows;
};
equipments: {
[key: number]: {
name: string;
};
};
}
export const equipmentDefinitions = fetch(asset('definitions/equipment.json'), {
cache: 'no-cache',
}).then(async (response) => response.json() as Promise<EquipmentDefinitions>);
+1
View File
@@ -24,6 +24,7 @@ export interface TankDefinition {
turrets: TurretDefinition[];
price: TankDefinitionPrice;
camouflage: { still: number; moving: number; firing: number };
equipment: string;
}
export type TankDefinitionPrice =
| { type: 'credits'; value: number }