mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-05 09:33:25 -08:00
Honor finite deck copy limits across printings and deck zones [skip ci]
This commit is contained in:
parent
e08402ac94
commit
142341bc3c
9 changed files with 438 additions and 48 deletions
|
|
@ -170,6 +170,10 @@ private:
|
|||
*/
|
||||
CardNameMap cards;
|
||||
|
||||
// Shared defaults are immutable; card-specific copy limits belong to this import.
|
||||
FormatRulesNameMap magicFormats;
|
||||
bool magicFormatsDirty = true;
|
||||
|
||||
/**
|
||||
* The sets, indexed by short name.
|
||||
*/
|
||||
|
|
@ -299,7 +303,8 @@ public:
|
|||
bool saveToFile(const QString &fileName, const QString &sourceUrl, const QString &sourceVersion);
|
||||
int importCardsFromSet(const CardSetPtr ¤tSet, const QJsonArray &cardsList);
|
||||
/**
|
||||
* @brief Returns the default format rules. The result is memoized on first use and must be treated as immutable.
|
||||
* @brief Returns format rules including finite copy allowances from imported cards.
|
||||
* The result is cached until cards are added or cleared and must be treated as immutable.
|
||||
*/
|
||||
const FormatRulesNameMap &createDefaultMagicFormats();
|
||||
const CardNameMap &getCardList() const
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue