14 class InventoryEntryData;
55 [[nodiscard]] std::int32_t
GetCount(
const TESBoundObject* a_object, std::predicate<const InventoryEntryData*>
auto a_itemFilter)
const
58 std::int32_t count = container ? std::abs(container->GetObjectCount(a_object)) : 0;
62 for (
const auto*
const entry : *
entryList) {
63 if (entry && entry->object == a_object) {
70 if (a_itemFilter(objEntry)) {
96 static_assert(
sizeof(InventoryChanges) == 0x20);
Definition: BSSimpleList.h:10
Definition: EnchantmentItem.h:10
Definition: InventoryChanges.h:26
virtual void Unk_02(RE::FormType a_formType)
virtual VisitResult Visit(InventoryEntryData *a_entryData)=0
virtual ~IItemChangeVisitor()
virtual void Unk_03(void)
static constexpr auto RTTI
Definition: InventoryChanges.h:28
Definition: InventoryChanges.h:17
VisitResult
Definition: InventoryChanges.h:20
void SetUniqueID(ExtraDataList *a_itemList, TESForm *a_oldForm, TESForm *a_newForm)
void AddEntryData(InventoryEntryData *a_entry)
std::int32_t GetCount(const TESBoundObject *a_object, std::predicate< const InventoryEntryData * > auto a_itemFilter) const
Definition: InventoryChanges.h:55
std::uint16_t GetNextUniqueID()
float totalWeight
Definition: InventoryChanges.h:84
TESObjectARMO * GetArmorInSlot(std::int32_t a_slot)
std::uint8_t unk19
Definition: InventoryChanges.h:87
std::uint32_t unk1C
Definition: InventoryChanges.h:90
float armorWeight
Definition: InventoryChanges.h:85
void InitFromContainerExtra()
TESObjectREFR * owner
Definition: InventoryChanges.h:83
bool changed
Definition: InventoryChanges.h:86
std::uint8_t unk1B
Definition: InventoryChanges.h:89
RE::ExtraDataList * EnchantObject(RE::TESBoundObject *a_obj, RE::ExtraDataList *a_extraList, RE::EnchantmentItem *a_enchantment, uint16_t a_charge)
void SendContainerChangedEvent(ExtraDataList *a_itemExtraList, TESObjectREFR *a_fromRefr, TESForm *a_item, std::int32_t a_count)
BSSimpleList< InventoryEntryData * > * entryList
Definition: InventoryChanges.h:82
std::uint8_t unk1A
Definition: InventoryChanges.h:88
InventoryChanges(TESObjectREFR *a_ref)
Definition: InventoryEntryData.h:14
std::int32_t countDelta
Definition: InventoryEntryData.h:59
Definition: TESBoundObject.h:24
Definition: TESObjectARMO.h:37
Definition: TESObjectREFR.h:105
TESContainer * GetContainer() const
Definition: AbsorbEffect.h:6
constexpr REL::ID RTTI_InventoryChanges__IItemChangeVisitor
Definition: Offsets_RTTI.h:5071
FormType
Definition: FormTypes.h:139