UNPKG

deckbuilder

Version:

A deck building and management tool any card based games in the browser or Node.

28 lines (22 loc) 503 B
'use strict' /** * Defines the options and their default values for Deckbuilder. * * @version 1.0.0 */ export default class Options { /** * The maximum amount of cards that the deck can contain. * * @property {number} * * @default Infinity */ maxCardCount: number = Infinity; /** * @param {Object} options The initialiation parameters from Deckbuilder. */ constructor(options: Object = {}) { Object.assign(this, options); } }