mirror of
https://github.com/YouHaveTrouble/DiscipleOfLand.git
synced 2026-05-12 06:26:56 +00:00
15 lines
288 B
TypeScript
15 lines
288 B
TypeScript
export default class Item {
|
|
|
|
readonly id: string;
|
|
readonly name: string;
|
|
readonly level: number;
|
|
|
|
constructor(id: string, data: {[key: string]: number | string | undefined}) {
|
|
this.id = id;
|
|
this.name = data?.name as string;
|
|
this.level = data?.level as number;
|
|
}
|
|
|
|
}
|
|
|