fix: implement tank list on client

Co-authored-by: Copilot <[email protected]>
This commit is contained in:
TrèsAbhiandCopilot committed 2026-04-26 19:44:27 -05:00
1 parent 3a38441d42
commit 932c414b0c
1 file changed
+3 -2
+3 -2
View File
@@ -3,14 +3,15 @@ import type { Strings } from "@blitzkit/i18n";
import { Avatars } from "@protos/blitzkit/avatars"; import { Avatars } from "@protos/blitzkit/avatars";
import { PopularTanks } from "@protos/blitzkit/popular_tanks"; import { PopularTanks } from "@protos/blitzkit/popular_tanks";
import { Tank } from "@protos/blitzkit/tank"; import { Tank } from "@protos/blitzkit/tank";
import { TankList } from "@protos/blitzkit/tank_list";
import { AbstractAPI, Cache } from "./abstract"; import { AbstractAPI, Cache } from "./abstract";
const rejected = Promise.reject("Not implemented on client"); const rejected = Promise.reject("Not implemented on client");
export class ClientAPI extends AbstractAPI { export class ClientAPI extends AbstractAPI {
@UnimplementedOnClient @Cache()
tankList() { tankList() {
return rejected; return fetchPB("/api/tanks/list.pb", TankList);
} }
@Cache() @Cache()