Dump CommonStructuredDataDefSet instead of the game's internal structures

This commit is contained in:
Jan
2022-03-19 23:39:50 +01:00
parent c38367d55b
commit b2140260a4
11 changed files with 339 additions and 19 deletions

View File

@ -1,5 +1,7 @@
#include "CommonStructuredDataStruct.h"
#include <algorithm>
CommonStructuredDataStructEntry::CommonStructuredDataStructEntry()
: m_offset_in_bits(0u)
{
@ -30,3 +32,11 @@ CommonStructuredDataStruct::CommonStructuredDataStruct(std::string name)
m_size_in_byte(0u)
{
}
void CommonStructuredDataStruct::SortProperties()
{
std::sort(m_properties.begin(), m_properties.end(), [](const CommonStructuredDataStructEntry& e1, const CommonStructuredDataStructEntry& e2)
{
return e1.m_offset_in_bits < e2.m_offset_in_bits;
});
}