mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-03-06 18:09:10 +00:00
19 lines
424 B
TypeScript
19 lines
424 B
TypeScript
import type { Challenge } from "#app/data/challenge";
|
|
import { copyChallenge } from "#app/data/challenge";
|
|
|
|
export default class ChallengeData {
|
|
public id: number;
|
|
public value: number;
|
|
public severity: number;
|
|
|
|
constructor(source: Challenge | any) {
|
|
this.id = source.id;
|
|
this.value = source.value;
|
|
this.severity = source.severity;
|
|
}
|
|
|
|
toChallenge(): Challenge {
|
|
return copyChallenge(this);
|
|
}
|
|
}
|