Skip to content

Commit

Permalink
feat: add BGSFormComponent::GetFormComponentType to all derived cla…
Browse files Browse the repository at this point in the history
…sses
  • Loading branch information
powerof3 committed Oct 4, 2023
1 parent 96ffde9 commit 4566205
Show file tree
Hide file tree
Showing 22 changed files with 106 additions and 17 deletions.
4 changes: 4 additions & 0 deletions CommonLibSF/include/RE/B/BGSAttachParentArray.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ namespace RE
SF_RTTI_VTABLE(BGSAttachParentArray);

~BGSAttachParentArray() override;

// override (BaseFormComponent)
const BSFixedString& GetFormComponentType() const override; // 01 - { return "BGSAttachParentArray_Component"; }
void InitializeDataComponent() override; // 02 - { return; }
};
static_assert(sizeof(BGSAttachParentArray) == 0x18);
}
4 changes: 4 additions & 0 deletions CommonLibSF/include/RE/B/BGSAttackDataForm.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ namespace RE

~BGSAttackDataForm() override; // 00

// override (BaseFormComponent)
const BSFixedString& GetFormComponentType() const override; // 01 - { return "BGSAttackData_Component"; }
void InitializeDataComponent() override; // 02 - { return; }

// members
NiPointer<BGSAttackDataMap> attackDataMap; // 08
};
Expand Down
4 changes: 4 additions & 0 deletions CommonLibSF/include/RE/B/BGSDestructibleObjectForm.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ namespace RE

~BGSDestructibleObjectForm() override;

// override (BaseFormComponent)
const BSFixedString& GetFormComponentType() const override; // 01 - { return "BGSDestructibleObject_Component"; }
void InitializeDataComponent() override; // 02 - { return; }

// members
DestructibleObjectData* data; // 08
};
Expand Down
4 changes: 4 additions & 0 deletions CommonLibSF/include/RE/B/BGSForcedLocRefType.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ namespace RE

~BGSForcedLocRefType() override;

// override (BaseFormComponent)
const BSFixedString& GetFormComponentType() const override; // 01 - { return "BGSForcedLocRefType_Component"; }
void InitializeDataComponent() override; // 02 - { return; }

// members
std::uint64_t unk08; // 08
std::uint64_t unk10; // 10
Expand Down
4 changes: 4 additions & 0 deletions CommonLibSF/include/RE/B/BGSKeywordForm.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ namespace RE

~BGSKeywordForm() override;

// override (BaseFormComponent)
const BSFixedString& GetFormComponentType() const override; // 01 - { return "BGSKeywordForm_Component"; }
void InitializeDataComponent() override; // 02 - { return; }

// members
std::uint32_t unk10;
std::uint32_t unk14;
Expand Down
5 changes: 4 additions & 1 deletion CommonLibSF/include/RE/B/BGSMod.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#pragma once

#include "RE/B/BSFixedString.h"
#include "RE/B/BaseFormComponent.h"

namespace RE
Expand All @@ -16,6 +15,10 @@ namespace RE

virtual ~Items() override;

// override (BaseFormComponent)
const BSFixedString& GetFormComponentType() const override; // 01 - { return "BGSMod_Template_Component"; }
void InitializeDataComponent() override; // 02

// add
virtual void Unk_0B(); // 0B
virtual void Unk_0C(); // 0C
Expand Down
4 changes: 4 additions & 0 deletions CommonLibSF/include/RE/B/BGSNativeTerminalForm.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ namespace RE

~BGSNativeTerminalForm() override;

// override (BaseFormComponent)
const BSFixedString& GetFormComponentType() const override; // 01 - { return "BGSNativeTerminalForm_Component"; }
void InitializeDataComponent() override; // 02 - { return; }

// members
BGSTerminal* terminal; // 08
};
Expand Down
4 changes: 4 additions & 0 deletions CommonLibSF/include/RE/B/BGSObjectPlacementDefaults.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ namespace RE

~BGSObjectPlacementDefaults() override;

// override (BaseFormComponent)
const BSFixedString& GetFormComponentType() const override; // 01 - { return "BGSObjectPaletteDefaults_Component"; } ???
void InitializeDataComponent() override; // 02 - { return; }

// members
std::uint64_t unk08; // 08
std::uint32_t unk10; // 10
Expand Down
4 changes: 4 additions & 0 deletions CommonLibSF/include/RE/B/BGSOverridePackCollection.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ namespace RE

~BGSOverridePackCollection() override;

// override (BaseFormComponent)
const BSFixedString& GetFormComponentType() const override; // 01 - { return "BGSOverridePackCollection_Component"; }
void InitializeDataComponent() override; // 02

// members
BGSListForm* unk08; // 08
BGSListForm* unk10; // 10
Expand Down
4 changes: 4 additions & 0 deletions CommonLibSF/include/RE/B/BGSPerkRankArray.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ namespace RE

~BGSPerkRankArray() override;

// override (BaseFormComponent)
const BSFixedString& GetFormComponentType() const override; // 01 - { return "BGSPerkRankArray_Component"; }
void InitializeDataComponent() override; // 02 - { return; }

// members
PerkRankData* perks; // 08
std::uint32_t perkCount; // 10
Expand Down
8 changes: 7 additions & 1 deletion CommonLibSF/include/RE/B/BGSPreviewTransform.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@ namespace RE
class BGSPreviewTransform : public BaseFormComponent
{
public:
virtual ~BGSPreviewTransform();
SF_RTTI_VTABLE(BGSPreviewTransform);

virtual ~BGSPreviewTransform() override;

// override (BaseFormComponent)
const BSFixedString& GetFormComponentType() const override; // 01 - { return "BGSPreviewTransform_Component"; }
void InitializeDataComponent() override; // 02 - { return; }

// members
std::uint64_t unk08; // 08
Expand Down
4 changes: 4 additions & 0 deletions CommonLibSF/include/RE/B/BGSPropertySheet.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ namespace RE

~BGSPropertySheet() override;

// override (BaseFormComponent)
const BSFixedString& GetFormComponentType() const override; // 01 - { return "BGSPropertySheet_Component"; }
void InitializeDataComponent() override; // 02 - { return; }

// members
std::uint64_t /* BSTArray<BSTTuple<TESForm*, BGSTypedFormValuePair::SharedVal>>* */ unk08;
};
Expand Down
4 changes: 4 additions & 0 deletions CommonLibSF/include/RE/B/BGSSkinForm.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ namespace RE

~BGSSkinForm() override;

// override (BaseFormComponent)
const BSFixedString& GetFormComponentType() const override; // 01 - { return "BGSSkinForm_Component"; }
void InitializeDataComponent() override; // 02 - { return; }

// members
TESObjectARMO* formSkin; // 08
};
Expand Down
6 changes: 5 additions & 1 deletion CommonLibSF/include/RE/B/BGSSnapTemplateComponent.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ namespace RE
public:
SF_RTTI_VTABLE(BGSSnapTemplateComponent);

virtual ~BGSSnapTemplateComponent();
virtual ~BGSSnapTemplateComponent() override;

// override (BaseFormComponent)
const BSFixedString& GetFormComponentType() const override; // 01 - { return "BGSSnapTemplateComponent_Component"; }
void InitializeDataComponent() override; // 02 - { return; }

// members
std::uint64_t unk08; // 08
Expand Down
24 changes: 14 additions & 10 deletions CommonLibSF/include/RE/B/BaseFormComponent.h
Original file line number Diff line number Diff line change
@@ -1,23 +1,27 @@
#pragma once

#include "RE/B/BSFixedString.h"

namespace RE
{
class TESForm;

class BaseFormComponent
{
public:
virtual ~BaseFormComponent(); // 00

// add
virtual void InitializeDataComponent(); // 01
virtual void ClearDataComponent(); // 02
virtual void CopyComponent(BaseFormComponent* a_rhs); // 03 - { return; }
virtual void Unk_04(); // 04
virtual void Unk_05(); // 05
virtual void Unk_06(); // 06
virtual void Unk_07(); // 07
virtual void Unk_08(); // 08
virtual void Unk_09(); // 09
virtual void Unk_0A(); // 0A
virtual const BSFixedString& GetFormComponentType() const = 0; // 01
virtual void InitializeDataComponent() = 0; // 02
virtual void ClearDataComponent(); // 03
virtual void CopyComponent(BaseFormComponent* a_copy); // 04
virtual void CopyComponent(BaseFormComponent* a_copy, TESForm* a_owner); // 05
virtual void Unk_06(); // 06
virtual void Unk_07(); // 07
virtual void Unk_08(); // 08
virtual void Unk_09(); // 09
virtual void Unk_0A(); // 0A
};
static_assert(sizeof(BaseFormComponent) == 0x08);
}
4 changes: 4 additions & 0 deletions CommonLibSF/include/RE/T/TESAIForm.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ namespace RE

~TESAIForm() override;

// override (BaseFormComponent)
const BSFixedString& GetFormComponentType() const override; // 01 - { return "TESAIForm_Component"; }
void InitializeDataComponent() override; // 02

// members
AIDATA_GAME aiData; // 08
PackageList aiPackList; // 18
Expand Down
6 changes: 5 additions & 1 deletion CommonLibSF/include/RE/T/TESActorBaseData.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ namespace RE

~TESActorBaseData() override;

// override (BaseFormComponent)
const BSFixedString& GetFormComponentType() const override; // 01 - return { "TESActorBaseData_Component" }

// add
virtual void Unk_0B(); // 0B
virtual void Unk_0C(); // 0C
Expand All @@ -72,7 +75,8 @@ namespace RE
std::uint64_t unk50; // 50
std::uint64_t unk58; // 58
std::uint64_t unk60; // 60
std::uint64_t unk68; // 68
std::uint32_t unk68; // 68
std::uint32_t unk6C; // 6C
};
static_assert(sizeof(TESActorBaseData) == 0x70);
}
4 changes: 4 additions & 0 deletions CommonLibSF/include/RE/T/TESContainer.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ namespace RE

~TESContainer() override;

// override (BaseFormComponent)
const BSFixedString& GetFormComponentType() const override; // 01 - { return "TESContainer_Component"; }
void InitializeDataComponent() override; // 02 - { return; }

// members
ContainerObject** containerObjects; // 08
std::uint32_t numContainerObjects; // 10
Expand Down
4 changes: 4 additions & 0 deletions CommonLibSF/include/RE/T/TESForm.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ namespace RE

~TESForm() override; // 00

// override (BaseFormComponent)
const BSFixedString& GetFormComponentType() const override; // 01 - { return ""; }
void InitializeDataComponent() override; // 02 - { return; }

// add
virtual void Unk_0B(); // 0B
virtual void Unk_0C(); // 0C
Expand Down
10 changes: 7 additions & 3 deletions CommonLibSF/include/RE/T/TESFullName.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,14 @@ namespace RE

~TESFullName() override;

// override (BaseFormComponent)
const BSFixedString& GetFormComponentType() const override; // 01 - { return "TESFullName_Component"; }
void InitializeDataComponent() override; // 02

// add
virtual std::uint32_t GetFullNameLength() const; // 11
virtual const char* GetFullName() const; // 12
virtual const BGSLocalizedString& GetFullNameLocalized() const; // 13
virtual std::uint32_t GetFullNameLength() const; // 0B
virtual const char* GetFullName() const; // 0C
virtual const BGSLocalizedString& GetFullNameLocalized() const; // OD

// members
BGSLocalizedString fullName; // 08 - FULL
Expand Down
4 changes: 4 additions & 0 deletions CommonLibSF/include/RE/T/TESRaceForm.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ namespace RE

~TESRaceForm() override;

// override (BaseFormComponent)
const BSFixedString& GetFormComponentType() const override; // 01 - { return "TESRace_Component"; }
void InitializeDataComponent() override; // 02 - { return; }

// members
TESRace* formRace; // 08
};
Expand Down
4 changes: 4 additions & 0 deletions CommonLibSF/include/RE/T/TESSpellList.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ namespace RE

~TESSpellList() override;

// override (BaseFormComponent)
const BSFixedString& GetFormComponentType() const override; // 01 - { return "TESSpellList_Component"; }
void InitializeDataComponent() override; // 02 - { return; }

// members
std::uint32_t unk08; // 08
std::uint32_t unk0C; // 0C
Expand Down

0 comments on commit 4566205

Please sign in to comment.