mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-10 23:08:05 -05:00
Add offset of members to assetstructtests
This commit is contained in:
@ -4,6 +4,7 @@ Variable::Variable(std::string name, std::unique_ptr<TypeDeclaration> typeDeclar
|
||||
: m_name(std::move(name)),
|
||||
m_has_alignment_override(false),
|
||||
m_alignment_override(0),
|
||||
m_offset(0),
|
||||
m_type_declaration(std::move(typeDeclaration))
|
||||
{
|
||||
}
|
||||
|
@ -3,6 +3,7 @@
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#include "Utils/ClassUtils.h"
|
||||
#include "TypeDeclaration.h"
|
||||
|
||||
class Variable
|
||||
@ -11,10 +12,11 @@ public:
|
||||
std::string m_name;
|
||||
bool m_has_alignment_override;
|
||||
unsigned m_alignment_override;
|
||||
unsigned m_offset;
|
||||
std::unique_ptr<TypeDeclaration> m_type_declaration;
|
||||
|
||||
Variable(std::string name, std::unique_ptr<TypeDeclaration> typeDeclaration);
|
||||
|
||||
unsigned GetAlignment() const;
|
||||
bool GetForceAlignment() const;
|
||||
_NODISCARD unsigned GetAlignment() const;
|
||||
_NODISCARD bool GetForceAlignment() const;
|
||||
};
|
||||
|
Reference in New Issue
Block a user