mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-16 14:16:00 +01:00
some consumable compatibility code
This commit is contained in:
1 parent
a2574efb9c
commit
2627aba938
9 files changed
+154
-10
No files matched your search
@@ -4,6 +4,7 @@ import { Avatars } from "@protos/avatars";
|
||||
import { Consumables } from "@protos/consumables";
|
||||
import { Equipment } from "@protos/equipment";
|
||||
import { PopularTanks } from "@protos/popular_tanks";
|
||||
import { Sets } from "@protos/sets";
|
||||
import { TankList } from "@protos/tank_list";
|
||||
import { TankUpgradePresets } from "@protos/tank_upgrade_presets";
|
||||
import { Tanks } from "@protos/tanks";
|
||||
@@ -71,6 +72,11 @@ export class ClientAPI extends AbstractAPI {
|
||||
return fetchPB("/api/tier-prices.pb", TierPrices);
|
||||
}
|
||||
|
||||
@Cache()
|
||||
sets() {
|
||||
return fetchPB("/api/sets.pb", Sets);
|
||||
}
|
||||
|
||||
@Cache()
|
||||
async strings(locale: string) {
|
||||
const response = await fetch(`/api/strings/${locale}.json`);
|
||||
|
||||
Reference in new issue
Block a user