Unlinker: Do not list localized strings one by one in the zone file and do not include keyvaluepairs at all because they should be in the meta data

This commit is contained in:
Jan
2020-02-19 14:45:55 +01:00
parent f0b66f0a35
commit 14593b4799
3 changed files with 31 additions and 12 deletions

View File

@ -26,14 +26,4 @@ void AbstractZoneDefWriter::WriteMetaData(const std::string& metaDataKey, const
void AbstractZoneDefWriter::WriteEntry(const std::string& entryKey, const std::string& entryValue) const
{
m_file->Printf("%s,%s\n", entryKey.c_str(), entryValue.c_str());
}
void AbstractZoneDefWriter::WriteContent() const
{
const auto* pools = m_zone->GetPools();
for(const auto& asset : *pools)
{
WriteEntry(pools->GetAssetTypeName(asset->m_type), asset->m_name);
}
}
}

View File

@ -14,7 +14,6 @@ protected:
void WriteComment(const std::string& comment) const;
void WriteMetaData(const std::string& metaDataKey, const std::string& metaDataValue) const;
void WriteEntry(const std::string& entryKey, const std::string& entryValue) const;
void WriteContent() const;
AbstractZoneDefWriter(Zone* zone, FileAPI::IFile* file);