1
0
forked from noxious/client

Load textures using cache data instead of data sent from server

This commit is contained in:
2025-01-08 21:13:04 +01:00
parent 574777da80
commit 03fef60621
7 changed files with 42 additions and 30 deletions

View File

@ -29,6 +29,11 @@ export class CharacterTypeStorage extends BaseStorage<any> {
constructor() {
super('characterTypes', 'id, name, createdAt, updatedAt')
}
async getSpriteId(characterTypeId: string) {
const characterType = await this.get(characterTypeId)
return characterType?.sprite
}
}
export class CharacterHairStorage extends BaseStorage<any> {