| 10 | namespace Dungeon { |
| 11 | |
| 12 | void ImagePartReader::readAsset(String const& asset) { |
| 13 | auto assets = Root::singleton().assets(); |
| 14 | m_images.push_back(make_pair(asset, assets->image(asset))); |
| 15 | } |
| 16 | |
| 17 | Vec2U ImagePartReader::size() const { |
| 18 | if (m_images.empty()) |