[core] TileData objects now store whether an optional load attempt was performed

This commit is contained in:
Konstantin Käfer
2016-05-27 16:55:59 +02:00
parent 8a8f828e41
commit fce5dd5f6a
4 changed files with 24 additions and 1 deletions

View File

@@ -24,6 +24,11 @@ void TileData::setTileSource(std::unique_ptr<TileSource> tileSource_) {
tileSource = std::move(tileSource_);
}
void TileData::setTriedOptional() {
triedOptional = true;
observer->onNeedsRepaint();
}
void TileData::dumpDebugLogs() const {
Log::Info(Event::General, "TileData::id: %s", util::toString(id).c_str());
Log::Info(Event::General, "TileData::renderable: %s", isRenderable() ? "yes" : "no");