mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 13:17:32 +00:00
card basic
This commit is contained in:
parent
51fb65cdb4
commit
cd0793655d
32 changed files with 807 additions and 260 deletions
|
|
@ -1,3 +1,26 @@
|
|||
/**
|
||||
* @class
|
||||
*/
|
||||
export class Buddy {
|
||||
/**
|
||||
* @param {{
|
||||
* id: number;
|
||||
* name: string;
|
||||
* rarity: string;
|
||||
* level: number;
|
||||
* star: number;
|
||||
* }} data
|
||||
*/
|
||||
constructor(data) {
|
||||
const { id, name, rarity, level, star } = data;
|
||||
this.id = id;
|
||||
this.name = name;
|
||||
this.rarity = rarity;
|
||||
this.level = level;
|
||||
this.star = star;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @class
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue