15 class InventoryChanges;
18 class TESRegionDataManager;
54 std::optional<std::uint8_t>
GetModIndex(std::string_view a_modName);
74#define RUNTIME_DATA_CONTENT \
79 bool exportingPlugin; \
81 bool hasDesiredFiles; \
82 bool checkingModels; \
91 return REL::RelocateMember<RUNTIME_DATA>(
this, 0xDA0, 0x1570);
96 return REL::RelocateMember<RUNTIME_DATA>(
this, 0xDA0, 0x1570);
101 return &REL::RelocateMember<TESFile*>(
this, 0x0, 0xD78);
103 return REL::RelocateMember<TESFileCollection>(
this, 0xD70, 0).files.data();
109 return &REL::RelocateMember<const TESFile*>(
this, 0x0, 0xD78);
111 return REL::RelocateMember<const TESFileCollection>(
this, 0xD70, 0).files.data();
117 return static_cast<std::uint8_t
>(REL::RelocateMember<std::uint32_t>(
this, 0x0, 0xD70));
119 return static_cast<std::uint8_t
>(REL::RelocateMember<const TESFileCollection>(
this, 0xD70, 0).files.size());
127 return REL::RelocateMember<TESFileCollection>(
this, 0xD70, 0).smallFiles.data();
135 return REL::RelocateMember<const TESFileCollection>(
this, 0xD70, 0).smallFiles.data();
143 return static_cast<std::uint8_t
>(REL::RelocateMember<const TESFileCollection>(
this, 0xD70, 0).smallFiles.size());
148 return REL::RelocateMember<TESRegionDataManager*>(
this, 0xDB0, 0x1580);
152 return REL::RelocateMember<TESRegionDataManager*>(
this, 0xDB0, 0x1580);
156 return REL::RelocateMember<InventoryChanges*>(
this, 0xDB8, 0x1588);
160 return REL::RelocateMember<InventoryChanges*>(
this, 0xDB8, 0x1588);
177#ifndef ENABLE_SKYRIM_VR
185#elif !defined(ENABLE_SKYRIM_AE) && !defined(ENABLE_SKYRIM_SE)
186 std::uint32_t loadedModCount;
190 std::uint8_t pad157B[5];
199 auto form =
LookupForm(a_localFormID, a_modName);
204 return form->Is(T::FORMTYPE) ?
static_cast<T*
>(form) : 0;
215 return form->Is(T::FORMTYPE) ?
static_cast<T*
>(form) : 0;
#define RUNTIME_DATA_CONTENT
Definition Actor.h:633
#define SKYRIM_REL_CONSTEXPR
Definition Relocation.h:105
Definition BSTArray.h:377
Definition InventoryChanges.h:16
Definition NiTArray.h:136
Definition TESBoundObject.h:24
Definition TESDataHandler.h:39
std::uint32_t padD54
Definition TESDataHandler.h:174
RUNTIME_DATA & GetGeometryRuntimeData() noexcept
Definition TESDataHandler.h:89
TESRegionDataManager * regionDataManager
Definition TESDataHandler.h:183
const TESRegionDataManager * GetRegionDataManager() const noexcept
Definition TESDataHandler.h:151
FormID LookupFormIDRaw(FormID a_rawFormID, std::string_view a_modName)
std::uint32_t pad004
Definition TESDataHandler.h:166
FormID nextID
Definition TESDataHandler.h:173
BSSimpleList< TESFile * > files
Definition TESDataHandler.h:176
static TESDataHandler * GetSingleton()
std::optional< std::uint8_t > GetModIndex(std::string_view a_modName)
const TESFile * LookupLoadedModByName(std::string_view a_modName)
const TESFile *const * GetLoadedMods() const noexcept
Definition TESDataHandler.h:107
const TESFile * LookupModByName(std::string_view a_modName)
InventoryChanges * merchantInventory
Definition TESDataHandler.h:184
TESRegionDataManager * GetRegionDataManager() noexcept
Definition TESDataHandler.h:147
const TESFile * LookupLoadedModByIndex(std::uint8_t a_index)
std::uint8_t GetLoadedModCount() const noexcept
Definition TESDataHandler.h:115
NiTList< TESForm * > badForms
Definition TESDataHandler.h:172
TESObjectList * objectList
Definition TESDataHandler.h:167
const RUNTIME_DATA & GetGeometryRuntimeData() const noexcept
Definition TESDataHandler.h:94
BSTArray< T * > & GetFormArray()
Definition TESDataHandler.h:219
const TESFile * LookupLoadedLightModByIndex(std::uint16_t a_index)
TESFile ** GetLoadedMods() noexcept
Definition TESDataHandler.h:99
std::uint8_t pad001
Definition TESDataHandler.h:164
std::optional< std::uint16_t > GetLoadedLightModIndex(std::string_view a_modName)
const InventoryChanges * GetMerchantInventory() const noexcept
Definition TESDataHandler.h:159
const TESFile *const * GetLoadedLightMods() const noexcept
Definition TESDataHandler.h:131
std::uint32_t LoadScripts()
TESFile ** GetLoadedLightMods() noexcept
Definition TESDataHandler.h:123
NiTPrimitiveArray< TESObjectCELL * > interiorCells
Definition TESDataHandler.h:170
BSTArray< TESForm * > & GetFormArray(FormType a_formType)
std::optional< std::uint8_t > GetLoadedModIndex(std::string_view a_modName)
TESRegionList * regionList
Definition TESDataHandler.h:169
TESForm * LookupFormRaw(FormID a_rawFormID, std::string_view a_modName)
TESForm * LookupForm(FormID a_localFormID, std::string_view a_modName)
NiTPrimitiveArray< BGSAddonNode * > addonNodes
Definition TESDataHandler.h:171
TESFile * activeFile
Definition TESDataHandler.h:175
RUNTIME_DATA_CONTENT std::uint8_t unkDAA
Definition TESDataHandler.h:180
const TESFile * LookupLoadedLightModByName(std::string_view a_modName)
InventoryChanges * GetMerchantInventory() noexcept
Definition TESDataHandler.h:155
std::uint32_t padDAC
Definition TESDataHandler.h:182
TESFileCollection compiledFileCollection
Definition TESDataHandler.h:178
FormID LookupFormID(FormID a_localFormID, std::string_view a_modName)
ObjectRefHandle CreateReferenceAtLocation(TESBoundObject *a_base, const NiPoint3 &a_location, const NiPoint3 &a_rotation, TESObjectCELL *a_targetCell, TESWorldSpace *a_selfWorldSpace, TESObjectREFR *a_alreadyCreatedRef, BGSPrimitive *a_primitive, const ObjectRefHandle &a_linkedRoomRefHandle, bool a_forcePersist, bool a_arg11)
std::uint8_t GetLoadedLightModCount() const noexcept
Definition TESDataHandler.h:139
std::uint16_t pad002
Definition TESDataHandler.h:165
bool IsGeneratedID(FormID a_formID)
BSTArray< TESForm * > formArrays[stl::to_underlying(FormType::Max)]
Definition TESDataHandler.h:168
std::uint8_t padDAB
Definition TESDataHandler.h:181
Definition TESObjectCELL.h:116
Definition TESObjectREFR.h:112
Definition TESRegionDataManager.h:18
Definition TESRegionList.h:10
Definition TESWorldSpace.h:118
static SKYRIM_REL_VR bool IsVR() noexcept
Definition Relocation.h:821
Definition AbsorbEffect.h:6
FormType
Definition FormTypes.h:139
std::uint32_t FormID
Definition BSCoreTypes.h:5
constexpr auto to_underlying(Enum a_val) noexcept
Definition PCH.h:728
Definition BSTSingleton.h:50
Definition TESDataHandler.h:73
Definition TESDataHandler.h:30
BSTArray< TESFile * > smallFiles
Definition TESDataHandler.h:34
BSTArray< TESFile * > files
Definition TESDataHandler.h:33
Definition TESDataHandler.h:22
std::uint8_t pad0
Definition TESDataHandler.h:25