mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-15 05:36:11 +01:00
feat: avatars
This commit is contained in:
1 parent
1551dc50fd
commit
b96f925d9a
5 files changed
+48
No files matched your search
@@ -1,3 +1,4 @@
|
||||
import type { CatalogItemAccessor } from "@blitzkit/closed";
|
||||
import type { Tank } from "../../protos/tank";
|
||||
import type { TankList } from "../../protos/tank_list";
|
||||
import type { Tanks } from "../../protos/tanks";
|
||||
@@ -13,4 +14,6 @@ export abstract class AbstractAPI {
|
||||
): Promise<Record<string, string>>;
|
||||
|
||||
abstract tank(id: string): Promise<Tank>;
|
||||
|
||||
abstract avatars(): Promise<CatalogItemAccessor[]>;
|
||||
}
|
||||
@@ -145,4 +145,8 @@ export class ServerAPI extends AbstractAPI {
|
||||
const tankList = await this.tankList();
|
||||
return this._tank(id, tankList);
|
||||
}
|
||||
|
||||
async avatars() {
|
||||
return this.metadata.group("ProfileAvatarEntity");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user