-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: more
TESForm
classes and defs (#211)
- Loading branch information
Showing
15 changed files
with
296 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,30 @@ | ||
#pragma once | ||
|
||
#include "RE/B/BSTArray.h" | ||
#include "RE/T/TESForm.h" | ||
|
||
namespace RE | ||
{ | ||
class BGSListForm : | ||
public TESForm | ||
public TESForm // 00 | ||
{ | ||
public: | ||
SF_RTTI_VTABLE(BGSListForm); | ||
SF_FORMTYPE(FLST); | ||
|
||
~BGSListForm() override; // 00 | ||
|
||
// members | ||
BSTArray<TESForm*> arrayOfForms; // 38 | ||
std::uint64_t unk48; // 48 | ||
std::uint64_t unk50; // 50 | ||
std::uint64_t unk58; // 58 | ||
std::uint64_t unk60; // 60 | ||
std::uint64_t unk68; // 68 | ||
std::uint64_t unk70; // 70 | ||
std::uint64_t unk78; // 78 | ||
BSTArray<std::uint32_t>* scriptAddedTempForms; // 80 | ||
std::uint32_t scriptAddedFormCount; // 88 | ||
}; | ||
static_assert(sizeof(BGSListForm) == 0x90); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#pragma once | ||
|
||
#include "RE/B/BSTArray.h" | ||
#include "RE/T/TESForm.h" | ||
|
||
namespace RE | ||
{ | ||
class BGSOutfit : public TESForm | ||
{ | ||
public: | ||
SF_RTTI_VTABLE(BGSOutfit); | ||
SF_FORMTYPE(OTFT); | ||
|
||
~BGSOutfit() override; // 00 | ||
|
||
// members | ||
BSTArray<TESForm*> outfitItems; // 38 | ||
}; | ||
static_assert(sizeof(BGSOutfit) == 0x48); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#pragma once | ||
|
||
#include "RE/B/BGSLocalizedString.h" | ||
#include "RE/B/BSTArray.h" | ||
#include "RE/T/TESForm.h" | ||
#include "RE/T/TESFullName.h" | ||
|
||
namespace RE | ||
{ | ||
class BGSTerminalMenu : | ||
public TESForm, // 00 | ||
public TESFullName // 38 | ||
{ | ||
public: | ||
SF_RTTI_VTABLE(BGSTerminalMenu); | ||
SF_FORMTYPE(TMLM); | ||
|
||
~BGSTerminalMenu() override; // 00 | ||
|
||
// members | ||
BSTArray<void*> unk48; // 48 | ||
BSTArray<void*> unk58; // 58 | ||
BGSLocalizedString unk68; // 68 | ||
std::uint64_t unk70; // 70 | ||
std::uint64_t unk78; // 78 | ||
std::uint32_t unk80; // 80 | ||
}; | ||
static_assert(sizeof(BGSTerminalMenu) == 0x88); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#pragma once | ||
|
||
#include "RE/B/BGSEditorID.h" | ||
#include "RE/T/TESForm.h" | ||
|
||
namespace RE | ||
{ | ||
class BGSKeyword; | ||
|
||
struct VOICE_TYPE_DATA | ||
{ | ||
public: | ||
enum class Flag | ||
{ | ||
kNone = 0, | ||
kAllowDefaultDialogue = 1 << 0, | ||
kFemale = 1 << 1 | ||
}; | ||
|
||
// members | ||
stl::enumeration<Flag, std::uint8_t> flags; // 0 | ||
std::uint8_t unk01; // 1 | ||
}; | ||
static_assert(sizeof(VOICE_TYPE_DATA) == 0x2); | ||
|
||
class BGSVoiceType : public TESForm | ||
{ | ||
public: | ||
SF_RTTI_VTABLE(BGSVoiceType); | ||
SF_FORMTYPE(VTYP); | ||
|
||
~BGSVoiceType() override; // 00 | ||
|
||
// members | ||
BGSEditorID formEditorID; // 38 | ||
BGSKeyword* animationFaceArchetype; // 48 | ||
VOICE_TYPE_DATA data; // 50 | ||
}; | ||
static_assert(sizeof(BGSVoiceType) == 0x58); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#pragma once | ||
|
||
#include "RE/B/BGSPropertySheet.h" | ||
#include "RE/T/TESDescription.h" | ||
#include "RE/T/TESForm.h" | ||
#include "RE/T/TESFullName.h" | ||
#include "RE/T/TESTexture.h" | ||
|
||
namespace RE | ||
{ | ||
struct CLASS_DATA | ||
{ | ||
public: | ||
// members | ||
std::int32_t serviceFlags; // 0 | ||
float bleedoutDefault; // 4 | ||
}; | ||
static_assert(sizeof(CLASS_DATA) == 0x8); | ||
|
||
class TESClass : | ||
public TESForm, // 00 | ||
public TESFullName, // 38 | ||
public TESDescription, // 48 | ||
public TESTexture, // 60 | ||
public BGSPropertySheet // 70 | ||
{ | ||
public: | ||
SF_RTTI_VTABLE(TESClass); | ||
SF_FORMTYPE(CLAS); | ||
|
||
~TESClass() override; // 00 | ||
|
||
// members | ||
CLASS_DATA data; // 78 - DATA | ||
}; | ||
static_assert(sizeof(TESClass) == 0x88); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#pragma once | ||
|
||
#include "RE/B/BGSEditorID.h" | ||
#include "RE/T/TESForm.h" | ||
|
||
namespace RE | ||
{ | ||
class TESGlobal : public TESForm | ||
{ | ||
public: | ||
SF_RTTI_VTABLE(TESGlobal); | ||
SF_FORMTYPE(GLOB); | ||
|
||
~TESGlobal() override; // 00 | ||
|
||
[[nodiscard]] float GetValue() const noexcept { return value; } | ||
|
||
// members | ||
BGSEditorID formEditorID; // 38 | ||
float value; // 48 | ||
}; | ||
static_assert(sizeof(TESGlobal) == 0x50); | ||
} |
Oops, something went wrong.