2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-09-07 09:17:26 +00:00

Calculate StructuredDataDef sizes and offsets

This commit is contained in:
Jan
2022-01-22 13:40:08 +01:00
parent ec8e58e0f1
commit 9ed169fcba
13 changed files with 135 additions and 40 deletions

View File

@@ -1,7 +1,9 @@
#pragma once
#include <map>
#include <memory>
#include <vector>
#include <cstddef>
#include "Domain/CommonStructuredDataDef.h"
@@ -15,6 +17,7 @@ namespace sdd
CommonStructuredDataDef* m_current_def;
CommonStructuredDataDefEnum* m_current_enum;
CommonStructuredDataDefStruct* m_current_struct;
size_t m_current_struct_offset_in_bits;
std::map<std::string, CommonStructuredDataDefType> m_def_types_by_name;
std::map<CommonStructuredDataDefIndexedArray, size_t> m_def_indexed_arrays;