CommonLibSSE NG
RE::TESDataHandler Class Reference

#include <TESDataHandler.h>

Inheritance diagram for RE::TESDataHandler:
RE::BSTSingletonSDM< TESDataHandler > RE::BSTSingletonSDMBase< Traits >

Classes

struct  RUNTIME_DATA
 

Public Member Functions

bool AddFormToDataHandler (TESForm *a_form)
 
std::uint32_t LoadScripts ()
 
TESForm * LookupForm (FormID a_localFormID, std::string_view a_modName)
 
TESForm * LookupFormRaw (FormID a_rawFormID, std::string_view a_modName)
 
template<class T >
T * LookupForm (FormID a_localFormID, std::string_view a_modName)
 
template<class T >
T * LookupFormRaw (FormID a_rawFormID, std::string_view a_modName)
 
FormID LookupFormID (FormID a_localFormID, std::string_view a_modName)
 
FormID LookupFormIDRaw (FormID a_rawFormID, std::string_view a_modName)
 
const TESFile * LookupModByName (std::string_view a_modName)
 
std::optional< std::uint8_t > GetModIndex (std::string_view a_modName)
 
const TESFile * LookupLoadedModByName (std::string_view a_modName)
 
const TESFile * LookupLoadedModByIndex (std::uint8_t a_index)
 
std::optional< std::uint8_t > GetLoadedModIndex (std::string_view a_modName)
 
const TESFile * LookupLoadedLightModByName (std::string_view a_modName)
 
const TESFile * LookupLoadedLightModByIndex (std::uint16_t a_index)
 
std::optional< std::uint16_t > GetLoadedLightModIndex (std::string_view a_modName)
 
bool IsGeneratedID (FormID a_formID)
 
BSTArray< TESForm * > & GetFormArray (FormType a_formType)
 
template<class T >
BSTArray< T * > & GetFormArray ()
 
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)
 
RUNTIME_DATA & GetGeometryRuntimeData () noexcept
 
const RUNTIME_DATA & GetGeometryRuntimeData () const noexcept
 
TESFile ** GetLoadedMods () noexcept
 
const TESFile *const * GetLoadedMods () const noexcept
 
std::uint8_t GetLoadedModCount () const noexcept
 
TESFile ** GetLoadedLightMods () noexcept
 
const TESFile *const * GetLoadedLightMods () const noexcept
 
std::uint16_t GetLoadedLightModCount () const noexcept
 
TESRegionDataManager * GetRegionDataManager () noexcept
 
const TESRegionDataManager * GetRegionDataManager () const noexcept
 
InventoryChanges * GetMerchantInventory () noexcept
 
const InventoryChanges * GetMerchantInventory () const noexcept
 

Static Public Member Functions

static TESDataHandler * GetSingleton ()
 

Public Attributes

std::uint8_t pad001
 
std::uint16_t pad002
 
std::uint32_t pad004
 
TESObjectList * objectList
 
BSTArray< TESForm * > formArrays [std::to_underlying(FormType::Max)]
 
TESRegionList * regionList
 
NiTPrimitiveArray< TESObjectCELL * > interiorCells
 
NiTPrimitiveArray< BGSAddonNode * > addonNodes
 
NiTList< TESForm * > badForms
 
FormID nextID
 
std::uint32_t padD54
 
TESFile * activeFile
 
BSSimpleList< TESFile * > files
 
TESFileCollection compiledFileCollection
 
RUNTIME_DATA_CONTENT std::uint8_t unkDAA
 
std::uint8_t padDAB
 
std::uint32_t padDAC
 
TESRegionDataManager * regionDataManager
 
InventoryChanges * merchantInventory
 

Additional Inherited Members

- Public Types inherited from RE::BSTSingletonSDMBase< Traits >
using Type = typename Traits::Type
 
using Allocator = typename Traits::Allocator
 

Member Function Documentation

◆ AddFormToDataHandler()

bool RE::TESDataHandler::AddFormToDataHandler ( TESForm *  a_form)

◆ CreateReferenceAtLocation()

ObjectRefHandle RE::TESDataHandler::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 
)

◆ GetFormArray() [1/2]

template<class T >
BSTArray< T * > & RE::TESDataHandler::GetFormArray

◆ GetFormArray() [2/2]

BSTArray<TESForm*>& RE::TESDataHandler::GetFormArray ( FormType  a_formType)

◆ GetGeometryRuntimeData() [1/2]

const RUNTIME_DATA& RE::TESDataHandler::GetGeometryRuntimeData ( ) const
inlinenoexcept

◆ GetGeometryRuntimeData() [2/2]

RUNTIME_DATA& RE::TESDataHandler::GetGeometryRuntimeData ( )
inlinenoexcept

◆ GetLoadedLightModCount()

std::uint16_t RE::TESDataHandler::GetLoadedLightModCount ( ) const
inlinenoexcept

◆ GetLoadedLightModIndex()

std::optional<std::uint16_t> RE::TESDataHandler::GetLoadedLightModIndex ( std::string_view  a_modName)

◆ GetLoadedLightMods() [1/2]

const TESFile* const* RE::TESDataHandler::GetLoadedLightMods ( ) const
inlinenoexcept

◆ GetLoadedLightMods() [2/2]

