CommonLibVR
RE::TESDataHandler Class Reference

#include <TESDataHandler.h>

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

Public Member Functions

bool AddFormToDataHandler (TESForm *a_form)
 
std::uint32_t LoadScripts ()
 
TESFormLookupForm (FormID a_rawFormID, std::string_view a_modName)
 
template<class T >
T * LookupForm (FormID a_rawFormID, std::string_view a_modName)
 
FormID LookupFormID (FormID a_rawFormID, std::string_view a_modName)
 
const TESFileLookupModByName (std::string_view a_modName)
 
std::optional< std::uint8_t > GetModIndex (std::string_view a_modName)
 
const TESFileLookupLoadedModByName (std::string_view a_modName)
 
const TESFileLookupLoadedModByIndex (std::uint8_t a_index)
 
std::optional< std::uint8_t > GetLoadedModIndex (std::string_view a_modName)
 
const TESFileLookupLoadedLightModByName (std::string_view a_modName)
 
const TESFileLookupLoadedLightModByIndex (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)
 

Static Public Member Functions

static TESDataHandlerGetSingleton (bool a_VRESL=true)
 

Public Attributes

std::uint8_t pad001
 
std::uint16_t pad002
 
std::uint32_t pad004
 
TESObjectListobjectList
 
BSTArray< TESForm * > formArrays [std::to_underlying(FormType::Max)]
 
TESRegionListregionList
 
NiTPrimitiveArray< TESObjectCELL * > interiorCells
 
NiTPrimitiveArray< BGSAddonNode * > addonNodes
 
NiTList< TESForm * > badForms
 
FormID nextID
 
std::uint32_t padD54
 
TESFileactiveFile
 
BSSimpleList< TESFile * > files
 
TESFileCollection compiledFileCollection
 
bool masterSave
 
bool blockSave
 
bool saveLoadGame
 
bool autoSaving
 
bool exportingPlugin
 
bool clearingData
 
bool hasDesiredFiles
 
bool checkingModels
 
bool loadingFiles
 
bool dontRemoveIDs
 
std::uint8_t unkDAA
 
std::uint8_t padDAB
 
std::uint32_t padDAC
 
TESRegionDataManagerregionDataManager
 
InventoryChangesmerchantInventory
 

Static Public Attributes

static RE::TESFileCollectionVRcompiledFileCollection = nullptr
 

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)

◆ GetLoadedLightModIndex()

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

◆ GetLoadedModIndex()

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

◆ GetModIndex()

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

◆ GetSingleton()

static TESDataHandler* RE::TESDataHandler::GetSingleton ( bool  a_VRESL = true)
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_rawFormID,
std::string_view  a_modName 
)

◆ LookupForm() [2/2]

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

◆ LookupFormID()

FormID RE::TESDataHandler::LookupFormID ( 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

◆ autoSaving

bool RE::TESDataHandler::autoSaving

◆ badForms

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

◆ blockSave

bool RE::TESDataHandler::blockSave

◆ checkingModels

bool RE::TESDataHandler::checkingModels

◆ clearingData

bool RE::TESDataHandler::clearingData

◆ compiledFileCollection

TESFileCollection RE::TESDataHandler::compiledFileCollection

◆ dontRemoveIDs

bool RE::TESDataHandler::dontRemoveIDs

◆ exportingPlugin

bool RE::TESDataHandler::exportingPlugin

◆ files

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

◆ formArrays

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

◆ hasDesiredFiles

bool RE::TESDataHandler::hasDesiredFiles

◆ interiorCells

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

◆ loadingFiles

bool RE::TESDataHandler::loadingFiles

◆ masterSave

bool RE::TESDataHandler::masterSave

◆ 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

◆ saveLoadGame

bool RE::TESDataHandler::saveLoadGame

◆ unkDAA

std::uint8_t RE::TESDataHandler::unkDAA

◆ VRcompiledFileCollection

RE::TESFileCollection* RE::TESDataHandler::VRcompiledFileCollection = nullptr
inlinestatic

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