Add a jsdoc to the reset method
This commit is contained in:
parent
34eb19e340
commit
8f671d33cf
1 changed files with 3 additions and 0 deletions
|
|
@ -58,6 +58,9 @@ export class Deck<T> {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Resets all of the cards in the deck and puts them back in the draw pile
|
||||||
|
*/
|
||||||
public reset() {
|
public reset() {
|
||||||
this._deck.push(...this._discard, ...this._unknown);
|
this._deck.push(...this._discard, ...this._unknown);
|
||||||
this._discard = [];
|
this._discard = [];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue