mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-28 08:52:19 -07:00
[CardInfo] Encapsulate lazy properties loading into new class
This commit is contained in:
parent
a5f43c08fa
commit
9716f7f2c3
11 changed files with 195 additions and 124 deletions
|
|
@ -248,7 +248,7 @@ void CockatriceXml3Parser::loadCardsFromXml(QXmlStreamReader &xml)
|
|||
if (attrs.hasAttribute("rarity")) {
|
||||
printingProps.insert("rarity", attrs.value("rarity").toString());
|
||||
}
|
||||
PrintingInfo setInfo(set, printingProps);
|
||||
PrintingInfo setInfo(set, LazyPropertiesHash(printingProps));
|
||||
_sets[setName].append(setInfo);
|
||||
}
|
||||
// related cards
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue