2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-07-04 10:11:53 +00:00

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

@ -0,0 +1,23 @@
#pragma once
#include <ostream>
#include "Dumping/AbstractTextDumper.h"
#include "StructuredDataDef/CommonStructuredDataDef.h"
class StructuredDataDefDumperNew : AbstractTextDumper
{
struct
{
bool m_empty_line_before_definition : 1;
} m_flags;
void WriteLineComment(const std::string& comment) const;
void DumpEnum(const CommonStructuredDataEnum& _enum);
void DumpStruct(const CommonStructuredDataStruct& _struct);
public:
explicit StructuredDataDefDumperNew(std::ostream& stream);
void DumpDef(const CommonStructuredDataDef& def);
};