mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-02-14 20:25:57 +00:00
18 lines
387 B
TypeScript
18 lines
387 B
TypeScript
|
import { Challenge, copyChallenge } from "#app/data/challenge.js";
|
||
|
|
||
|
export default class ChallengeData {
|
||
|
public id: integer;
|
||
|
public value: integer;
|
||
|
public severity: integer;
|
||
|
|
||
|
constructor(source: Challenge | any) {
|
||
|
this.id = source.id;
|
||
|
this.value = source.value;
|
||
|
this.severity = source.severity;
|
||
|
}
|
||
|
|
||
|
toChallenge(): Challenge {
|
||
|
return copyChallenge(this);
|
||
|
}
|
||
|
}
|