mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-16 14:16:00 +01:00
use prefixed ids
This commit is contained in:
1 parent
b81d9985ee
commit
676601b06e
9 files changed
+38
-37
No files matched your search
@@ -1,10 +1,10 @@
|
||||
import { fetchPB } from "@blitzkit/core";
|
||||
import type { Strings } from "@blitzkit/i18n";
|
||||
import { Avatars } from "@protos/avatars";
|
||||
import { TankUpgradePricePresetComponent } from "@protos/blitz_static_tank_upgrade_price_preset_component";
|
||||
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 { Tiers } from "@protos/tiers";
|
||||
import { AbstractAPI, Cache } from "./abstract";
|
||||
@@ -45,11 +45,8 @@ export class ClientAPI extends AbstractAPI {
|
||||
}
|
||||
|
||||
@Cache()
|
||||
tankUpgradePreset(name: string) {
|
||||
return fetchPB(
|
||||
`/api/tanks/presets/upgrade/${name}.pb`,
|
||||
TankUpgradePricePresetComponent,
|
||||
);
|
||||
tankUpgradePresets() {
|
||||
return fetchPB(`/api/tanks/upgrades.pb`, TankUpgradePresets);
|
||||
}
|
||||
|
||||
@Cache()
|
||||
|
||||
Reference in new issue
Block a user