mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-17 18:27:56 -05:00
Make dumpers works as gdt dumpers and raw dumpers
This commit is contained in:
@ -86,6 +86,17 @@ std::string InfoString::ToString(const std::string& prefix) const
|
||||
return ss.str();
|
||||
}
|
||||
|
||||
void InfoString::ToGdtProperties(const std::string& prefix, GdtEntry& gdtEntry) const
|
||||
{
|
||||
for (const auto& key : m_keys_by_insertion)
|
||||
{
|
||||
const auto value = m_values.find(key);
|
||||
gdtEntry.m_properties[key] = value->second;
|
||||
}
|
||||
|
||||
gdtEntry.m_properties["configstringFileType"] = prefix;
|
||||
}
|
||||
|
||||
void InfoString::FromString()
|
||||
{
|
||||
}
|
||||
|
@ -4,6 +4,8 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
|
||||
#include "Obj/GDT/GdtEntry.h"
|
||||
#include "Zone/ZoneTypes.h"
|
||||
|
||||
class InfoString
|
||||
@ -21,6 +23,7 @@ public:
|
||||
|
||||
std::string ToString() const;
|
||||
std::string ToString(const std::string& prefix) const;
|
||||
void ToGdtProperties(const std::string& prefix, GdtEntry& gdtEntry) const;
|
||||
|
||||
void FromString();
|
||||
void FromString(const std::string& prefix);
|
||||
|
Reference in New Issue
Block a user