MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / addVoxelSliceAlias

Method addVoxelSliceAlias

framework/data.cpp:942–952  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

940 this->paletteAliases[name] = value;
941}
942void DataImpl::addVoxelSliceAlias(const UString &name, const UString &value)
943{
944 std::lock_guard<std::recursive_mutex> l(this->voxelCacheLock);
945 LogAssert(name != value);
946 auto current = this->voxelAliases.find(name);
947 if (current != this->voxelAliases.end() && current->second != value)
948 {
949 LogWarning("Replacing alias \"%s\" - was \"%s\" now \"%s\"", name, current->second, value);
950 }
951 this->voxelAliases[name] = value;
952}
953
954void DataImpl::readAliases()
955{

Callers 1

readAliasFileMethod · 0.95

Calls 1

endMethod · 0.80

Tested by

no test coverage detected