some equipment groundwork

This commit is contained in:
tresabhi committed 2026-05-20 13:09:19 -05:00
1 parent d3ab4bac51
commit a2574efb9c
10 files changed
+105 -1

No files matched your search

+12
View File
@@ -1,11 +1,13 @@
import { fetchPB } from "@blitzkit/core";
import type { Strings } from "@blitzkit/i18n";
import { Avatars } from "@protos/avatars";
import { Consumables } from "@protos/consumables";
import { Equipment } from "@protos/equipment";
import { PopularTanks } from "@protos/popular_tanks";
import { TankList } from "@protos/tank_list";
import { TankUpgradePresets } from "@protos/tank_upgrade_presets";
import { Tanks } from "@protos/tanks";
import { TierPrices } from "@protos/tier_prices";
import { Tiers } from "@protos/tiers";
import { AbstractAPI, Cache } from "./abstract";
@@ -59,6 +61,16 @@ export class ClientAPI extends AbstractAPI {
return fetchPB("/api/equipment.pb", Equipment);
}
@Cache()
consumables() {
return fetchPB("/api/consumables.pb", Consumables);
}
@Cache()
tierPrices() {
return fetchPB("/api/tier-prices.pb", TierPrices);
}
@Cache()
async strings(locale: string) {
const response = await fetch(`/api/strings/${locale}.json`);