mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-26 06:37:52 -05:00
Preserve zone definition meta data order
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
#include <unordered_map>
|
||||
#include <vector>
|
||||
|
||||
@ -14,13 +15,25 @@ public:
|
||||
ZoneDefinitionEntry(std::string type, std::string name, bool isReference);
|
||||
};
|
||||
|
||||
class ZoneMetaDataEntry
|
||||
{
|
||||
public:
|
||||
std::string m_key;
|
||||
std::string m_value;
|
||||
|
||||
ZoneMetaDataEntry();
|
||||
ZoneMetaDataEntry(std::string key, std::string value);
|
||||
};
|
||||
|
||||
class ZoneDefinition
|
||||
{
|
||||
public:
|
||||
std::unordered_multimap<std::string, std::string> m_metadata;
|
||||
std::vector<std::unique_ptr<ZoneMetaDataEntry>> m_metadata;
|
||||
std::unordered_multimap<std::string, ZoneMetaDataEntry*> m_metadata_lookup;
|
||||
std::vector<std::string> m_includes;
|
||||
std::vector<std::string> m_ignores;
|
||||
std::vector<ZoneDefinitionEntry> m_assets;
|
||||
|
||||
void AddMetaData(std::string key, std::string value);
|
||||
void Include(ZoneDefinition& definitionToInclude);
|
||||
};
|
Reference in New Issue
Block a user