mirror of
https://github.com/BlossomiShymae/clean-cuts.git
synced 2025-12-06 10:10:47 +01:00
Add models for loot
This commit is contained in:
@@ -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}});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user