feat: initial implementation for to_card_image() function (closes #33)

This commit is contained in:
Brendan Hagan
2022-07-27 23:02:01 -04:00
parent 6c5b6a0c4a
commit 0b22b17153
3 changed files with 35 additions and 3 deletions
+12 -1
View File
@@ -441,7 +441,18 @@ Image BuiltInImage::generate(const Options& opt) const {
bool BuiltInImage::operator == (const GeneratedImage& that) const {
const BuiltInImage* that2 = dynamic_cast<const BuiltInImage*>(&that);
return that2 && name == that2->name;
}
}
// ----------------------------------------------------------------------------- : ArbitraryImage
Image ArbitraryImage::generate(const Options& opt) const {
return image;
}
bool ArbitraryImage::operator == (const GeneratedImage& that) const {
const ArbitraryImage* that2 = dynamic_cast<const ArbitraryImage*>(&that);
return that2 && image.IsSameAs(that2->image);
}
// ----------------------------------------------------------------------------- : SymbolToImage