| 18 | std::optional<bool> rightToLeft) |
| 19 | : colorPalette(std::move(colorPalette)), platformType(platformType), rightToLeft(rightToLeft) {} |
| 20 | |
| 21 | bool Asset::needResolve() const { |
| 22 | return !getResolvedLocation().has_value(); |
| 23 | } |
| 24 | |
| 25 | bool Asset::isURL() const { |
| 26 | auto resolvedLocation = getResolvedLocation(); |
| 27 | if (!resolvedLocation) { |
| 28 | return false; |
| 29 | } |
| 30 |