diff --git a/server/src/objects/Deck.ts b/server/src/objects/Deck.ts index 64404ec..a65e249 100644 --- a/server/src/objects/Deck.ts +++ b/server/src/objects/Deck.ts @@ -58,6 +58,13 @@ export class Deck { }; + public reset() { + this._deck.push(...this._discard, ...this._unknown); + this._discard = []; + this._unknown = []; + }; + + public toJSON(): datastoreDeck { /** * Converts this Deck into a JSON-compatible object