mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-16 14:16:00 +01:00
some equipment groundwork
This commit is contained in:
1 parent
d3ab4bac51
commit
a2574efb9c
10 files changed
+105
-1
No files matched your search
@@ -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`);
|
||||
|
||||
Reference in new issue
Block a user