mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-13 00:08:26 -05:00
Read assetlists for ignoring assets
This commit is contained in:
@ -11,3 +11,24 @@ ZoneDefinitionEntry::ZoneDefinitionEntry(std::string type, std::string name, boo
|
||||
m_is_reference(isReference)
|
||||
{
|
||||
}
|
||||
|
||||
void ZoneDefinition::Include(ZoneDefinition& definitionToInclude)
|
||||
{
|
||||
for(const auto& [key, value] : definitionToInclude.m_metadata)
|
||||
{
|
||||
if(m_metadata.find(key) == m_metadata.end())
|
||||
{
|
||||
m_metadata.emplace(std::make_pair(key, value));
|
||||
}
|
||||
}
|
||||
|
||||
for(const auto& ignore : definitionToInclude.m_ignores)
|
||||
{
|
||||
m_ignores.emplace_back(ignore);
|
||||
}
|
||||
|
||||
for(const auto& asset : definitionToInclude.m_assets)
|
||||
{
|
||||
m_assets.emplace_back(asset);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user