feat: start of avatars

This commit is contained in:
TrèsAbhi committed 2026-01-12 14:13:21 -06:00
1 parent 455679a981
commit ea412086d4
7 files changed
+72 -15

No files matched your search

+3 -13
View File
@@ -1,19 +1,9 @@
import { fetchPB } from "@blitzkit/core";
import { Tank } from "../../protos/tank";
import { TankList } from "../../protos/tank_list";
import { Tanks } from "../../protos/tanks";
import { Avatars } from "../../protos/avatars";
import { AbstractAPI } from "./abstract";
export class ClientAPI extends AbstractAPI {
tanks() {
return fetchPB("/api/tanks/all.pb", Tanks);
}
tankList() {
return fetchPB("/api/tanks/list.pb", TankList);
}
tank(id: string) {
return fetchPB(`/api/tanks/${id}.pb`, Tank);
protected _avatars() {
return fetchPB("/api/avatars/all.pb", Avatars);
}
}