Skip to content

Commit

Permalink
feat: BGSPerk RE (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
powerof3 authored Oct 9, 2023
1 parent 6996d8f commit 5a777e5
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 0 deletions.
12 changes: 12 additions & 0 deletions CommonLibSF/include/RE/B/BGSLocalizedStringDL.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#pragma once

namespace RE
{
class BGSLocalizedStringDL
{
public:
// members
std::uint32_t id; // 0
};
static_assert(sizeof(BGSLocalizedStringDL) == 0x4);
}
31 changes: 31 additions & 0 deletions CommonLibSF/include/RE/B/BGSPerk.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,36 @@
#pragma once

#include "RE/B/BSTArray.h"
#include "RE/T/TESDescription.h"
#include "RE/T/TESForm.h"
#include "RE/T/TESFullName.h"

namespace RE
{
class BGSPerk :
public TESForm, // 00
public TESFullName, // 38
public TESDescription // 48
{
public:
SF_RTTI_VTABLE(BGSPerk);
SF_FORMTYPE(PERK);

~BGSPerk() override; // 00

// members
std::uint16_t unk60; // 60
std::uint8_t unk62; // 62
std::uint8_t unk63; // 63
std::uint8_t unk64; // 64
std::uint64_t unk68; // 68
BSFixedStringCS unk70; // 70
BSFixedString perkIcon; // 78 - GNAM
std::uint64_t unk80; // 80
std::uint64_t unk88; // 88
std::uint64_t unk90; // 90
std::uint64_t unk98; // 98
BSTArray<void*> unkA0; // A0
};
static_assert(sizeof(BGSPerk) == 0xB0);
}
25 changes: 25 additions & 0 deletions CommonLibSF/include/RE/T/TESDescription.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#pragma once

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

namespace RE
{
class TESDescription : public BaseFormComponent
{
public:
SF_RTTI_VTABLE(TESDescription);

~TESDescription() override; // 00

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

// members
std::uint32_t fileOffset; // 08
std::uint32_t chunkOffset; // 0C
BGSLocalizedStringDL descriptionText; // 10
};
static_assert(sizeof(TESDescription) == 0x18);
}

0 comments on commit 5a777e5

Please sign in to comment.