13 if (!tileset_repo_->
exists(tileset_name)) {
19 auto maybe_tileset = tileset_repo_->
load(tileset_name);
20 if (!maybe_tileset.has_value()) {
24 const auto tileset = std::move(maybe_tileset.value());
28 const auto mismatched_keys =
30 if (!mismatched_keys.empty()) {
31 std::vector<FormatParam> keys;
32 keys.reserve(mismatched_keys.size());
33 for (
const auto &key : mismatched_keys) {
virtual std::vector< ArtifactKey > find_unsynced_tileset_artifacts(const std::string &tileset_name, const std::vector< ArtifactKey > &artifact_keys) const
Finds all artifacts for the given Tileset with unsynced changes compared to cached checksums.
A result type that maintains a chainable sequence of errors for debugging and error reporting.
virtual std::vector< ArtifactKey > get_all_artifact_keys(const std::string &tileset_name) const
Gets the keys for all tileset artifacts (both Porytiles and Porymap) present in the given Tileset.
bool exists(const std::string &name) const
Checks if the given Tileset exists in the backing store.
ChainableResult< std::unique_ptr< Tileset > > load(const std::string &name) const
Loads an existing Tileset from storage.
const ArtifactChecksumProvider & checksum_provider() const
Gets a reference to the ArtifactChecksumProvider for this repo.
const TilesetArtifactKeyProvider & key_provider() const
Gets a reference to the TilesetArtifactKeyProvider for this repo.
ChainableResult< void > verify(const std::string &tileset_name) const
@ bold
Bold text formatting.