mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-19 03:07:58 -05:00
Dump structured data def reserved count
This commit is contained in:
@ -53,7 +53,7 @@ void StructuredDataDefDumper::EndVersion()
|
||||
m_flags.m_empty_line_before_block = false;
|
||||
}
|
||||
|
||||
void StructuredDataDefDumper::BeginEnum(const std::string& enumName, const size_t enumEntryCount)
|
||||
void StructuredDataDefDumper::BeginEnum(const std::string& enumName, const size_t enumEntryCount, size_t enumReservedEntryCount)
|
||||
{
|
||||
assert(m_flags.m_in_version);
|
||||
assert(m_block == Block::BLOCK_NONE);
|
||||
@ -65,7 +65,13 @@ void StructuredDataDefDumper::BeginEnum(const std::string& enumName, const size_
|
||||
m_stream << "\n";
|
||||
|
||||
Indent();
|
||||
m_stream << "enum " << enumName << "\n";
|
||||
if (enumReservedEntryCount != enumEntryCount)
|
||||
m_stream << "enum(" << enumReservedEntryCount << ") ";
|
||||
else
|
||||
m_stream << "enum ";
|
||||
m_stream << enumName;
|
||||
|
||||
m_stream << "\n";
|
||||
|
||||
Indent();
|
||||
m_stream << "{\n";
|
||||
|
@ -45,7 +45,7 @@ public:
|
||||
void BeginVersion(int version);
|
||||
void EndVersion();
|
||||
|
||||
void BeginEnum(const std::string& enumName, size_t enumEntryCount);
|
||||
void BeginEnum(const std::string& enumName, size_t enumEntryCount, size_t enumReservedEntryCount);
|
||||
void EndEnum();
|
||||
void WriteEnumEntry(const std::string& entryName, size_t entryValue);
|
||||
|
||||
|
Reference in New Issue
Block a user