mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
feat: equipment icons
This commit is contained in:
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>);
|
||||
@@ -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 }
|
||||
|
||||
Reference in new issue
Block a user