TESFile** RE::TESDataHandler::GetLoadedLightMods ( )
inlinenoexcept

◆ GetLoadedModCount()

std::uint8_t RE::TESDataHandler::GetLoadedModCount ( ) const
inlinenoexcept

◆ GetLoadedModIndex()

std::optional<std::uint8_t> RE::TESDataHandler::GetLoadedModIndex ( std::string_view  a_modName)

◆ GetLoadedMods() [1/2]

const TESFile* const* RE::TESDataHandler::GetLoadedMods ( ) const
inlinenoexcept

◆ GetLoadedMods() [2/2]

TESFile** RE::TESDataHandler::GetLoadedMods ( )
inlinenoexcept

◆ GetMerchantInventory() [1/2]

const InventoryChanges* RE::TESDataHandler::GetMerchantInventory ( ) const
inlinenoexcept

◆ GetMerchantInventory() [2/2]

InventoryChanges* RE::TESDataHandler::GetMerchantInventory ( )
inlinenoexcept

◆ GetModIndex()

std::optional<std::uint8_t> RE::TESDataHandler::GetModIndex ( std::string_view  a_modName)

◆ GetRegionDataManager() [1/2]

const TESRegionDataManager* RE::TESDataHandler::GetRegionDataManager ( ) const
inlinenoexcept

◆ GetRegionDataManager() [2/2]

TESRegionDataManager* RE::TESDataHandler::GetRegionDataManager ( )
inlinenoexcept

◆ GetSingleton()

static TESDataHandler* RE::TESDataHandler::GetSingleton ( )
static

◆ IsGeneratedID()

bool RE::TESDataHandler::IsGeneratedID ( FormID  a_formID)

◆ LoadScripts()

std::uint32_t RE::TESDataHandler::LoadScripts ( )

◆ LookupForm() [1/2]

TESForm* RE::TESDataHandler::LookupForm ( FormID  a_localFormID,
std::string_view  a_modName 
)

◆ LookupForm() [2/2]

template<class T >
T * RE::TESDataHandler::LookupForm ( FormID  a_localFormID,
std::string_view  a_modName 
)

◆ LookupFormID()

FormID RE::TESDataHandler::LookupFormID ( FormID  a_localFormID,
std::string_view  a_modName 
)

◆ LookupFormIDRaw()

FormID RE::TESDataHandler::LookupFormIDRaw ( FormID  a_rawFormID,
std::string_view  a_modName 
)

◆ LookupFormRaw() [1/2]

TESForm* RE::TESDataHandler::LookupFormRaw ( FormID  a_rawFormID,
std::string_view  a_modName 
)

◆ LookupFormRaw() [2/2]

template<class T >
T * RE::TESDataHandler::LookupFormRaw ( FormID  a_rawFormID,
std::string_view  a_modName 
)

◆ LookupLoadedLightModByIndex()

const TESFile* RE::TESDataHandler::LookupLoadedLightModByIndex ( std::uint16_t  a_index)

◆ LookupLoadedLightModByName()

const TESFile* RE::TESDataHandler::LookupLoadedLightModByName ( std::string_view  a_modName)

◆ LookupLoadedModByIndex()

const TESFile* RE::TESDataHandler::LookupLoadedModByIndex ( std::uint8_t  a_index)

◆ LookupLoadedModByName()

const TESFile* RE::TESDataHandler::LookupLoadedModByName ( std::string_view  a_modName)

◆ LookupModByName()

const TESFile* RE::TESDataHandler::LookupModByName ( std::string_view  a_modName)

Member Data Documentation

◆ activeFile

TESFile* RE::TESDataHandler::activeFile

◆ addonNodes

NiTPrimitiveArray<BGSAddonNode*> RE::TESDataHandler::addonNodes

◆ badForms

NiTList<TESForm*> RE::TESDataHandler::badForms

◆ compiledFileCollection

TESFileCollection RE::TESDataHandler::compiledFileCollection

◆ files

BSSimpleList<TESFile*> RE::TESDataHandler::files

◆ formArrays

BSTArray<TESForm*> RE::TESDataHandler::formArrays[std::to_underlying(FormType::Max)]

◆ interiorCells

NiTPrimitiveArray<TESObjectCELL*> RE::TESDataHandler::interiorCells

◆ merchantInventory

InventoryChanges* RE::TESDataHandler::merchantInventory

◆ nextID

FormID RE::TESDataHandler::nextID

◆ objectList

TESObjectList* RE::TESDataHandler::objectList

◆ pad001

std::uint8_t RE::TESDataHandler::pad001

◆ pad002

std::uint16_t RE::TESDataHandler::pad002

◆ pad004

std::uint32_t RE::TESDataHandler::pad004

◆ padD54

std::uint32_t RE::TESDataHandler::padD54

◆ padDAB

std::uint8_t RE::TESDataHandler::padDAB

◆ padDAC

std::uint32_t RE::TESDataHandler::padDAC

◆ regionDataManager

TESRegionDataManager* RE::TESDataHandler::regionDataManager

◆ regionList

TESRegionList* RE::TESDataHandler::regionList

◆ unkDAA

RUNTIME_DATA_CONTENT std::uint8_t RE::TESDataHandler::unkDAA

The documentation for this class was generated from the following file: