mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-11 07:18:11 -05:00
refactor: fix x64 compilation for ObjLoading
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include "CommonStructuredDataTypes.h"
|
||||
#include "Utils/ClassUtils.h"
|
||||
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
@ -8,29 +8,29 @@
|
||||
|
||||
struct CommonStructuredDataStructProperty
|
||||
{
|
||||
std::string m_name;
|
||||
CommonStructuredDataType m_type;
|
||||
size_t m_offset_in_bits;
|
||||
|
||||
CommonStructuredDataStructProperty();
|
||||
explicit CommonStructuredDataStructProperty(std::string name);
|
||||
CommonStructuredDataStructProperty(std::string name, CommonStructuredDataType type, size_t offsetInBits);
|
||||
|
||||
std::string m_name;
|
||||
CommonStructuredDataType m_type;
|
||||
size_t m_offset_in_bits;
|
||||
};
|
||||
|
||||
class CommonStructuredDataDef;
|
||||
|
||||
struct CommonStructuredDataStruct
|
||||
{
|
||||
CommonStructuredDataStruct();
|
||||
explicit CommonStructuredDataStruct(std::string name);
|
||||
|
||||
[[nodiscard]] uint32_t CalculateChecksum(const CommonStructuredDataDef& def, uint32_t initialValue) const;
|
||||
|
||||
void SortPropertiesByOffset();
|
||||
void SortPropertiesByName();
|
||||
|
||||
std::string m_name;
|
||||
std::vector<CommonStructuredDataStructProperty> m_properties;
|
||||
size_t m_bit_offset;
|
||||
size_t m_size_in_byte;
|
||||
|
||||
CommonStructuredDataStruct();
|
||||
explicit CommonStructuredDataStruct(std::string name);
|
||||
|
||||
_NODISCARD uint32_t CalculateChecksum(const CommonStructuredDataDef& def, uint32_t initialValue) const;
|
||||
|
||||
void SortPropertiesByOffset();
|
||||
void SortPropertiesByName();
|
||||
};
|
||||
|
Reference in New Issue
Block a user