CommonLibSSE (powerof3)
RE::TESContainer Class Reference

#include <TESContainer.h>

Inheritance diagram for RE::TESContainer:
RE::BaseFormComponent RE::TESActorBase RE::TESObjectCONT RE::TESNPC

Public Member Functions

 ~TESContainer () override
 
void InitializeDataComponent () override
 
void ClearDataComponent () override
 
void CopyComponent (BaseFormComponent *a_rhs) override
 
void ForEachContainerObject (std::function< BSContainer::ForEachResult(ContainerObject &)> a_fn) const
 
std::optional< ContainerObject * > GetContainerObjectAt (std::uint32_t a_idx) const
 
std::optional< std::uint32_t > GetContainerObjectIndex (TESBoundObject *a_object, std::int32_t a_count) const
 
bool AddObjectToContainer (TESBoundObject *a_object, std::int32_t a_count, TESForm *a_owner)
 
bool AddObjectsToContainer (std::map< TESBoundObject *, std::int32_t > &a_objects, TESForm *a_owner)
 
std::int32_t CountObjectsInContainer (TESBoundObject *a_object) const
 
bool RemoveObjectFromContainer (TESBoundObject *a_object, std::int32_t a_count)
 
- Public Member Functions inherited from RE::BaseFormComponent
virtual ~BaseFormComponent ()
 
 TES_HEAP_REDEFINE_NEW ()
 

Public Attributes

ContainerObject ** containerObjects
 
std::uint32_t numContainerObjects
 
bool allowStolenItems
 

Static Public Attributes

static constexpr auto RTTI = RTTI_TESContainer
 
static constexpr auto VTABLE = VTABLE_TESContainer
 
- Static Public Attributes inherited from RE::BaseFormComponent
static constexpr auto RTTI = RTTI_BaseFormComponent
 
static constexpr auto VTABLE = VTABLE_BaseFormComponent
 

Constructor & Destructor Documentation

◆ ~TESContainer()

RE::TESContainer::~TESContainer ( )
override

Member Function Documentation

◆ AddObjectsToContainer()

bool RE::TESContainer::AddObjectsToContainer ( std::map< TESBoundObject *, std::int32_t > &  a_objects,
TESForm a_owner 
)

◆ AddObjectToContainer()

bool RE::TESContainer::AddObjectToContainer ( TESBoundObject a_object,
std::int32_t  a_count,
TESForm a_owner 
)

◆ ClearDataComponent()

void RE::TESContainer::ClearDataComponent ( )
overridevirtual

Implements RE::BaseFormComponent.

◆ CopyComponent()

void RE::TESContainer::CopyComponent ( BaseFormComponent a_rhs)
overridevirtual

Reimplemented from RE::BaseFormComponent.

◆ CountObjectsInContainer()

std::int32_t RE::TESContainer::CountObjectsInContainer ( TESBoundObject a_object) const

◆ ForEachContainerObject()

void RE::TESContainer::ForEachContainerObject ( std::function< BSContainer::ForEachResult(ContainerObject &)>  a_fn) const
inline

◆ GetContainerObjectAt()

std::optional<ContainerObject*> RE::TESContainer::GetContainerObjectAt ( std::uint32_t  a_idx) const

◆ GetContainerObjectIndex()

std::optional<std::uint32_t> RE::TESContainer::GetContainerObjectIndex ( TESBoundObject a_object,
std::int32_t  a_count 
) const

◆ InitializeDataComponent()

void RE::TESContainer::InitializeDataComponent ( )
overridevirtual

Implements RE::BaseFormComponent.

◆ RemoveObjectFromContainer()

bool RE::TESContainer::RemoveObjectFromContainer ( TESBoundObject a_object,
std::int32_t  a_count 
)

Member Data Documentation

◆ allowStolenItems

bool RE::TESContainer::allowStolenItems

◆ containerObjects

ContainerObject** RE::TESContainer::containerObjects

◆ numContainerObjects

std::uint32_t RE::TESContainer::numContainerObjects

◆ RTTI

constexpr auto RE::TESContainer::RTTI = RTTI_TESContainer
inlinestaticconstexpr

◆ VTABLE

constexpr auto RE::TESContainer::VTABLE = VTABLE_TESContainer
inlinestaticconstexpr

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