Add models for loot

This commit is contained in:
BlossomiShymae
2024-06-12 17:25:29 -05:00
parent be8d898947
commit c55aa7cf6c
2 changed files with 36 additions and 1 deletions

View File

@@ -321,4 +321,30 @@ export class Companion extends CommunityDragonObject {
getLoadoutsIcon(version: string): string {
return this.resolveClientPath({path: this.loadoutsIcon, args: {locale: "default", version: version}});
}
}
export class Loot extends CommunityDragonObject {
id: string;
name: string;
description: string;
image: string;
mappedStoreId: number;
rarity: string;
type: string;
constructor(json: any) {
super();
this.id = json.id;
this.name = json.name;
this.description = json.description;
this.image = json.image;
this.mappedStoreId = json.mappedStoreId;
this.rarity = json.rarity;
this.type = json.type;
}
getImage(version: string): string {
return this.resolveClientPath({path: this.image, args: {locale: "default", version: version}});
}
}