Files
blitzkit/scripts/buildAssets/constants.ts
T

39 lines
1.7 KiB
TypeScript
Raw Normal View History

2024-02-20 11:21:01 -06:00
import { readdir } from 'fs/promises';
import { argv } from 'process';
const isDepot = argv.includes('--depot');
export const DATA = isDepot
? await (async () => {
const [installationVersion] = await readdir('depots/444202');
return `depots/444202/${installationVersion}/Data`;
})()
: '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:
'XML/item_defs/vehicles/common/optional_device_slots.xml',
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;