Files
blitzkit/scripts/buildAssets/constants.ts
T

40 lines
1.7 KiB
TypeScript
Raw Normal View History

2024-03-10 12:50:25 -05:00
import { readdir } from 'fs/promises';
2024-02-20 11:21:01 -06:00
import { argv } from 'process';
const isDepot = argv.includes('--depot');
2024-03-03 16:08:29 -06:00
export const WOTB_WIN32_DEPOT = 444202;
2024-02-20 11:21:01 -06:00
export const DATA = isDepot
2024-03-10 12:50:25 -05:00
? await (async () => {
const [installationVersion] = await readdir(`depots/${WOTB_WIN32_DEPOT}`);
return `depots/${WOTB_WIN32_DEPOT}/${installationVersion}/Data`;
})()
2024-02-20 11:21:01 -06:00
: 'C:/Program Files (x86)/Steam/steamapps/common/World of Tanks Blitz/Data';
2024-01-16 16:58:00 -06:00
export const POI = {
2024-01-08 18:34:04 -06:00
vehicleDefinitions: 'XML/item_defs/vehicles',
strings: 'Strings',
2024-01-25 12:20:34 -06:00
cachedStrings: 'https://stufficons.wgcdn.co/localizations/en.yaml',
2024-01-08 18:34:04 -06:00
tankParameters: '3d/Tanks/Parameters',
smallIcons: 'Gfx/UI/BattleScreenHUD/SmallTankIcons',
bigIcons: 'Gfx/UI/BigTankIcons',
flags: 'Gfx/Lobby/flags',
'3d': '3d',
bigShellIcons: 'Gfx/Shared/tank-supply/ammunition/big',
moduleIcons: 'Gfx/UI/ModulesTechTree',
collisionMeshes: '3d/Tanks/CollisionMeshes',
2024-01-16 16:58:00 -06:00
optionalDevices: 'XML/item_defs/vehicles/common/optional_devices.xml',
optionalDeviceSlots:
2024-03-13 00:17:30 -05:00
'XML/item_defs/vehicles/common/optional_device_slots.xml',
2024-01-16 16:58:00 -06:00
optionalDeviceImageMappings:
'UI/Screens3/Lobby/Inventory/OptionalDevices/OptionalDevicesItemImage.style.yaml',
optionalDevicesImage:
'Gfx/UI/InventoryIcons/Big/OptionalDevices/texture0.packed.webp',
2024-01-17 11:34:27 -06:00
consumablesCommon: 'XML/item_defs/vehicles/common/consumables/common.xml',
consumableIcons: 'Gfx/UI/InventoryIcons/Big/Consumables',
2024-01-25 13:51:30 -06:00
provisionIcons: 'Gfx/UI/InventoryIcons/Big/Provisions',
2024-01-17 11:34:27 -06:00
equipmentItemImageMappings:
'UI/Screens3/Lobby/Inventory/Equipment/EquipmentItemImage.style.yaml',
2024-01-25 13:51:30 -06:00
provisionsCommon: 'XML/item_defs/vehicles/common/provisions/common.xml',
2024-01-25 12:45:13 -06:00
defaultCamoIcon: 'Gfx/UI/Hangar/IconCamouflage.webp',
2024-02-13 19:46:34 -06:00
boosterIcons: 'Gfx/Shared/boosters',
2024-01-08 18:34:04 -06:00
} as const;