#pragma once #include "RE/B/BGSTypedKeywordValue.h" #include "RE/B/BaseFormComponent.h" namespace RE { class __declspec(novtable) BGSAttachParentArray : public BaseFormComponent, // 00 public BGSTypedKeywordValueArray // 08 { public: static constexpr auto RTTI{ RTTI::BGSAttachParentArray }; static constexpr auto VTABLE{ VTABLE::BGSAttachParentArray }; // override (BaseFormComponent) std::uint32_t GetFormComponentType() const override { return 'APPA'; } // 01 void InitializeDataComponent() override { return; } // 02 void ClearDataComponent() override; // 03 void CopyComponent(BaseFormComponent*) override { return; } // 06 void CopyComponent(BaseFormComponent*, TESForm*) override; // 05 void SetParentGroupNumber(BGSKeyword* a_parent, std::uint32_t a_groupID) { using func_t = decltype(&BGSAttachParentArray::SetParentGroupNumber); static REL::Relocation func{ ID::BGSAttachParentArray::SetParentGroupNumber }; return func(this, a_parent, a_groupID); } }; static_assert(sizeof(BGSAttachParentArray) == 0x18); }